/* Modern Design Tokens */
:root {
    --bg-color: #0b0f19;
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --brand-celestial: #e11d48; /* Crimson / Red from logo */
    --brand-offic: #0f766e;     /* Deep Teal / Green from logo */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Soft mesh gradient background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(225, 29, 72, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 118, 110, 0.1) 0px, transparent 50%);
}

/* Background Atmosphere */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, transparent 0%, rgba(3, 7, 18, 0.8) 100%);
    z-index: -2;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.03;
    z-index: -2;
    pointer-events: none;
}

.glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
    animation: float 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    pointer-events: none;
}

.glow-1 {
    background: var(--brand-celestial);
    top: -10%;
    left: -10%;
}

.glow-2 {
    background: var(--brand-offic);
    bottom: -10%;
    right: -10%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 10vh) scale(1.1); }
}

/* Layout Container */
.container {
    max-width: 1200px;
    width: 100%;
    padding: 3rem 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header & Typography */
.header {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: slideDown 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 0.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* Premium Countdown Timer */
.timer-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 5rem;
    animation: fadeIn 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.time-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 1.5rem 1rem;
    width: 130px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.time-box:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.time-val {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.2);
    /* Monospaced numbers to stop jittering */
    font-variant-numeric: tabular-nums; 
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 500;
}

/* Brands Sections */
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1000px;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

.brand-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover glow borders via pseudo-element */
.brand-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.brand-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.celestial-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, var(--brand-celestial) 0%, transparent 100%);
}

.offic-card:hover::after {
    opacity: 1;
    background: linear-gradient(135deg, var(--brand-offic) 0%, transparent 100%);
}

.brand-logo-container {
    background: #ffffff; /* White bg required for accurate logo presentation */
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    width: 100%;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s ease;
}

.brand-card:hover .brand-logo-container {
    transform: scale(1.03);
}

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

.brand-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    width: 100%;
}

.category-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    color: #cbd5e1;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.celestial-card .category-list li:hover {
    background: rgba(225, 29, 72, 0.15);
    border-color: rgba(225, 29, 72, 0.5);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(225, 29, 72, 0.2);
}

.offic-card .category-list li:hover {
    background: rgba(15, 118, 110, 0.15);
    border-color: rgba(15, 118, 110, 0.5);
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(15, 118, 110, 0.2);
}

/* Animations */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .timer-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    
    .time-box {
        width: 110px;
        padding: 1.25rem 0.5rem;
    }
    
    .brands {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .time-box {
        width: 85px;
        padding: 1rem 0.25rem;
        border-radius: 1rem;
    }
    
    .time-label {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
    }
    
    .brand-card {
        padding: 2rem 1.5rem;
    }
    
    .brand-logo-container {
        height: 100px;
        padding: 1rem;
    }
}
