@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
    
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --casino-gold: linear-gradient(135deg, #ffd700 0%, #ffb347 100%);
    --dark-bg: #0a0a0f;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Grau-Modus (vor dem Geburtstag) */
.gray-mode {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d1117 100%);
    color: #8b949e;
}

/* Bunter Modus (nach dem Geburtstag) */
.colorful-mode {
    background: linear-gradient(135deg, #0a0a0f 0%, #1a0933 40%, #0f051a 100%);
    color: #ffffff;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
}

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

/* Sticker Animations */
.stickers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.sticker {
    position: absolute;
    font-size: 2.5rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.colorful-mode .sticker {
    opacity: 0.8;
}

.sticker:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.sticker:nth-child(2) { top: 15%; right: 15%; animation-delay: 1s; }
.sticker:nth-child(3) { bottom: 20%; left: 8%; animation-delay: 2s; }
.sticker:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 3s; }
.sticker:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.sticker:nth-child(6) { top: 60%; right: 5%; animation-delay: 5s; }
.sticker:nth-child(7) { top: 30%; left: 2%; animation-delay: 1.5s; }
.sticker:nth-child(8) { bottom: 40%; right: 3%; animation-delay: 2.5s; }

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

/* Typography */
.countdown-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.colorful-mode .countdown-title {
    animation: gentle-glow 4s ease-in-out infinite alternate;
}

@keyframes gentle-glow {
    from { filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3)); }
    to { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.6)); }
}

/* Countdown Display */
.countdown-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    max-width: 500px;
}

.time-unit {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    padding: 1.5rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.colorful-mode .time-unit {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    animation: subtle-pulse 3s ease-in-out infinite;
}

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

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.time-label {
    font-size: 0.875rem;
    opacity: 0.85;
    margin-top: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Birthday Content */
.birthday-content {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.birthday-content.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.celebration-header {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 2rem 0 1.5rem 0;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: celebration-bounce 3s ease-in-out infinite;
}

@keyframes celebration-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.age-display {
    font-size: 4rem;
    font-weight: 900;
    margin: 2rem 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(79, 172, 254, 0.3));
}

/* Casino Slot Machine */
.casino-section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.casino-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--casino-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slot-machine {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
}

.slots-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.slot {
    background: #000;
    border: 2px solid #ffd700;
    border-radius: 10px;
    width: 80px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.slot.spinning {
    animation: slot-spin 0.1s linear infinite;
}

@keyframes slot-spin {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.spin-button {
    background: var(--casino-gold);
    border: none;
    color: #000;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.jackpot-reveal {
    display: none;
    background: var(--secondary-gradient);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    animation: jackpot-celebration 1s ease-out;
}

@keyframes jackpot-celebration {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.jackpot-amount {
    font-size: 3rem;
    font-weight: 900;
    margin: 1rem 0;
}

/* Personal Message Section */
.personal-message {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.personal-message h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.personal-message p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 0.8rem;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.premium-card:hover::before {
    transform: scaleX(1);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Specific Gift Cards */
.gift-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.gift-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gift-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.gift-emoji {
    font-size: 2rem;
    min-width: 60px;
    text-align: center;
}

.gift-details h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.gift-details p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.5;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.photo-placeholder {
    aspect-ratio: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    gap: 0.5rem;
}

.photo-placeholder:hover {
    transform: scale(1.05);
}

.photo-placeholder::before {
    content: '📷';
    font-size: 2rem;
    opacity: 0.6;
}

/* Buttons */
.premium-button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.premium-button:hover::before {
    left: 100%;
}

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Konfetti */
.confetti {
    position: fixed;
    top: -10px;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: confetti-fall 4s linear infinite;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1rem;
    }
    
    .glass-container {
        padding: 2rem 1.5rem;
    }
    
    .countdown-title {
        font-size: 2.2rem;
    }
    
    .celebration-header {
        font-size: 2.2rem;
    }
    
    .age-display {
        font-size: 3rem;
    }
    
    .time-value {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 1rem;
    }

    .personal-message {
        margin: 2rem 1rem;
        padding: 2rem 1.5rem;
    }

    .personal-message h2 {
        font-size: 1.6rem;
    }

    .personal-message p {
        font-size: 0.95rem;
    }
    
    .sticker {
        font-size: 2rem;
    }

    .slots-display {
        gap: 0.3rem;
    }

    .slot {
        width: 50px;
        height: 70px;
        font-size: 2rem;
    }

    .casino-title {
        font-size: 1.8rem;
    }

    .spin-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .casino-section {
        padding: 2rem 1rem;
        margin: 2rem 1rem;
    }

    #casinoMessage {
        font-size: 0.9rem;
    }

    .jackpot-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .celebration-header {
        font-size: 2.4rem;
    }
    
    .age-display {
        font-size: 2.5rem;
    }
}