:root {
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --glass-bg: rgba(20, 20, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050505;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

/* Dynamic Animated Background */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, #1a0b2e 0%, #050505 100%);
    z-index: -2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(138, 43, 226, 0.3); /* Purple */
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.2); /* Gold */
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: rgba(0, 191, 255, 0.2); /* Deep sky blue */
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.container {
    width: 90%;
    max-width: 900px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    z-index: 10;
    animation: fadeIn 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.title {
    font-family: 'Cinzel', serif;
    font-size: 5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    position: relative;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold-gradient);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    width: 130px;
    height: 130px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.time-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.time-number {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    font-variant-numeric: tabular-nums;
    transition: transform 0.1s ease;
}

.time-number.pop {
    transform: scale(1.1);
    color: #fcf6ba;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.separator {
    font-size: 3rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    margin: 0 0.5rem;
    animation: blink 2s infinite;
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* =========================================
   Responsive Web Design (RWD) 
   ========================================= */

/* Desktop & Large Tablet (Landscape) */
@media (max-width: 1024px) {
    .title {
        font-size: 4rem;
    }
    .countdown {
        gap: 0.5rem;
    }
    .time-block {
        width: 110px;
        height: 110px;
    }
    .time-number {
        font-size: 3rem;
    }
}

/* Tablet (Portrait) */
@media (max-width: 768px) {
    .container {
        padding: 3rem 1.5rem;
    }
    .title {
        font-size: 3rem;
    }
    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.3em;
    }
    .countdown {
        gap: 0.5rem;
    }
    .time-block {
        width: 90px;
        height: 90px;
        border-radius: 12px;
    }
    .time-number {
        font-size: 2.5rem;
    }
    .time-label {
        font-size: 0.7rem;
    }
    .separator {
        font-size: 2rem;
        margin: 0 0.2rem;
    }
}

/* Mobile (Portrait) */
@media (max-width: 480px) {
    .container {
        padding: 2.5rem 1rem;
        border-radius: 20px;
    }
    .title {
        font-size: 2.2rem;
    }
    .subtitle {
        font-size: 1rem;
        letter-spacing: 0.2em;
    }
    .countdown {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    .separator {
        display: none; /* Hide separators on mobile for 2x2 grid layout */
    }
    .time-block {
        width: calc(50% - 1rem); /* 2 items per row */
        height: 100px;
        max-width: 140px;
    }
    .time-number {
        font-size: 2.5rem;
    }
}

/* Mobile (Landscape) - Very short screens */
@media (max-height: 480px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        overflow-y: auto;
    }
    .container {
        margin: 1rem auto;
        padding: 1.5rem 1rem;
    }
    .title {
        font-size: 2rem;
        margin-bottom: 0.2rem;
    }
    .subtitle {
        margin-bottom: 1rem;
    }
    .time-block {
        width: 80px;
        height: 80px;
    }
    .time-number {
        font-size: 2rem;
    }
}
