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

:root {
    --terracotta-400: #ee6f48;
    --terracotta-500: #e5502a;
    --sand-300: #e8d4a0;
    --sand-400: #dbbe72;
    --midnight-950: #070710;
    --midnight-900: #0f0f1a;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--midnight-950);
    color: #f8f6f0;
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ===== NAVBAR ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(7, 7, 16, 0.92);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== MOBILE MENU ===== */
#mobile-menu {
    z-index: 40;
}

#mobile-menu.active {
    transform: translateX(0);
}

.mobile-link {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 0.05em;
}

/* ===== HERO SHAPES ===== */
.hero-shape {
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.shape-circle-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.shape-circle-2 {
    animation: float-slow 10s ease-in-out infinite reverse;
}

.shape-triangle {
    animation: float-medium 6s ease-in-out infinite;
}

.shape-square {
    animation: float-medium 7s ease-in-out infinite reverse;
}

.shape-diamond {
    animation: float-fast 5s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(12deg); }
    50% { transform: translate(-15px, 15px) rotate(18deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(10px, -10px) rotate(55deg); }
}

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

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

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-shape,
    .marquee-track {
        animation: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== SCROLL REVEAL (below fold only) ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PRODUCT CARDS ===== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-display.text-6xl,
    .font-display.text-7xl,
    .font-display.text-8xl {
        font-size: 3.5rem;
    }
    
    .font-display.text-5xl {
        font-size: 2.75rem;
    }
}

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

/* ===== FOCUS STYLES ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--terracotta-400);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(229, 80, 42, 0.3);
    color: #f8f6f0;
}

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

::-webkit-scrollbar-track {
    background: var(--midnight-950);
}

::-webkit-scrollbar-thumb {
    background: var(--terracotta-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--terracotta-500);
}
