/* ----------------------------------------------------
   SPICES.DOM COMING SOON - CORE DESIGN SYSTEM
------------------------------------------------------- */

:root {
    /* Color Palette - Customized to match the green forest & olive Spicesdom logo */
    --bg-dark: #060b03; /* Deep dark forest black */
    --card-bg-gradient: linear-gradient(145deg, rgba(14, 25, 10, 0.8) 0%, rgba(6, 11, 3, 0.95) 100%);
    --accent-gold: #8dc63f; /* Bright lime green of the logo */
    --accent-orange: #5c8f1f; /* Olive green shade of the logo */
    --accent-yellow: #b2e35d; /* Lighter highlight green */
    --text-cream: #e8f5e9; /* Light minty cream */
    --text-offwhite: #f1f8e9; /* Leaf sand off-white */
    --text-muted: #8e9e8f; /* Muted sage gray-green */
    --border-glass: rgba(141, 198, 63, 0.15);
    --border-glass-hover: rgba(178, 227, 93, 0.35);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Animation / Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    /* Spotlight properties */
    --mouse-x: 50%;
    --mouse-y: 50%;
    --spotlight-radius: 120px;
    --spotlight-softness: 240px;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    font-family: var(--font-body);
    color: var(--text-offwhite);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* Hide standard cursor for the premium custom cursor */
}

/* Base Scrollbar (just in case) */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

/* ----------------------------------------------------
   BACKGROUND LAYERS
------------------------------------------------------- */

/* Main wrapper covering full viewport */
.background-container {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1;
    overflow: hidden;
}

/* The sliding spice background */
.sliding-bg {
    position: absolute;
    inset: -10%; /* Exceed viewport so we can move it without showing white edges */
    background-image: url('./assets/images/spices_background.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: brightness(0.9) contrast(1.1) saturate(1.1);
    animation: driftBg 50s ease-in-out infinite alternate;
}

@keyframes driftBg {
    0% {
        transform: scale(1.02) translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: scale(1.08) translate3d(-3%, -2%, 0) rotate(0.8deg);
    }
    100% {
        transform: scale(1.02) translate3d(2%, 1%, 0) rotate(-0.5deg);
    }
}

/* Ambient particles drifting */
.floating-particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(141, 198, 63, 0.25) 0%, rgba(141, 198, 63, 0) 70%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.floating-particle.p1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 15%;
    animation: floatParticle1 30s ease-in-out infinite alternate;
}

.floating-particle.p2 {
    width: 450px;
    height: 450px;
    bottom: 5%;
    right: 10%;
    animation: floatParticle2 40s ease-in-out infinite alternate;
}

.floating-particle.p3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 40%;
    animation: floatParticle3 25s ease-in-out infinite alternate;
}

@keyframes floatParticle1 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(80px, 50px, 0) scale(1.2); }
}

@keyframes floatParticle2 {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-100px, -80px, 0) scale(0.9); }
}

@keyframes floatParticle3 {
    0% { transform: translate3d(0, 0, 0) scale(0.8); }
    100% { transform: translate3d(50px, -120px, 0) scale(1.3); }
}

/* ----------------------------------------------------
   DARK SPOTLIGHT MASK OVERLAY
------------------------------------------------------- */

.dark-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    z-index: 2;
    background-color: var(--bg-dark);
    pointer-events: none;
    /* CSS Radial Gradient Mask: Creates a transparent circle centered at custom props */
    -webkit-mask-image: radial-gradient(
        circle calc(var(--spotlight-radius) + var(--spotlight-softness)) at var(--mouse-x) var(--mouse-y),
        transparent 0%,
        transparent var(--spotlight-radius),
        black calc(var(--spotlight-radius) + var(--spotlight-softness))
    );
    mask-image: radial-gradient(
        circle calc(var(--spotlight-radius) + var(--spotlight-softness)) at var(--mouse-x) var(--mouse-y),
        transparent 0%,
        transparent var(--spotlight-radius),
        black calc(var(--spotlight-radius) + var(--spotlight-softness))
    );
    opacity: 0.98;
    transition: opacity 0.5s ease;
}

/* Custom Interactive Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    box-shadow: 0 0 10px var(--accent-orange);
}

.cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
}

/* Hover state classes for JavaScript */
body.is-hovering .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: var(--accent-yellow);
    background-color: rgba(255, 183, 3, 0.05);
}

body.is-hovering .cursor-dot {
    width: 10px;
    height: 10px;
    background-color: var(--accent-orange);
}

body.is-clicking .cursor-ring {
    width: 30px;
    height: 30px;
    border-color: var(--accent-orange);
    background-color: rgba(251, 133, 0, 0.2);
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }
    .custom-cursor {
        display: none;
    }
}

/* ----------------------------------------------------
   CONTENT LAYER (TOP LAYER)
------------------------------------------------------- */

.content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Header & Logo */
.header {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.logo-image {
    height: 65px;
    width: auto;
    object-fit: contain;
    max-width: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Main glass card container */
.main-content {
    width: 100%;
    max-width: 680px;
    margin: auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-card {
    width: 100%;
    background: var(--card-bg-gradient);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    animation: scaleUpFade 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Glowing card outline effect */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange), var(--accent-yellow));
}

.card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Badge tag */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 163, 115, 0.08);
    border: 1px solid rgba(212, 163, 115, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    transition: var(--transition-fast);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-yellow);
    box-shadow: 0 0 8px var(--accent-yellow);
    animation: pulseGlow 2s infinite;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-cream);
}

/* Headline */
.headline {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: var(--text-offwhite);
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--text-cream) 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Description */
.description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

