@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Lato:wght@300;400;700&display=swap');

:root {
    --background: hsl(230, 38%, 10%);
    --foreground: hsl(36, 79%, 92%);
    --card: hsl(230, 38%, 15%);
    --primary: hsl(42, 55%, 54%);
    --primary-light: hsl(42, 80%, 75%);
    --champagne: hsl(36, 79%, 88%);
    --muted: hsl(230, 30%, 20%);
    --muted-foreground: hsl(36, 40%, 65%);
    --border: hsl(42, 30%, 30%);

    --font-display: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-center {
    text-align: center;
}

.font-display {
    font-family: var(--font-display);
}

.font-body {
    font-family: var(--font-body);
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: 700;
}

.semibold {
    font-weight: 600;
}

/* Layout Utilities */
.container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-sm {
    max-width: 672px;
    margin: 0 auto;
    padding: 0 24px;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.gap-4 {
    gap: 16px;
}

.gap-6 {
    gap: 24px;
}

.gap-8 {
    gap: 32px;
}

.gap-10 {
    gap: 40px;
}

.gap-12 {
    gap: 48px;
}

/* Animations */
@keyframes confetti-fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(1200px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes sparkle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-30px) scale(1.3);
        opacity: 1;
    }

    100% {
        transform: translateY(-60px) scale(0.8);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes float-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes bokeh-drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(10px, -15px) scale(1.05);
    }

    66% {
        transform: translate(-8px, 8px) scale(0.95);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: none;
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.confetti-piece {
    position: absolute;
    animation: confetti-fall linear infinite;
}

.sparkle {
    position: absolute;
    animation: sparkle-float ease-in-out infinite;
}

/* Nav */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s;
    background-color: transparent;
}

.nav.scrolled {
    background-color: hsla(230, 38%, 10%, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid hsla(42, 55%, 54%, 0.2);
    background-color: hsla(42, 55%, 54%, 0.05);
}

.nav-countdown-label {
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}

.nav-countdown-item {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.nav-countdown-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
    font-size: 14px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 24px;
}

.nav-link {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--champagne);
}

/* Sections */
section {
    padding: 96px 24px;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
}

.section-title-sub {
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title-main {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.section-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.section-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    min-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 96px;
}

.hero-bg {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.8), rgba(26, 26, 36, 0.95)), url('assets/hero-bg.webp');
    background-size: cover;
    background-position: center;
}

#rsvp {
    background: linear-gradient(0deg, rgba(26, 26, 36, 0.8), rgba(26, 26, 36, 0.95)), url('assets/rsvp-bg.webp');
    background-size: cover;
    background-position: center;
    border-radius: 24px;
    margin: 40px 20px;
    padding: 60px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.hero-content {
    animation: float-up 1s ease-out 0.2s both;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 6vw, 5rem);
    color: hsl(36, 79%, 92%);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted-foreground);
    max-width: 450px;
    margin: 0 auto 40px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid hsla(42, 55%, 54%, 0.4);
    background-color: hsla(42, 55%, 54%, 0.1);
    font-size: 14px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


/* UI Elements */
.shimmer-btn {
    display: inline-block;
    background: linear-gradient(90deg, hsl(42 55% 54%), hsl(42 80% 75%), hsl(42 55% 54%));
    background-size: 200% auto;
    animation: shimmer 2s linear infinite;
    padding: 16px 40px;
    border-radius: 9999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--background);
    box-shadow: 0 4px 24px hsla(42, 55%, 54%, 0.4);
    transition: box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.shimmer-btn:hover {
    box-shadow: 0 8px 40px hsla(42, 55%, 54%, 0.6);
    animation-duration: 1s;
}

.shimmer-btn.w-full {
    width: 100%;
    border-radius: 8px;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

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

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About Section */
.about-text p {
    font-size: 18px;
    color: var(--muted-foreground);
    margin-bottom: 20px;
}

.about-image {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    aspect-ratio: 4/5;
    object-fit: cover;
}

.about-image-decor {
    background: linear-gradient(135deg, hsl(42, 55%, 54%), hsl(348, 45%, 45%));
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border-radius: 16px;
    z-index: -1;
    opacity: 0.3;
}

/* Details Cards */
.detail-card {
    background: linear-gradient(135deg, var(--card), hsla(230, 38%, 12%, 1));
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(201, 168, 76, 0.4);
}

.detail-card:hover::before {
    opacity: 1;
}

.detail-card-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: hsla(230, 38%, 18%, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    color: var(--primary);
    transition: background 0.4s ease, transform 0.4s ease;
}

.detail-card:hover .detail-card-icon-wrap {
    background: rgba(201, 168, 76, 0.1);
    transform: scale(1.1);
    color: var(--primary-light);
}

.detail-card-center {
    text-align: center;
}

.detail-card-flex {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.guest-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(201, 168, 76, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.transport-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.transport-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(201, 168, 76, 0.3);
    transform: translateX(8px);
}

.transport-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

/* Gallery */
.gallery-tile {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    animation: bokeh-drift 8s ease-in-out infinite;
    aspect-ratio: 4/5;
}

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

.gallery-tile:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(230, 38%, 10%, 0.8), transparent);
}

.gallery-hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.gallery-tile:hover .gallery-hover {
    opacity: 1;
}

.gallery-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 14px;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.gold-input {
    background: hsla(230, 38%, 18%, 1);
    border: 1px solid hsla(42, 30%, 35%, 1);
    color: var(--foreground);
    transition: border-color 0.3s, box-shadow 0.3s;
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    font-family: var(--font-body);
    font-size: 16px;
    outline: none;
}

.gold-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsla(42, 55%, 54%, 0.2);
}

.gold-input::placeholder {
    color: hsla(36, 40%, 55%, 1);
}

.attendance-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 640px) {
    .attendance-options {
        flex-direction: row;
    }
}

.attendance-label {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted-foreground);
    transition: all 0.3s;
}

.attendance-label:hover {
    border-color: hsla(42, 55%, 54%, 0.5);
}

.attendance-label.active {
    border-color: var(--primary);
    background-color: hsla(42, 55%, 54%, 0.15);
    color: var(--primary);
    box-shadow: 0 0 12px hsla(42, 55%, 54%, 0.3);
}

/* Footer */
footer {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
}

/* Toast */
.toast-success {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 999;
    width: 400px;
    max-width: calc(100vw - 48px);
    transition: all 0.5s ease;
    transform: translateY(100px);
    opacity: 0;
}

.toast-success.show {
    transform: translateY(0);
    opacity: 1;
}

.map-card {
    min-height: 380px;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(0, 0, 0, 0.2)), url('assets/bg_invite.webp');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 36, 0.85);
    z-index: 1;
}

.map-card>* {
    position: relative;
    z-index: 2;
}

.map-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px dashed rgba(201, 168, 76, 0.4);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(201, 168, 76, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(201, 168, 76, 0);
    }
}

.map-btn {
    padding: 12px 32px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--background);
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.map-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 168, 76, 0.2);
}