/* Main Design Tokens */
:root {
    --primary-gold: #d4af37;
    --gold-hover: #b8962d;
    --bg-cream: #fffaf5;
    --deep-brown: #5d4037;
    --text-main: #333333;
    --text-muted: #777777;
    --script-font: 'Great Vibes', cursive;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Welcome Overlay */
.welcome-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: #000;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('img/DSCN0757.jpg') no-repeat center center;
    background-size: cover;
    z-index: 10000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 1s ease, visibility 1s ease;
}

.welcome-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.welcome-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    max-width: 85%;
    width: 100%;
}

.welcome-content h2 {
    font-size: clamp(2.5rem, 8vw, 4rem);
}

body.is-loading {
    overflow: hidden;
    height: 100dvh;
}

/* Music Player Styles */
.music-player-container {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 1000 !important;
}

.music-control-btn {
    background: white;
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    overflow: hidden;
}

.music-control-btn svg {
    transition: transform 0.3s ease;
}

.music-control-btn.playing svg {
    animation: pulse 2s infinite;
}

.music-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}

.music-control-btn:hover {
    transform: scale(1.05) translateY(-5px);
    background-color: var(--primary-gold);
    color: white;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 576px) {
    .music-player-container {
        bottom: 20px;
        right: 20px;
    }

    .music-label {
        display: none;
    }

    .music-control-btn {
        padding: 12px;
        border-radius: 50%;
    }
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-cream);
    color: var(--text-main);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.section-title {
    font-family: var(--heading-font);
    font-weight: 700;
}

.script-font {
    font-family: var(--script-font);
    font-weight: 400;
}

.text-gold {
    color: var(--primary-gold);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
        url('img/DSCN0747.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    color: white;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    z-index: 2;
    padding: 20px;
}

.hero-content .subtitle {
    font-family: var(--body-font);
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-content .names {
    font-family: var(--script-font);
    font-size: clamp(3rem, 10vw, 5rem);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .hero-content .names {
        font-size: 3rem;
    }
}

.date-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.date-badge .line {
    height: 1px;
    width: 50px;
    background-color: white;
}

.date-badge .date {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    font-weight: 400;
}

.location-hint {
    font-style: italic;
    opacity: 0.9;
    letter-spacing: 0.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
}

.mouse::after {
    content: '';
    width: 4px;
    height: 8px;
    background-color: white;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

/* Countdown */
.countdown-section {
    background: white;
    position: relative;
    z-index: 3;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 2.5rem;
    color: var(--deep-brown);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-item .number {
    font-size: 3.5rem;
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--primary-gold);
    line-height: 1;
}

.countdown-item .label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    color: var(--text-muted);
    margin-top: 5px;
}

@media (max-width: 576px) {
    .countdown-item {
        min-width: 70px;
    }

    .countdown-item .number {
        font-size: 2.5rem;
    }
}

/* Story Section */
.story-section {
    background-color: var(--bg-cream);
}

.image-stack {
    position: relative;
    padding-bottom: 50px;
}

.main-img {
    width: 85%;
    border: 10px solid white;
    transition: transform 0.5s ease;
}

.secondary-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    border: 8px solid white;
    z-index: 2;
    transition: transform 0.5s ease;
}

.image-stack:hover .main-img {
    transform: scale(0.98) rotate(-1deg);
}

.image-stack:hover .secondary-img {
    transform: scale(1.05) translate(-10px, -10px);
}

.quote {
    display: block;
    font-style: italic;
    color: var(--text-muted);
    border-left: 3px solid var(--primary-gold);
    padding-left: 20px;
    margin-top: 2rem;
    font-size: 1.1rem;
}

/* Details Card */
.bg-cream {
    background-color: var(--bg-cream);
}

.invitation-card {
    background: white;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.card-border {
    border: 1px solid var(--primary-gold);
    padding: 40px;
    position: relative;
}

.card-border::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid var(--primary-gold);
    opacity: 0.3;
    pointer-events: none;
}

.gold-hr {
    opacity: 1;
    color: var(--primary-gold);
    height: 2px;
}

.uppercase {
    text-transform: uppercase;
}

.tracking {
    letter-spacing: 0.3rem;
    font-size: 0.9rem;
}

.btn-outline-gold {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    border-radius: 0;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Gallery */
.gallery-item {
    overflow: hidden;
    position: relative;
    border-radius: 15px;
}

.gallery-item img {
    transition: transform 0.8s ease;
    object-fit: cover;
    height: 300px;
    width: 100%;
}

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

/* Footer */
footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.names-small {
    font-family: var(--script-font);
    font-size: 2.5rem;
    color: var(--primary-gold);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-hover);
}