:root {
    --color-cream: #FAF9F6;
    --color-silk: #F2EFE9;
    --color-gold: #C5A059;
    --color-gold-dark: #8E7037;
    --color-text: #2C2C2C;
    --color-text-light: #5F5F5F;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
    --transition-slow: all 1.2s cubic-bezier(0.2, 0.1, 0.2, 1);
    --transition-mid: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor */
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Cursor */
#cursor-dot, #cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    opacity: 0;
    z-index: 9999;
}

#cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-gold);
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gold);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

@media (max-width: 768px) {
    * { cursor: auto; }
    #cursor-dot, #cursor-outline { display: none; }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 1s ease, visibility 1s ease;
}

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

.monogram {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    letter-spacing: 0.3em;
    color: var(--color-gold);
    display: block;
    margin-bottom: 20px;
}

.load-bar {
    width: 100px;
    height: 1px;
    background: #ddd;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.load-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-gold);
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    to { left: 100%; }
}

/* Typography & Titles */
h1, h2, h3, .title-serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

.title-serif.large { font-size: clamp(2.5rem, 8vw, 4.5rem); }

.script-title {
    font-family: var(--font-script);
    font-size: clamp(4.2rem, 12.5vw, 6.8rem);
    color: #6D5E52; /* Deep Mocha for contrast on light backgrounds */
    margin-bottom: 20px;
}

.body-text {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
}

.max-w-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 1.5rem; }
.mb-6 { margin-bottom: 2rem; }
.mb-8 { margin-bottom: 3rem; }
.mb-10 { margin-bottom: 4rem; }
.italic { font-style: italic; }

/* Sections */
.section {
    padding: clamp(80px, 15vh, 160px) 5%;
}

.bg-silk { background-color: var(--color-silk); }
.bg-cream { background-color: var(--color-cream); }

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-wide { max-width: 1400px; }
.container-small { max-width: 700px; }

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: #FFFFFF;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-script);
    font-size: clamp(3.5rem, 12vw, 6rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: #FFFFFF; /* Keep white over the darkened video background */
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-title .ampersand {
    font-size: 1em;
    color: #FFFFFF;
}

.hero-date-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #FFFFFF;
}

.hero-date-box .line {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.4);
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
}

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

.mouse {
    width: 25px;
    height: 45px;
    border: 1px solid var(--color-gold);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 8px;
    background: var(--color-gold);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Story Section - Asymmetric */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text h2 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    color: var(--color-gold);
}

.img-frame {
    position: relative;
    padding-bottom: 125%; /* Aspect Ratio */
    overflow: hidden;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.05);
}

.img-frame img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-accent {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 1px solid var(--color-gold);
    z-index: -1;
}

@media (max-width: 900px) {
    .story-grid { grid-template-columns: 1fr; }
    .story-image { order: -1; }
}

/* Welcome Section */
.big-date {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-serif);
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--color-gold);
    margin: 40px 0;
}

.date-divider {
    font-weight: 200;
    margin: 0 15px;
    opacity: 0.3;
}

