/* ── Base & Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ── Marquee Animation ── */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ── Floating Cards ── */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(3deg); }
}
.floating-card-1 { animation: float-slow 4s ease-in-out infinite; }
.floating-card-2 { animation: float-medium 3.5s ease-in-out infinite; }
.floating-card-3 { animation: float-fast 5s ease-in-out infinite; }

/* ── Scroll Reveal ── */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

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

/* ── Navigation ── */
#navbar {
    background: transparent;
}
#navbar.scrolled {
    background: rgba(4, 15, 31, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #38B78B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 60%;
}

/* ── Mobile Menu ── */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.mobile-link {
    transition: all 0.2s ease;
}
.mobile-link:hover {
    padding-left: 12px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #040f1f; }
::-webkit-scrollbar-thumb { background: #1a4078; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #38B78B; }

/* ── Selection ── */
::selection {
    background: rgba(56, 183, 139, 0.3);
    color: #f0f4f8;
}

/* ── Button focus styles ── */
a:focus-visible, button:focus-visible {
    outline: 2px solid #38B78B;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Image loading placeholder ── */
img {
    background: linear-gradient(135deg, #0a2342 0%, #1a4078 100%);
    min-height: 100px;
}
