/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
    --color-primary: #2C3E50;
    --color-navy: #1a2332;
    --color-navy-dark: #121a26;
    --color-ivory: #F8F5F0;
    --color-ivory-light: #FCFAF7;
    --color-charcoal: #3D3D3D;
    --color-gold: #B8A57A;
    --color-gold-muted: #C9B98A;
    --color-gold-light: #D4C5A0;
    --color-blue-gray: #6B7B8D;
    --color-blue-gray-light: #8A9BAB;
    --color-white: #FFFFFF;
    
    --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-sans: 'Inter', 'Montserrat', sans-serif;
    
    --card-width: 420px;
    --card-min-height: 850px;
    --card-border-radius: 16px;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-elegant: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 2px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #E8E4DE;
    color: var(--color-charcoal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hidden {
    display: none !important;
}

/* ============================================
   LOADING SCREEN
   ============================================ */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    color: var(--color-ivory);
}

.loading-monogram {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.5em;
    color: var(--color-gold-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.loading-line {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 1.5rem auto;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.loading-text {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    opacity: 0;
    animation: fadeIn 1s ease 0.8s forwards;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.main-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* ============================================
   INVITATION COVER
   ============================================ */
.invitation-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
}

.invitation-card {
    position: relative;
    width: var(--card-width);
    max-width: 94vw;
    min-height: var(--card-min-height);
    background: var(--color-ivory);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* City Illustration Background */
.city-illustration-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.city-illustration-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    filter: grayscale(0.3) sepia(0.1);
}

.city-illustration-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(248, 245, 240, 0.85) 0%,
        rgba(248, 245, 240, 0.6) 40%,
        rgba(248, 245, 240, 0.4) 60%,
        rgba(248, 245, 240, 0.55) 80%,
        rgba(248, 245, 240, 0.75) 100%
    );
}

/* Ivory Overlay */
.ivory-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(248, 245, 240, 0.55) 0%,
        rgba(248, 245, 240, 0.3) 30%,
        rgba(248, 245, 240, 0.15) 50%,
        rgba(248, 245, 240, 0.35) 75%,
        rgba(248, 245, 240, 0.55) 100%
    );
    pointer-events: none;
}

/* Paper Texture */
.paper-texture {
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

/* Cover Content */
.cover-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 32px 30px;
    height: 100%;
    flex: 1;
}

/* Arch Photo Frame */
.arch-photo-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 24px;
    animation: fadeInScale 1.2s var(--transition-smooth) 0.3s both;
}

.arch-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    border: 8px solid var(--color-white);
    border-radius: 50% 50% 0 0;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    background: var(--color-white);
}

.arch-photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(184, 165, 122, 0.3);
    border-radius: 50% 50% 0 0;
    z-index: 2;
    pointer-events: none;
}

.arch-photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50% 50% 0 0;
    position: relative;
}

.arch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50% 50% 0 0;
    transition: transform 1.5s var(--transition-smooth);
}

.arch-photo-frame:hover .arch-photo img {
    transform: scale(1.03);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(26, 35, 50, 0.15) 75%,
        rgba(26, 35, 50, 0.35) 100%
    );
    border-radius: 50% 50% 0 0;
}

/* Cover Text */
.cover-text {
    text-align: center;
    margin-bottom: 24px;
    animation: fadeInUp 1s var(--transition-smooth) 0.6s both;
}

.wedding-of-text {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--color-charcoal);
    margin-bottom: 12px;
    opacity: 0.7;
}

.couple-names {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 500;
    line-height: 1.15;
    color: var(--color-gold);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.couple-names .ampersand {
    font-style: italic;
    font-weight: 300;
    margin: 0 6px;
    color: var(--color-gold-muted);
    font-size: 0.7em;
}

.wedding-date-text {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 400;
    font-style: italic;
    color: var(--color-charcoal);
    letter-spacing: 0.08em;
    opacity: 0.75;
}

/* Open Invitation Button */
.open-invitation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    box-shadow: var(--shadow-btn);
    animation: fadeInUp 1s var(--transition-smooth) 0.9s both;
    position: relative;
    overflow: hidden;
}

.open-invitation-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    border-radius: 50px;
}

.open-invitation-btn:hover {
    background: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.open-invitation-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-btn);
}

/* Music Button */
.music-toggle {
    position: absolute;
    bottom: 80px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(248, 245, 240, 0.9);
    border: 1px solid rgba(184, 165, 122, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-btn);
    z-index: 20;
    animation: fadeIn 1s ease 1.2s both;
}

.music-toggle:hover {
    background: var(--color-white);
    border-color: var(--color-gold);
    transform: scale(1.05);
}

.music-toggle.playing {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-white);
    animation: rotateMusic 3s linear infinite;
}

.music-icon {
    width: 18px;
    height: 18px;
}