.day-info {
    letter-spacing: 0.3em;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Venue Section Refined */
.venue-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.venue-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(197, 160, 89, 0.03) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.venue-showcase {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.venue-info-card {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.venue-purpose {
    font-family: var(--font-script);
    font-size: 2.2rem;
    color: #6D5E52;
    margin-bottom: 25px;
}

.venue-subtitle {
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.venue-images {
    flex: 1.4;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 500px;
    position: relative;
}

.venue-img-main {
    grid-column: 1 / 10;
    grid-row: 1 / 11;
    z-index: 2;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden;
    position: relative;
}

.venue-img-accent {
    grid-column: 6 / 13;
    grid-row: 5 / 13;
    z-index: 3;
    box-shadow: 15px 15px 50px rgba(0,0,0,0.15);
    border: 8px solid #FAF9F6;
    overflow: hidden;
}

.venue-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s ease;
}

.venue-images:hover img {
    transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .welcome-section {
        padding-bottom: 40px !important; /* Reducing gap by half */
    }
    
    .venue-section {
        padding-top: 40px !important; /* Reducing gap by half */
    }

    .venue-showcase {
        flex-direction: column;
        text-align: center;
    }
    
    .venue-info-card {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .venue-images {
        height: 350px;
        width: 100%;
    }
}

.decor-diamond {
    width: 30px;
    height: 30px;
    border: 1px solid var(--color-gold);
    transform: rotate(45deg);
    margin: 25px auto;
}

.btn-luxury {
    display: inline-block;
    padding: 18px 45px;
    background: var(--color-gold);
    color: white;
    text-decoration: none;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition-mid);
}

.btn-luxury:hover {
    background: var(--color-gold-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.4);
}

/* Modern Timeline */
.modern-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.timeline-line {
    position: absolute;
    top: 0; left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(197, 160, 89, 0.15);
    transform: translateX(-50%);
}

.timeline-block {
    margin-bottom: 70px;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    padding-right: 54%; /* Space for line and counter-side content */
}

.timeline-block:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 54%;
}

/* Time display */
.timeline-block::before {
    content: attr(data-time);
    position: absolute;
    top: 5px;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold);
    transition: var(--transition-mid);
}

.timeline-block:nth-child(odd)::before {
    right: 50px;
    text-align: right;
}

.timeline-block:nth-child(even)::before {
    left: 50px;
    text-align: left;
}

/* Rounded dot on the timeline */
.timeline-block::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: white;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.timeline-content {
    background: white;
    padding: 25px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
    width: 100%;
    border: 1px solid rgba(197,160,89,0.05);
}

.timeline-content h3 {
    margin: 0;
    font-family: var(--font-sans); /* Use Montserrat for readability */
    font-size: 1.1rem;
    font-weight: 400;
}

@media (max-width: 768px) {
    .timeline-line { left: 40px; transform: none; }
    
    .timeline-block, 
    .timeline-block:nth-child(odd), 
    .timeline-block:nth-child(even) {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        justify-content: flex-start;
        margin-bottom: 40px;
    }
    
    .timeline-block::before, 
    .timeline-block:nth-child(odd)::before, 
    .timeline-block:nth-child(even)::before {
        position: relative;
        left: 0; right: 0; 
        display: block;
        font-family: var(--font-serif);
        font-size: 1.3rem;
        margin-bottom: 8px;
        text-align: left;
        top: 0;
    }
    
    .timeline-block::after {
        left: 40px;
        top: 15px;
    }
    
    .timeline-content {
        padding: 15px 20px;
        background: rgba(255,255,255,0.8);
    }
}

/* Dress Code Swatches */
.swatches {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.swatch-wrap {
    text-align: center;
    position: relative;
}

.swatch-wrap::after {
    content: attr(data-label);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transition: var(--transition-mid);
}

.swatch {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: var(--transition-mid);
}

.swatch-wrap:hover .swatch {
    transform: translateY(-10px);
}

.swatch-wrap:hover::after {
    opacity: 1;
    bottom: -40px;
}

/* Luxury RSVP Form */
.luxury-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.input-wrap {
    position: relative;
    border-bottom: 1px solid #ddd;
}

.input-wrap input, .input-wrap textarea {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    outline: none;
    font-weight: 300;
}

.input-wrap label {
    position: absolute;
    top: 15px; left: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #999;
    pointer-events: none;
    transition: var(--transition-mid);
}

.input-wrap input:focus + label, .input-wrap input:valid + label,
.input-wrap textarea:focus + label, .input-wrap textarea:not(:empty) + label {
    top: -15px;
    font-size: 0.7rem;
    color: var(--color-gold);
}

.radio-wrap p {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 20px;
}

.radio-options {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.radio-btn input { display: none; }
.radio-btn span {
    padding: 10px 25px;
    border: 1px solid #ddd;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    transition: var(--transition-mid);
}

.radio-btn input:checked + span {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: white;
}

.luxury-submit {
    background: transparent;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 20px;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    cursor: none;
    transition: var(--transition-mid);
}

.luxury-submit:hover {
    background: var(--color-gold);
    color: white;
}

/* Countdown Section Redesign */
.countdown-section {
    padding: 120px 20px;
    background: linear-gradient(to bottom, var(--color-silk) 0%, var(--color-cream) 100%);
}

.prominent-countdown {
    display: flex;
    justify-content: center;
    gap: clamp(20px, 5vw, 60px);
    margin: 50px auto;
    max-width: 1000px;
    flex-wrap: wrap;
}

.prominent-countdown .count-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    min-width: 120px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    background: rgba(255,255,255,0.4);
}

.prominent-countdown .count-box span {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 10px;
}

.prominent-countdown .count-box p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-text-light);
}

/* Footer & Countdown */
#countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.count-box span {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-gold);
    display: block;
    line-height: 1;
}

.count-box p {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #999;
}

.final-message {
    font-family: var(--font-script);
    font-size: clamp(3rem, 10vw, 4.5rem);
    color: #6D5E52;
    margin-bottom: 40px;
}

.credits { font-size: 0.7rem; letter-spacing: 0.2em; opacity: 0.4; }

/* REVEAL SYSTEM */
.reveal {
    opacity: 0;
    transition: var(--transition-slow);
}

.reveal.slide-up { transform: translateY(60px); }
.reveal.slide-left { transform: translateX(-60px); }
.reveal.slide-right { transform: translateX(60px); }
.reveal.zoom-in { transform: scale(0.9); }
.reveal.fade-in { transform: none; }

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* Parallax tweak */
.img-parallax {
    transform: scale(1.1); /* Subtle hover/scroll room */
}
$mobileCSS
