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

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

body {
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== MARQUEE ANIMATION ===== */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* ===== SCROLL REVEAL (below fold only) ===== */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

@media (prefers-reduced-motion: no-preference) {
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(24px);
    }
}

/* ===== NAVBAR ===== */
#navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

#navbar.scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* ===== MOBILE MENU ===== */
.mobile-link {
    display: block;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* ===== HERO FLOATING CARDS ===== */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 {
        animation: float-slow 6s ease-in-out infinite;
    }
    .absolute.top-8.left-0 {
        animation: float-slow 5s ease-in-out infinite reverse;
    }
    .absolute.bottom-16.right-8 {
        animation: float-slow 7s ease-in-out infinite;
    }
    .absolute.bottom-0.left-8 {
        animation: float-slow 4.5s ease-in-out infinite reverse;
    }
}

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

/* ===== SECTION TRANSITIONS ===== */
section {
    position: relative;
}

/* ===== FOCUS STYLES ===== */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f8fafc;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ===== SELECTION ===== */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}
