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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(201, 168, 76, 0.3);
    color: #0a152d;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-reveal="fade-up"] {
    opacity: 0;
    transform: translateY(40px);
}

.reveal[data-reveal="fade-left"] {
    opacity: 0;
    transform: translateX(-40px);
}

.reveal[data-reveal="fade-right"] {
    opacity: 0;
    transform: translateX(40px);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ========== NAVBAR SCROLL STATE ========== */
#navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(10, 21, 45, 0.06), 0 4px 20px rgba(10, 21, 45, 0.04);
}

#navbar.scrolled .font-serif {
    color: #0a152d !important;
}

#navbar.scrolled .text-navy-600,
#navbar.scrolled .text-navy-700 {
    color: #1e3666 !important;
}

/* ========== MOBILE MENU ========== */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.open .mobile-link {
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

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

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

/* ========== HAMBURGER ANIMATION ========== */
#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* ========== BUTTON HOVER EFFECTS ========== */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ========== FORM STYLES ========== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.1);
}

/* ========== SMOOTH SCROLL OFFSET ========== */
section[id] {
    scroll-margin-top: 80px;
}

/* ========== 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;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }
    
    .reveal[data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    #navbar, #mobile-menu, .reveal {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
