/* Base & Utilities */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background-color: #0A1F3F;
    color: #ffffff;
}

/* Selection */
::selection {
    background: #A8E6CF;
    color: #0A1F3F;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1F3F;
}
::-webkit-scrollbar-thumb {
    background: #A8E6CF40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A8E6CF70;
}

/* Fade-up animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

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

/* Marquee */
.marquee-track {
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Mobile menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s ease forwards;
}

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

/* Bar animation */
#menuBtn.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menuBtn.active .bar:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .bar:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Focus styles */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 230, 207, 0.3);
}

/* Button hover lift */
button, a {
    transition: all 0.3s ease;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0D2847 0%, #11315C 100%);
}

/* Smooth image reveal */
img {
    transition: opacity 0.5s ease;
}
img[loading="lazy"] {
    opacity: 0;
}
img.loaded {
    opacity: 1;
}

/* 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;
    }
}
