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

:root {
    /* Light Mode Colors - TenneT Palette */
    --bg-primary: linear-gradient(135deg, #014495 0%, #6DABC8 50%, #50B02E 100%);
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-accent: #014495;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --overlay: rgba(0, 0, 0, 0.7);
}

body.dark-mode {
    --bg-primary: linear-gradient(135deg, #012255 0%, #4a7a8f 50%, #2d5f1e 100%);
    --bg-card: rgba(45, 55, 72, 0.95);
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-accent: #6DABC8;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    --overlay: rgba(0, 0, 0, 0.85);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px 40px;
    animation: fadeInDown 1s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px var(--shadow);
    margin-bottom: 15px;
    background: var(--bg-card);
    display: inline-block;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px var(--shadow);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 20px;
    background: var(--bg-card);
    display: inline-block;
    padding: 10px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Countdown Container */
.countdown-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.countdown-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px 20px;
    box-shadow: 0 10px 40px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: bounceIn 0.8s ease;
    animation-fill-mode: both;
}

.countdown-card:nth-child(1) { animation-delay: 0.1s; }
.countdown-card:nth-child(2) { animation-delay: 0.2s; }
.countdown-card:nth-child(3) { animation-delay: 0.3s; }
.countdown-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.countdown-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 50px var(--shadow-hover);
}

.countdown-number {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    color: var(--text-accent);
    line-height: 1;
    margin-bottom: 10px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Humor Section */
.humor-section {
    margin: 60px auto;
    max-width: 800px;
    padding: 0 20px;
}

.quote-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px var(--shadow);
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-text {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    animation: fadeIn 1s ease;
}

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

/* Gallery Section */
.gallery-section {
    margin: 80px auto;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 40px;
    background: var(--bg-card);
    display: inline-block;
    padding: 15px 40px;
    border-radius: 15px;
    box-shadow: 0 6px 25px var(--shadow);
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px var(--shadow-hover);
}

.gallery-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6DABC8 0%, #014495 100%);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

/* Celebration Message */
.celebration-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px var(--shadow-hover);
    text-align: center;
    z-index: 10000;
    max-width: 90%;
    animation: celebrationPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.celebration-message.show {
    display: block;
}

@keyframes celebrationPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.celebration-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-accent);
    margin-bottom: 20px;
}

.celebration-text {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.celebration-subtext {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: var(--bg-card);
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .theme-toggle {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .hero {
        padding: 40px 10px 30px;
    }

    .countdown-card {
        padding: 20px 15px;
    }

    .quote-container {
        padding: 30px 20px;
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
}
