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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #020617;
    color: #e2e8f0;
    font-family: 'Montserrat', system-ui, sans-serif;
    overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* === NAVBAR === */
#navbar {
    background: transparent;
    transition: background 0.5s ease, box-shadow 0.5s ease, backdrop-filter 0.5s ease;
}

#navbar.scrolled {
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* === MOBILE MENU === */
.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(3px, -3px);
    width: 1.5rem;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* === REVEAL ANIMATIONS === */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* === HERO TYPOGRAPHY === */
#hero h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.5);
}

/* === GOLD ACCENT LINE ANIMATION === */
#hero .absolute.top-0 {
    animation: growDown 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes growDown {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        height: 6rem;
        opacity: 1;
    }
}

/* === CARD HOVER EFFECTS === */
.group:hover .group-hover\:-translate-y-1 {
    transform: translateY(-0.25rem);
}

/* === FORM STYLES === */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(170deg);
    cursor: pointer;
}

select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* === IMAGE LAZY LOAD FADE === */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* === SELECTION === */
::selection {
    background: rgba(13, 148, 136, 0.4);
    color: #f1f5f9;
}

/* === FOCUS VISIBLE === */
:focus-visible {
    outline: 2px solid #14b8a6;
    outline-offset: 2px;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }

    #hero h1 span.text-4xl {
        font-size: 1.75rem !important;
    }

    .stats-grid {
        flex-direction: column;
        gap: 1rem !important;
    }
}
