/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #030918;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

::selection {
    background: #34D4B5;
    color: #050E1F;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #030918;
}
::-webkit-scrollbar-thumb {
    background: #34D4B5;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #2db89a;
}

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

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

/* Product Card Hover */
.product-card {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover {
    transform: translateY(-8px);
}

/* Navbar Transition */
.nav-scrolled {
    background: rgba(3, 9, 24, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 212, 181, 0.1);
}

.nav-scrolled .logo-text {
    color: #ffffff;
}

/* Mobile Menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Section Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), 
                transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
    }
    .marquee-track {
        animation: none;
    }
}

/* Focus Styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #34D4B5;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .font-display.text-6xl {
        font-size: 3.5rem;
        line-height: 1;
    }
}

@media (max-width: 640px) {
    h1, .font-display.text-6xl {
        font-size: 2.75rem;
    }
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #0a1f3f 0%, #050e1f 100%);
}
