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

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

body {
    background-color: #1A081E;
    color: #F9F0FD;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
}

::selection {
    background: #F5A623;
    color: #1A081E;
}

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

#navbar.scrolled {
    background: rgba(26, 8, 30, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(123, 45, 142, 0.2);
}

/* ===== MOBILE MENU ===== */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu:not(.active) {
    opacity: 0;
    pointer-events: none;
}

#mobile-menu a {
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

#mobile-menu.active a {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
#mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }

/* ===== HERO ANIMATIONS ===== */
.hero-fade {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s ease forwards;
}

.hero-fade:nth-child(1) { animation-delay: 0.1s; }
.hero-fade:nth-child(2) { animation-delay: 0.25s; }
.hero-fade:nth-child(3) { animation-delay: 0.4s; }
.hero-fade:nth-child(4) { animation-delay: 0.55s; }
.hero-fade:nth-child(5) { animation-delay: 0.7s; }

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

.hero-shape {
    opacity: 0;
    animation: shapeAppear 1.2s ease forwards;
}

.hero-shape:nth-child(1) { animation-delay: 0.3s; }
.hero-shape:nth-child(2) { animation-delay: 0.5s; }
.hero-shape:nth-child(3) { animation-delay: 0.7s; }
.hero-shape:nth-child(4) { animation-delay: 0.9s; }
.hero-shape:nth-child(5) { animation-delay: 1.1s; }
.hero-shape:nth-child(6) { animation-delay: 1.3s; }

@keyframes shapeAppear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.hero-image-container {
    opacity: 0;
    transform: translateX(40px);
    animation: heroImageIn 1s ease 0.5s forwards;
}

@keyframes heroImageIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ===== PRODUCT CARDS ===== */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

/* ===== BUTTON HOVER EFFECTS ===== */
a[href="#visit"] {
    position: relative;
    overflow: hidden;
}

a[href="#visit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

a[href="#visit"]:hover::after {
    opacity: 1;
}

/* ===== FORM STYLES ===== */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.1);
}

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

::-webkit-scrollbar-track {
    background: #1A081E;
}

::-webkit-scrollbar-thumb {
    background: #561C62;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7B2D8E;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .font-display {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
}