/* Provider Label */
.provider-label {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-charcoal);
    box-shadow: var(--shadow-btn);
    z-index: 20;
    white-space: nowrap;
    animation: fadeInUp 1s ease 1.3s both;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   FULL INVITATION
   ============================================ */
.full-invitation {
    width: 100%;
    max-width: var(--card-width);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.full-invitation.visible {
    opacity: 1;
    transform: translateY(0);
}

.full-invitation-card {
    background: var(--color-ivory);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--color-navy);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: grayscale(0.3);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(18, 26, 38, 0.4) 0%,
        rgba(18, 26, 38, 0.6) 50%,
        rgba(18, 26, 38, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 60px 30px;
    animation: fadeInUp 1s ease both;
}

.hero-greeting {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.hero-names {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-gold-light);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.hero-names .ampersand {
    font-style: italic;
    font-weight: 300;
    margin: 0 8px;
    font-size: 0.7em;
    color: var(--color-gold);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.1em;
}

/* Section Common Styles */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease both;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--color-navy);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-gold);
    border-radius: 50%;
    top: -3.5px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

/* Couple Section */
.couple-section {
    padding: 60px 30px;
    background: var(--color-ivory);
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.couple-card {
    text-align: center;
    animation: fadeInUp 0.8s ease both;
}

.couple-photo-wrapper {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow-elegant);
}

.couple-photo {
    width: 100%;
    height: 100%;
}

.couple-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.couple-photo-wrapper:hover .couple-photo img {
    transform: scale(1.05);
}

.couple-name {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 4px;
}

.couple-role {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 12px;
}

.couple-bio {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-charcoal);
    line-height: 1.6;
    opacity: 0.8;
}

/* Event Section */
.event-section {
    padding: 60px 30px;
    background: var(--color-ivory-light);
}

.event-grid {
    display: grid;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.event-card {
    text-align: center;
    padding: 35px 25px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    animation: fadeInUp 0.8s ease both;
}

.event-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    color: var(--color-gold);
}

.event-icon svg {
    width: 100%;
    height: 100%;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.event-date,
.event-time {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-charcoal);
    margin-bottom: 4px;
}

.event-venue {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-charcoal);
    margin-top: 8px;
}

.event-address {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--color-charcoal);
    opacity: 0.7;
    margin-bottom: 20px;
}

.location-btn,
.maps-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.location-btn:hover,
.maps-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 165, 122, 0.3);
}

/* Countdown Section */
.countdown-section {
    padding: 60px 30px;
    background: var(--color-navy);
}

.countdown-section .section-title {
    color: var(--color-ivory);
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
    animation: fadeInUp 0.8s ease both;
}

.countdown-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--color-gold-light);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.countdown-label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* Story Section */
.story-section {
    padding: 60px 30px;
    background: var(--color-ivory);
}

.timeline {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--color-gold),
        var(--color-gold-light),
        var(--color-blue-gray-light)
    );
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease both;
    opacity: 0;
}

.timeline-item.visible {
    opacity: 1;
    animation: slideInLeft 0.8s var(--transition-smooth) forwards;
}

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--color-gold);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(184, 165, 122, 0.3);
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-bottom: 4px;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.timeline-description {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-charcoal);
    line-height: 1.6;
    opacity: 0.8;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 30px;
    background: var(--color-ivory-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-elegant);
    aspect-ratio: 3/4;
    animation: fadeInUp 0.6s ease both;
}

.gallery-item:nth-child(3n) {
    grid-column: span 2;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Video Section */
.video-section {
    padding: 60px 30px;
    background: var(--color-ivory);
}

.video-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-navy);
    box-shadow: var(--shadow-elegant);
    animation: fadeInUp 0.8s ease both;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* YouTube/Vimeo Embed */
.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Video Loading State */
.video-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.video-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.video-loading p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Video Controls Styling */
.video-wrapper video::-webkit-media-controls {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 8px 8px;
}

.video-wrapper video::-webkit-media-controls-play-button {
    background-color: var(--color-gold);
    border-radius: 50%;
}

.video-wrapper video::-webkit-media-controls-volume-slider {
    background-color: var(--color-gold);
}

/* Video Play Button Overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
}

.video-play-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.video-play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
    transform: scale(1.1);
    background: var(--color-white);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.video-play-btn svg {
    width: 30px;
    height: 30px;
    color: var(--color-navy);
    margin-left: 4px; /* Center the play icon */
}

/* Video Error State */
.video-error {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px;
}

