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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #C89B3C;
    color: #0a1a3e;
}

/* ========== NAVIGATION ========== */
#site-header {
    background: transparent;
}

#site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(10, 26, 62, 0.08);
}

.nav-text {
    color: #0a1a3e;
    transition: color 0.3s ease;
}

.nav-text-secondary {
    color: #3354a4;
    transition: color 0.3s ease;
}

#site-header:not(.scrolled) .nav-text {
    color: #ffffff;
}

#site-header:not(.scrolled) .nav-text-secondary {
    color: rgba(255, 255, 255, 0.7);
}

.nav-link-text {
    color: #1e3d82;
    transition: color 0.3s ease;
}

#site-header:not(.scrolled) .nav-link-text {
    color: rgba(255, 255, 255, 0.85);
}

#site-header:not(.scrolled) .nav-link:hover .nav-link-text {
    color: #f4de9a;
}

/* ========== MOBILE MENU ========== */
#mobile-menu {
    will-change: transform, opacity;
}

#mobile-menu.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed {
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
}

.menu-line {
    display: block;
}

#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(2) {
    opacity: 0;
}

#mobile-menu-btn[aria-expanded="true"] .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 5px;
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: none;
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
    .reveal-delay-5 { transition-delay: 0.5s; }
}

/* ========== FLOATING CARDS ANIMATION ========== */
@keyframes float-1 {
    0%, 100% { transform: rotate(1deg) translateY(0px); }
    50% { transform: rotate(1deg) translateY(-10px); }
}

@keyframes float-2 {
    0%, 100% { transform: rotate(-1deg) translateY(0px); }
    50% { transform: rotate(-1deg) translateY(-8px); }
}

@keyframes float-3 {
    0%, 100% { transform: rotate(2deg) translateY(0px); }
    50% { transform: rotate(2deg) translateY(-12px); }
}

@keyframes float-4 {
    0%, 100% { transform: rotate(-2deg) translateY(0px); }
    50% { transform: rotate(-2deg) translateY(-6px); }
}

.floating-card-1 { animation: float-1 6s ease-in-out infinite; }
.floating-card-2 { animation: float-2 7s ease-in-out infinite; }
.floating-card-3 { animation: float-3 5.5s ease-in-out infinite; }
.floating-card-4 { animation: float-4 8s ease-in-out infinite; }

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #0d214d;
}

/* ========== FOCUS STYLES ========== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #C89B3C;
    outline-offset: 2px;
}

/* ========== MOBILE NAV LINKS ========== */
.mobile-nav-link {
    position: relative;
}

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

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