/* Core Variables & South Indian Theme Colors */
:root {
    --gold-primary: #d4af37; /* Premium Gold */
    --gold-light: #f5d76e;
    --leaf-green: #297a3a; /* Banana Leaf Green */
    --curry-red: #c93b2a; /* Chilli Red Accent */
    --turmeric: #f5b041; /* Turmeric Yellow */
    --bg-dark: #0a0c10; /* Very deep background */
    --text-main: #f8f9fa;
    --text-muted: #a0aab5;
    
    /* Glassmorphism settings */
    --glass-bg: rgba(20, 24, 30, 0.45);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark);
    /* High quality food background pattern */
    background-image: url('https://images.unsplash.com/photo-1614777986387-015c2a89b696?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    perspective: 1000px;
}

/* Dark overlay to make text pop over the background image */
.bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 10, 15, 0.85) 0%, rgba(15, 20, 25, 0.95) 100%);
    backdrop-filter: blur(8px);
    z-index: 0;
}

/* Abstract Floating Shapes (South Indian Colors) */
.background-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    animation: drift 20s infinite alternate ease-in-out;
}

.leaf-1 {
    top: -10%; left: -10%;
    width: 600px; height: 600px;
    background-color: var(--leaf-green);
    animation-duration: 25s;
}

.leaf-2 {
    bottom: -20%; right: -10%;
    width: 700px; height: 700px;
    background-color: var(--leaf-green);
    animation-delay: -10s;
}

.spice-1 {
    top: 40%; left: 30%;
    width: 400px; height: 400px;
    background-color: var(--curry-red);
    opacity: 0.2;
    animation-duration: 18s;
}

.spice-2 {
    top: 20%; right: 20%;
    width: 350px; height: 350px;
    background-color: var(--turmeric);
    opacity: 0.2;
    animation-duration: 22s;
}

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

/* Falling Food Animation */
.food-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.falling-item {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.6;
    animation: fall linear infinite;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
    transform-style: preserve-3d;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotateX(0deg) rotateY(0deg) translateZ(0);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(110vh) rotateX(360deg) rotateY(720deg) translateZ(50px);
        opacity: 0;
    }
}

.main-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    z-index: 10;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* Advanced Glassmorphism & 3D styling */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 40px;
    padding: 3.5rem 4rem;
    width: 100%;
    text-align: center;
    box-shadow: var(--glass-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, box-shadow 0.3s ease;
}

.logo-inner-wrapper {
    width: 280px;
    height: 280px;
    margin: 0 auto 1.5rem;
    transform: translateZ(100px); /* Massive 3D pop */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.main-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-title-sub {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 4px;
    text-transform: uppercase;
    transform: translateZ(60px);
    margin-top: -10px;
}


.content-area {
    transform: translateZ(40px); /* 3D POP */
}

.announcement {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.2rem;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.location-badge:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-3px);
}

.location-badge p {
    font-size: 1rem;
    color: #e0e0e0;
}

/* Timer Styles */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 3rem;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem 1.2rem;
    border-radius: 20px;
    min-width: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.time-box:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.time-box .num {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.time-box .label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.separator {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--gold-primary);
    margin-top: -1.5rem;
    opacity: 0.6;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.2; }
}

/* Subscription Form */
.notify-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.glass-input {
    flex: 1;
    background: rgba(10, 12, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem 1.8rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    background: rgba(10, 12, 15, 0.8);
}

.glass-input::placeholder {
    color: #6c757d;
}

.notify-btn {
    background: linear-gradient(135deg, var(--gold-primary) 0%, #aa8529 100%);
    color: #000;
    border: none;
    border-radius: 16px;
    padding: 0 2.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.notify-btn .arrow {
    transition: transform 0.3s ease;
}

.notify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

.notify-btn:hover .arrow {
    transform: translateX(5px);
}

/* Footer Section */
.footer {
    width: 100%;
    padding: 1.5rem;
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.copyright-symbol {
    font-size: 1.1rem;
    color: var(--gold-primary);
}

.brand-name {
    color: var(--gold-light);
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }
    
    .logo-title {
        font-size: 2.8rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .announcement {
        font-size: 1.3rem;
    }
    
    .timer-container {
        gap: 8px;
    }
    
    .time-box {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .time-box .num {
        font-size: 2.2rem;
    }
    
    .time-box .label {
        font-size: 0.7rem;
    }
    
    .separator {
        font-size: 2rem;
        margin-top: -1rem;
    }
    
    .notify-form {
        flex-direction: column;
    }
    
    .glass-input {
        text-align: center;
    }
    
    .notify-btn {
        padding: 1.2rem;
        justify-content: center;
        width: 100%;
    }
    
    .footer-content {
        flex-wrap: wrap;
    }
}