.video-error svg {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.video-error p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Responsive Video */
@media (max-width: 480px) {
    .video-wrapper {
        max-width: 100%;
    }
    
    .video-play-btn {
        width: 55px;
        height: 55px;
    }
    
    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Location Section */
.location-section {
    padding: 60px 30px;
    background: var(--color-ivory-light);
}

.location-grid {
    display: grid;
    gap: 30px;
    max-width: 400px;
    margin: 0 auto;
}

.location-card {
    text-align: center;
    padding: 30px 25px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    animation: fadeInUp 0.8s ease both;
}

.location-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.location-address {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-charcoal);
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* RSVP Section */
.rsvp-section {
    padding: 60px 30px;
    background: var(--color-ivory);
}

.guest-greeting {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease both;
}

.guest-greeting p {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-charcoal);
    opacity: 0.7;
}

.guest-greeting .guest-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-gold);
    margin-top: 8px;
    opacity: 1;
}

.rsvp-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease both;
}

.form-group label {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(184, 165, 122, 0.3);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-charcoal);
    background: var(--color-white);
    transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(184, 165, 122, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.rsvp-submit-btn,
.wish-submit-btn {
    width: 100%;
    padding: 14px 32px;
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-btn);
    animation: fadeInUp 0.6s ease both;
}

.rsvp-submit-btn:hover,
.wish-submit-btn:hover {
    background: var(--color-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Wishes Section */
.wishes-section {
    padding: 60px 30px;
    background: var(--color-ivory-light);
}

.wishes-list {
    max-width: 400px;
    margin: 0 auto 30px;
}

.wish-item {
    padding: 20px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease both;
}

.wish-item-name {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 8px;
}

.wish-item-message {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-charcoal);
    line-height: 1.6;
    opacity: 0.8;
}

.wish-form {
    max-width: 400px;
    margin: 0 auto;
}

.wish-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(184, 165, 122, 0.3);
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.wish-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(184, 165, 122, 0.3);
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    resize: vertical;
    min-height: 80px;
}

/* Gift Section */
.gift-section {
    padding: 60px 30px;
    background: var(--color-ivory);
}

.gift-text {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--color-charcoal);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 30px;
    opacity: 0.8;
}

.gift-options {
    display: grid;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.gift-card {
    text-align: center;
    padding: 25px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: var(--shadow-elegant);
    animation: fadeInUp 0.8s ease both;
}

.gift-title {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.gift-detail {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--color-charcoal);
    margin-bottom: 4px;
}

.copy-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.copy-btn:hover {
    background: var(--color-gold);
    color: var(--color-white);
}

.copy-btn.copied {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

/* Closing Section */
.closing-section {
    padding: 80px 30px;
    background: var(--color-navy);
    text-align: center;
}

.closing-content {
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 1s ease both;
}

.closing-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 4px;
}

.closing-names {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-gold-light);
    margin: 30px 0 16px;
}

.closing-names .ampersand {
    font-style: italic;
    font-weight: 300;
    margin: 0 8px;
    font-size: 0.7em;
    color: var(--color-gold);
}

.closing-thank {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.invitation-footer {
    padding: 20px;
    background: var(--color-navy-dark);
    text-align: center;
}

.footer-provider {
    position: static;
    transform: none;
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Navigation */
.invitation-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(248, 245, 240, 0.95);
    padding: 8px 12px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-blue-gray);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn svg {
    width: 18px;
    height: 18px;
}

.nav-btn:hover {
    background: rgba(184, 165, 122, 0.1);
    color: var(--color-gold);
}

.nav-btn.active {
    background: var(--color-gold);
    color: var(--color-white);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes rotateMusic {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 480px) {
    :root {
        --card-width: 94vw;
        --card-min-height: 90vh;
    }
    
    .main-container {
        padding: 10px;
    }
    
    .invitation-card {
        max-width: 96vw;
        min-height: 88vh;
    }
    
    .cover-content {
        padding: 25px 20px 20px;
    }
    
    .arch-photo-wrapper {
        max-width: 260px;
        margin-bottom: 18px;
    }
    
    .couple-names {
        font-size: 2.2rem;
    }
    
    .wedding-date-text {
        font-size: 0.85rem;
    }
    
    .couple-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 280px;
    }
    
    .countdown-grid {
        gap: 8px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .gallery-item:nth-child(3n) {
        grid-column: span 2;
    }
    
    .invitation-nav {
        bottom: 10px;
        gap: 4px;
        padding: 6px 10px;
    }
    
    .nav-btn {
        width: 32px;
        height: 32px;
    }
    
    .nav-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 360px) {
    .arch-photo-wrapper {
        max-width: 220px;
    }
    
    .couple-names {
        font-size: 1.8rem;
    }
    
    .hero-names {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    :root {
        --card-width: 440px;
    }
    
    .main-container {
        padding: 15px;
    }
}

@media (min-width: 769px) {
    .main-container {
        padding: 30px;
        background: linear-gradient(
            135deg,
            #E8E4DE 0%,
            #F0ECE6 25%,
            #E5E0D8 50%,
            #EDE9E3 75%,
            #E8E4DE 100%
        );
    }
    
    .invitation-card {
        width: var(--card-width);
        min-height: var(--card-min-height);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}