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

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a28;
    --accent-gold: #f5a623;
    --accent-turquoise: #00e5c7;
    --accent-pink: #ff4f8b;
    --text-primary: #f0f0f0;
    --text-secondary: #8888aa;
    --glow-gold: 0 0 20px rgba(245, 166, 35, 0.5), 0 0 60px rgba(245, 166, 35, 0.2);
    --glow-turquoise: 0 0 20px rgba(0, 229, 199, 0.5), 0 0 60px rgba(0, 229, 199, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a0f 70%);
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-glow 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 229, 199, 0.06) 0%, transparent 70%);
    top: 30%;
    right: 10%;
    animation: pulse-glow 3s ease-in-out infinite 1s;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-label {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-turquoise);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fade-up 1s ease forwards 0.5s;
}

.hero-title {
    font-family: 'Pacifico', cursive;
    font-size: clamp(4rem, 12vw, 10rem);
    display: flex;
    justify-content: center;
    gap: 0.2em;
    margin: 0.5rem 0;
}

.letter {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(60px) scale(0.5);
    animation: letter-bounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: calc(var(--delay) * 0.15s + 1s);
    filter: drop-shadow(0 0 20px rgba(245, 166, 35, 0.4));
}

@keyframes letter-bounce {
    0% { opacity: 0; transform: translateY(60px) scale(0.5); }
    60% { transform: translateY(-10px) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-number {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    opacity: 0;
    animation: fade-up 1s ease forwards 1.8s;
    letter-spacing: 3px;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    cursor: pointer;
    opacity: 0;
    animation: fade-up 1s ease forwards 2.5s;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.arrow-down {
    width: 24px;
    height: 24px;
    margin: 0 auto;
    border-right: 2px solid var(--accent-turquoise);
    border-bottom: 2px solid var(--accent-turquoise);
    transform: rotate(45deg);
    animation: bounce-arrow 2s ease-in-out infinite;
}

@keyframes bounce-arrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

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

.section {
    padding: 5rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-turquoise), var(--accent-pink));
}

.section-title {
    font-family: 'Pacifico', cursive;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
}

.glow-text {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-turquoise));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(245, 166, 35, 0.3));
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.detail-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-gold);
    border-color: rgba(245, 166, 35, 0.15);
}

.detail-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.detail-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.detail-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.countdown-item:hover .countdown-number {
    transform: scale(1.1);
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.3rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s ease;
}

.highlight-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(0, 229, 199, 0.2);
    box-shadow: var(--glow-turquoise);
}

.highlight-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.highlight-card:hover .highlight-emoji {
    transform: scale(1.2) rotate(5deg);
}

.highlight-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.rsvp-card {
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 166, 35, 0.05) 100%);
}

.rsvp-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.rsvp-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-yes {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-pink));
    color: #fff;
    box-shadow: 0 4px 20px rgba(245, 166, 35, 0.3);
}

.btn-yes:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(245, 166, 35, 0.5);
}

.btn-no {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-no:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.rsvp-message {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    opacity: 1;
    transition: all 0.5s ease;
}

.rsvp-message.yes {
    background: rgba(0, 229, 199, 0.1);
    border: 1px solid rgba(0, 229, 199, 0.3);
    color: var(--accent-turquoise);
}

.rsvp-message.no {
    background: rgba(136, 136, 170, 0.1);
    border: 1px solid rgba(136, 136, 170, 0.3);
    color: var(--text-secondary);
}

.hidden {
    display: none;
}

.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    position: relative;
}

.footer::before {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-turquoise));
    margin: 0 auto 2rem;
}

.footer-text {
    font-family: 'Pacifico', cursive;
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; }
    50% { opacity: var(--max-opacity, 0.7); }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 4rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

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

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-container {
        gap: 0.8rem;
    }

    .details-grid,
    .highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.9rem;
    }
}