/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Navigation ===== */
#mainNav {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#mainNav.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(116, 46, 62, 0.08), 0 4px 20px rgba(116, 46, 62, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #742e3e, #d97706);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

/* Mobile menu */
#mobileMenu {
    max-height: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobileMenu.open {
    max-height: 400px;
    opacity: 1;
}

.mobile-nav-link {
    display: block;
}

/* ===== Hero ===== */
.hero {
    position: relative;
}

.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
}

.hero-headline {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeIn 1s ease 1.5s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Scroll Reveal ===== */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .scroll-reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== Button Hover Effects ===== */
a {
    text-decoration: none;
}

/* ===== Selection ===== */
::selection {
    background-color: #d97706;
    color: #40121c;
}

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

::-webkit-scrollbar-track {
    background: #fdf4f6;
}

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

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

/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
    .hero-badge {
        animation-delay: 0.1s;
    }
    
    .hero-headline {
        font-size: 2.5rem;
        animation-delay: 0.2s;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        animation-delay: 0.3s;
    }
    
    .hero-cta {
        flex-direction: column;
        animation-delay: 0.5s;
    }
    
    .hero-stats {
        grid-template-columns: 1 1;
        animation-delay: 0.7s;
    }
}
