:root {
    --bg-gradient-start: #12073a;
    --bg-gradient-end: #490762;
    --gold: #f7d07a;
    --light-gold: #ffe8b5;
    --accent: #ff5fa2;
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.72);
    --card-bg: rgba(21, 12, 46, 0.55);
    --blur-bg: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
    color: var(--white);
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 40%),
        linear-gradient(120deg, var(--bg-gradient-start), var(--bg-gradient-end));
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.06), transparent 45%);
    z-index: -2;
    animation: gradientShift 18s ease-in-out infinite alternate;
}

.background-effects {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

#fireworks {
    width: 100%;
    height: 100%;
    display: block;
}

.snow-layer {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 20px, rgba(255, 255, 255, 0.6) 50%, transparent 55%),
        radial-gradient(2px 2px at 40px 80px, rgba(255, 255, 255, 0.5) 50%, transparent 55%),
        radial-gradient(3px 3px at 100px 30px, rgba(255, 255, 255, 0.4) 50%, transparent 55%),
        radial-gradient(2px 2px at 200px 120px, rgba(255, 255, 255, 0.5) 50%, transparent 55%);
    background-size: 200px 200px;
    animation: snowfall 12s linear infinite;
    opacity: 0.6;
}

section {
    padding: 100px 6vw;
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    background: rgba(10, 5, 25, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6vw;
}

.logo {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--light-gold);
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.3rem;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 60px;
    padding-top: 140px;
}

.hero-content h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.8rem, 4vw, 3.8rem);
    margin-bottom: 18px;
    line-height: 1.1;
}

.hero-content p {
    color: var(--muted);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-overline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--light-gold);
    display: inline-block;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
    background: linear-gradient(135deg, var(--gold), var(--accent));
    color: #1d0f32;
    box-shadow: 0 12px 30px rgba(255, 95, 162, 0.35);
}

.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: transparent;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-4px) scale(1.02);
}

.hero-ornaments {
    position: relative;
    min-height: 320px;
}

.ornament {
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(255, 95, 162, 0.4));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    animation: float 9s ease-in-out infinite;
}

.ornament-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 10%;
    animation-delay: -2s;
}

.ornament-2 {
    width: 120px;
    height: 120px;
    top: 40%;
    right: 18%;
    animation-delay: -5s;
}

.ornament-3 {
    width: 220px;
    height: 220px;
    bottom: 0;
    left: 40%;
    animation-delay: -7s;
    background: radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.9), rgba(247, 208, 122, 0.5));
}

.countdown {
    text-align: center;
}

.countdown h2 {
    font-size: 2.2rem;
    margin-bottom: 36px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
}

.time-box {
    padding: 24px 20px;
    border-radius: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(12, 5, 25, 0.35);
    position: relative;
    overflow: hidden;
}

.time-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(247, 208, 122, 0.25), rgba(255, 95, 162, 0.35));
    opacity: 0;
    transition: opacity 0.6s ease;
}

.time-box .value {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 6px 18px rgba(255, 95, 162, 0.4);
}

.time-box .label {
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--light-gold);
}

.time-box.pulse::before {
    opacity: 1;
    animation: pulseGlow 1.4s ease;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 60px;
}

.section-heading h2 {
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-top: 12px;
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7;
    margin-top: 16px;
}

.overline {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    color: var(--light-gold);
}

.timeline {
    position: relative;
    margin-left: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(247, 208, 122, 0.4), rgba(255, 95, 162, 0.1));
}

.timeline-item {
    display: flex;
    gap: 30px;
    position: relative;
    padding: 24px 0 24px 36px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 32px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    box-shadow: 0 0 18px rgba(255, 95, 162, 0.6);
}

.timeline-item .time {
    min-width: 80px;
    font-weight: 700;
    color: var(--light-gold);
}

.timeline-item .content {
    background: var(--card-bg);
    padding: 22px 24px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 28px rgba(12, 5, 25, 0.3);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
}

.highlight-card {
    background: var(--card-bg);
    padding: 28px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 32px rgba(12, 5, 25, 0.4);
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.event-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 28px rgba(12, 5, 25, 0.32);
    position: relative;
    overflow: hidden;
}

.event-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover::after {
    opacity: 1;
}

.event-card .author {
    display: block;
    margin-top: 18px;
    color: var(--light-gold);
    font-weight: 600;
}

.cta {
    display: flex;
    justify-content: center;
}

.cta-card {
    background: linear-gradient(135deg, rgba(247, 208, 122, 0.05), rgba(255, 95, 162, 0.08));
    padding: 60px 48px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    box-shadow: 0 22px 40px rgba(12, 5, 25, 0.35);
    text-align: center;
    max-width: 640px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.gallery-item {
    aspect-ratio: 3 / 4;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(12, 5, 25, 0.6));
    display: flex;
    align-items: flex-end;
    padding: 18px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(247, 208, 122, 0.3), transparent 55%);
    opacity: 0.6;
}

.site-footer {
    text-align: center;
    padding: 36px 6vw 60px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    background: rgba(10, 5, 25, 0.65);
}

[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-22px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes snowfall {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: 0 200px, 0 400px, 0 600px, 0 800px;
    }
}

@keyframes gradientShift {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.03);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.hero-content h1,
.hero-content p,
.hero-overline,
.hero-actions {
    animation: fadeUp 1s ease both;
}

.hero-content h1 {
    animation-delay: 0.1s;
}

.hero-content p {
    animation-delay: 0.2s;
}

.hero-actions {
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: absolute;
        top: 64px;
        right: 6vw;
        flex-direction: column;
        gap: 16px;
        background: rgba(10, 5, 25, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 16px 20px;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
    }

    .nav-links.open {
        transform: scaleY(1);
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        padding-top: 120px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 80px 6vw;
    }

    .site-header {
        padding: 16px 6vw;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-ornaments {
        min-height: 240px;
    }

    .ornament-1,
    .ornament-2,
    .ornament-3 {
        filter: blur(1.5px);
    }
}
