/* Custom Properties & Design Tokens */
:root {
    --bg-primary: #08060f;
    --card-bg: rgba(14, 11, 26, 0.6);
    --card-border: rgba(255, 193, 7, 0.15);
    
    /* Elegant Gold Gradient Colors */
    --gold-1: #ffd54f;
    --gold-2: #ff8f00;
    --gold-3: #ff6d00;
    
    /* Text Colors */
    --text-primary: #fbf9f4;
    --text-secondary: #dcd7ca;
    --text-muted: #9c9482;
    
    /* Font Families */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Shadow & Glows */
    --gold-glow: 0 0 20px rgba(255, 143, 0, 0.35);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Ambient Background Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    mix-blend-mode: screen;
}

.bg-glow-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(123, 31, 162, 0.6) 0%, rgba(0,0,0,0) 70%);
    top: -20%;
    left: -10%;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.bg-glow-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(230, 81, 0, 0.5) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    right: -10%;
    animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

/* Star Overlay Effect */
.stars-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #fff5d6, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 10px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 150px 130px, #ffd54f, rgba(0,0,0,0)),
        radial-gradient(1.5px 1.5px at 250px 50px, #ffffff, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 300px 220px, #ffffff, rgba(0,0,0,0));
    background-size: 350px 350px;
    opacity: 0.25;
    z-index: 2;
    pointer-events: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 750px;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 5;
    min-height: 100vh;
    justify-content: center;
}

/* Logo & Mandala Anim */
.logo-container {
    width: 110px;
    height: 110px;
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mandala-svg {
    width: 100%;
    height: 100%;
    animation: spinMandala 60s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 143, 0, 0.4));
}

/* Main Glassmorphic Card */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    width: 100%;
    box-shadow: var(--glass-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 213, 79, 0.05),
        transparent
    );
    transition: 0.5s;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
    transition: 1s ease-in-out;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 50%, var(--gold-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-1);
    margin-bottom: 1.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 2.5rem auto;
}

/* Countdown Timer */
.countdown-wrapper {
    display: grid;
    grid-template-columns: repeat(7, auto);
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 14px;
    min-width: 75px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.time-num {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.time-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 0.4rem;
    font-weight: 500;
}

.time-divider {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--gold-2);
    opacity: 0.8;
    line-height: 1;
    padding-bottom: 0.8rem;
    animation: pulseDivider 1.5s infinite;
}

/* Notification Form */
.notify-form {
    display: flex;
    gap: 0.75rem;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.notify-form:focus-within {
    border-color: rgba(255, 143, 0, 0.4);
    box-shadow: 0 0 15px rgba(255, 143, 0, 0.15);
}

.email-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 50px;
}

.email-input::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    background: linear-gradient(135deg, var(--gold-2) 0%, var(--gold-3) 100%);
    border: none;
    outline: none;
    color: #08060f;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 111, 0, 0.25);
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 111, 0, 0.4);
}

.submit-btn:active {
    transform: translateY(1px);
}

.btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translate(2px, -2px);
}

.form-message {
    font-size: 0.9rem;
    margin-top: 1rem;
    min-height: 20px;
    transition: all 0.3s ease;
}

/* Footer Section */
.footer {
    margin-top: 3rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.social-icon {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    color: var(--gold-1);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 213, 79, 0.2);
    box-shadow: var(--gold-glow);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Keyframes & Animations */
@keyframes spinMandala {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(5%, 8%) scale(1.1);
    }
}

@keyframes pulseDivider {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive Styling */
@media (max-width: 600px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .card {
        padding: 2.2rem 1.2rem;
    }

    .brand-title {
        font-size: 2.3rem;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }

    .countdown-wrapper {
        gap: 0.4rem;
        margin-bottom: 2.2rem;
    }

    .time-block {
        min-width: 62px;
        padding: 0.6rem 0.5rem;
    }

    .time-num {
        font-size: 1.5rem;
    }

    .time-label {
        font-size: 0.65rem;
    }

    .time-divider {
        font-size: 1.3rem;
        padding-bottom: 0.5rem;
    }

    .notify-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.8rem;
    }

    .email-input {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        padding: 1rem 1.5rem;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
}
