/* Custom styles for Divine Hair Braiding */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero animations */
.hero-line {
    display: block;
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.hero-line:nth-child(1) { animation-delay: 0.2s; }
.hero-line:nth-child(2) { animation-delay: 0.4s; }
.hero-line:nth-child(3) { animation-delay: 0.6s; }

.hero-subtitle {
    animation: fadeIn 0.8s ease-out 0.1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-text {
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-buttons {
    animation: fadeIn 0.8s ease-out 1s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-stats {
    animation: fadeIn 0.8s ease-out 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scroll effect */
.navbar-scrolled {
    background: rgba(10, 22, 40, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile menu animations */
.mobile-menu-open #menuLine1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #menuLine2 {
    opacity: 0;
}

.mobile-menu-open #menuLine3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-menu-open #mobileMenu {
    transform: translateX(0);
}

/* Gold shimmer effect */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: #1b3a6d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-line,
    .hero-subtitle,
    .hero-text,
    .hero-buttons,
    .hero-stats {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .reveal {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    img, .group:hover img {
        transition: none;
        transform: none;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c9a84c;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Selection */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}
