/* ===== Custom Styles for Supreme Deals Outlet ===== */

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #022c22 0%,
        #064e3b 25%,
        #065f46 45%,
        #047857 60%,
        #059669 75%,
        #022c22 100%
    );
}

/* Hero pattern overlay */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(110, 231, 183, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(167, 243, 208, 0.1) 0%, transparent 40%);
}

/* Services pattern */
.services-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236ee7b7' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ===== Hero Animations ===== */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-25px, 20px) scale(1.08); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-orb-1 { animation: float1 8s ease-in-out infinite; }
.hero-orb-2 { animation: float2 10s ease-in-out infinite; }
.hero-orb-3 { animation: float3 12s ease-in-out infinite; }

/* Hero badge animation */
.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

/* Hero heading animation */
#hero h1 {
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Hero paragraph animation */
#hero p {
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Hero buttons animation */
#hero > div > div:last-child > a {
    animation: fadeInUp 1s ease-out both;
}
#hero > div > div:last-child > a:first-of-type { animation-delay: 0.6s; }
#hero > div > div:last-child > a:last-of-type { animation-delay: 0.75s; }

/* Hero scroll indicator */
#hero > div:last-child {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Navbar ===== */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(2, 44, 34, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.marquee-item {
    display: inline-block;
    padding: 0 1rem;
}

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

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Default state — content is visible even without JS */
.reveal {
    transform: none;
}

/* Only apply hidden state when JS adds the class and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(40px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered delays for service cards */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== Mobile Menu ===== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-nav-link {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* ===== Smooth image loading ===== */
img {
    image-rendering: auto;
}

/* ===== Selection color ===== */
::selection {
    background: rgba(110, 231, 183, 0.3);
    color: #022c22;
}

/* ===== Focus styles ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #6ee7b7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== 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;
    }
}

/* ===== Custom scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #022c22;
}
::-webkit-scrollbar-thumb {
    background: #065f46;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}
