/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
    --color-primary: #1a1a2e;
    --color-secondary: #16213e;
    --color-accent-red: #e63946;
    --color-accent-green: #2d6a4f;
    --color-gold: #ffd700;
    --color-snow: #ffffff;
    --color-ice: #a8dadc;
    --gradient-christmas: linear-gradient(135deg, #1a472a 0%, #2d5a27 50%, #1a472a 100%);
    --gradient-festive: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-gold: linear-gradient(135deg, #f5af19 0%, #f12711 100%);
    --shadow-glow: 0 0 40px rgba(255, 215, 0, 0.3);
    --shadow-text: 0 0 20px rgba(255, 255, 255, 0.5);
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
    color: var(--color-snow);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(230, 57, 70, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(45, 106, 79, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   Language Switcher
   ========================================== */
.language-switcher {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.3) 0%, rgba(255, 107, 107, 0.3) 100%);
    border-color: rgba(255, 215, 0, 0.5);
    color: white;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

/* Mobile language switcher */
@media (max-width: 480px) {
    .language-switcher {
        top: 1rem;
        right: 1rem;
    }

    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* ==========================================
   Snowfall Animation
   ========================================== */
.snowflakes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: #fff;
    font-size: 1rem;
    opacity: 0.8;
    animation: snowfall linear infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes snowfall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(50px);
        opacity: 0.3;
    }
}

/* ==========================================
   Floating Decorations
   ========================================== */
.decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.christmas-tree { top: 10%; left: 5%; animation-delay: 0s; font-size: 3rem; }
.gift { top: 60%; left: 8%; animation-delay: 1s; }
.star { top: 15%; right: 10%; animation-delay: 2s; font-size: 2.5rem; }
.bell { top: 70%; right: 5%; animation-delay: 0.5s; }
.candy { top: 40%; left: 3%; animation-delay: 1.5s; }
.snowman { top: 80%; right: 15%; animation-delay: 2.5s; font-size: 2.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* ==========================================
   Main Container
   ========================================== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    text-align: center;
    gap: 1.5rem;
}

/* ==========================================
   Brand/Logo
   ========================================== */
.brand {
    margin-bottom: 1rem;
}

.logo {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 50%, #ffd700 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    letter-spacing: -2px;
}

.domain {
    background: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.tagline {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

/* ==========================================
   Event Title
   ========================================== */
.event-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, #2d6a4f, #52b788, #95d5b2, #d8f3dc, #95d5b2, #52b788, #2d6a4f);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s linear infinite;
}

@keyframes textGradient {
    to { background-position: 200% center; }
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* ==========================================
   Countdown Timer
   ========================================== */
.countdown-wrapper {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 0 100px rgba(255, 215, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.countdown-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 215, 0, 0.1),
        transparent,
        rgba(230, 57, 70, 0.1),
        transparent
    );
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.countdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.3) 0%, rgba(26, 71, 42, 0.5) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    min-width: 90px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.countdown-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
    font-weight: 600;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    animation: blink 1s ease-in-out infinite;
    padding: 0 0.25rem;
}

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

/* ==========================================
   Message Box
   ========================================== */
.message-box {
    max-width: 600px;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 16px;
    border: 1px solid rgba(230, 57, 70, 0.3);
    backdrop-filter: blur(10px);
}

.message {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

/* ==========================================
   Social Links
   ========================================== */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-btn:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ff6b6b 100%);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-wishes {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   Fireworks Canvas
   ========================================== */
#fireworks {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ==========================================
   Responsive Styles
   ========================================== */

/* Tablets */
@media (max-width: 768px) {
    .logo {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .event-title h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .countdown-wrapper {
        padding: 1.5rem 1rem;
    }

    .countdown {
        gap: 0.3rem;
    }

    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 2rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .countdown-separator {
        font-size: 2rem;
    }

    .decoration {
        font-size: 1.5rem;
    }

    .christmas-tree, .star, .snowman {
        font-size: 2rem;
    }

    .message-box {
        padding: 1rem 1.5rem;
    }

    .message {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 1.5rem 0.75rem;
        gap: 1rem;
    }

    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .event-title h2 {
        font-size: 1.2rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .countdown-wrapper {
        padding: 1rem 0.5rem;
        border-radius: 16px;
        width: 100%;
        max-width: 350px;
    }

    .countdown {
        gap: 0.2rem;
    }

    .countdown-item {
        padding: 0.5rem 0.6rem;
        min-width: 55px;
        border-radius: 12px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    .countdown-separator {
        font-size: 1.5rem;
        padding: 0 0.1rem;
    }

    .decoration {
        font-size: 1.2rem;
    }

    .christmas-tree, .star, .snowman {
        font-size: 1.5rem;
    }

    .message-box {
        padding: 0.75rem 1rem;
    }

    .message {
        font-size: 0.9rem;
    }

    .social-btn {
        width: 44px;
        height: 44px;
    }

    .social-btn svg {
        width: 20px;
        height: 20px;
    }

    .footer {
        font-size: 0.8rem;
    }

    .footer-wishes {
        font-size: 0.9rem;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .countdown-item {
        min-width: 48px;
        padding: 0.4rem 0.5rem;
    }

    .countdown-value {
        font-size: 1.4rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
    }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 1rem;
        gap: 0.75rem;
    }

    .brand {
        margin-bottom: 0.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .event-title h2 {
        font-size: 1.1rem;
    }

    .countdown-wrapper {
        padding: 0.75rem;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .message-box {
        padding: 0.5rem 1rem;
    }

    .decoration {
        display: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .countdown-value {
        font-weight: 700;
    }
}