/* ----------------------------------------------------
   COUNTDOWN TIMER
------------------------------------------------------- */

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(10, 5, 3, 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
    transition: var(--transition-smooth);
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-cream);
    letter-spacing: -1px;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* Countdown hover animation */
.glass-card:hover .countdown-box {
    border-color: rgba(212, 163, 115, 0.3);
    box-shadow: 0 8px 30px rgba(212, 163, 115, 0.08);
}

/* ----------------------------------------------------
   NEWSLETTER SIGN UP FORM
------------------------------------------------------- */

.signup-container {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(212, 163, 115, 0.1);
    padding-top: 2rem;
}

.signup-intro {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.signup-intro strong {
    color: var(--accent-gold);
}

.subscribe-form {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(10, 5, 3, 0.6);
    border: 1.5px solid var(--border-glass);
    border-radius: 100px;
    padding: 0.35rem 0.35rem 0.35rem 1.5rem;
    transition: var(--transition-smooth);
}

.input-group:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(212, 163, 115, 0.15);
    background: rgba(10, 5, 3, 0.8);
}

.input-icon {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    margin-right: 0.75rem;
    transition: var(--transition-fast);
}

.input-group:focus-within .input-icon {
    color: var(--accent-gold);
}

.email-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-offwhite);
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
}

.email-input::placeholder {
    color: #6a6256;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    border: none;
    color: #0c0805;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    cursor: none; /* Let the custom cursor handle this */
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(251, 133, 0, 0.3);
}

.subscribe-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(251, 133, 0, 0.5);
}

.subscribe-btn:active {
    transform: scale(0.97);
}

.btn-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.subscribe-btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Form Validation Styles */
.input-group.invalid-email {
    border-color: #ef4444 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2) !important;
}

.input-group.invalid-email .input-icon {
    color: #ef4444;
}

.input-group.shake-anim {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%, 45%, 75% { transform: translateX(-6px); }
    30%, 60%, 90% { transform: translateX(6px); }
}

/* ----------------------------------------------------
   FOOTER SECTION
------------------------------------------------------- */

.footer {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(10, 5, 3, 0.4);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: var(--accent-yellow);
    border-color: var(--border-glass-hover);
    transform: translateY(-3px);
    background: rgba(255, 183, 3, 0.05);
}

.copyright {
    font-size: 0.8rem;
    color: #6a6256;
    text-align: center;
    letter-spacing: 0.5px;
}

/* ----------------------------------------------------
   HINT OVERLAY & TOAST NOTIFICATION
------------------------------------------------------- */

/* Instruction Hint */
.interaction-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    opacity: 0.7;
    animation: pulseOpacity 3s infinite alternate;
    pointer-events: none;
    width: max-content;
    text-align: center;
}

.hint-mouse-icon {
    width: 16px;
    height: 26px;
    border: 1.5px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.hint-mouse-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 5px;
    background-color: var(--accent-gold);
    border-radius: 2px;
    animation: mouseScroll 1.5s infinite;
}

.hint-text {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Modern Notification Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: #120905;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    max-width: 380px;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.toast-icon {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.toast-message {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-offwhite);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: none;
    transition: var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-offwhite);
}

/* Toast types */
.toast.success {
    border-color: rgba(34, 197, 94, 0.3);
}
.toast.success .toast-icon {
    color: #22c55e;
}

.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
}
.toast.error .toast-icon {
    color: #ef4444;
}

/* ----------------------------------------------------
   KEYFRAME ANIMATIONS
------------------------------------------------------- */

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

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

@keyframes scaleUpFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px var(--accent-yellow);
        opacity: 0.8;
    }
    50% {
        box-shadow: 0 0 15px var(--accent-yellow);
        opacity: 1;
    }
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 6px);
        opacity: 0;
    }
}

@keyframes pulseOpacity {
    0% { opacity: 0.4; }
    100% { opacity: 0.85; }
}

/* ----------------------------------------------------
   RESPONSIVENESS AND MOBILE ADAPTATION
------------------------------------------------------- */

@media (max-width: 768px) {
    .content-wrapper {
        padding: 1.5rem;
    }
    
    .glass-card {
        padding: 2rem 1.5rem;
    }
    
    .countdown-container {
        gap: 0.75rem;
    }
    
    .countdown-item {
        min-width: 65px;
    }
    
    .signup-container {
        padding-top: 1.5rem;
    }
    
    .input-group {
        padding: 0.35rem 0.35rem 0.35rem 1rem;
    }
    
    .subscribe-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 48px;
    }
    
    .badge {
        margin-bottom: 1.5rem;
        padding: 0.4rem 0.8rem;
    }
    
    .badge-text {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 55px;
    }
    
    .countdown-box {
        border-radius: 12px;
    }
    
    .input-group {
        border-radius: 12px;
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .input-group:focus-within {
        box-shadow: none;
        background: transparent;
    }
    
    .input-group .email-input {
        background: rgba(10, 5, 3, 0.7);
        border: 1.5px solid var(--border-glass);
        padding: 1rem 1rem 1rem 3rem;
        border-radius: 12px;
        text-align: left;
    }
    
    .input-group .input-icon {
        position: absolute;
        left: 1.2rem;
        top: 1.1rem;
        margin: 0;
    }
    
    .subscribe-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        padding: 1rem;
    }
    
    .interaction-hint {
        display: none; /* Hide interactive guide on tiny mobile */
    }
}

/* High-resolution optimizations (fluid styling) */
@media (min-width: 1400px) {
    .glass-card {
        max-width: 760px;
        padding: 4rem 3.5rem;
    }
    
    .countdown-item {
        min-width: 90px;
    }
}
