/* ========================================
   Sophie & Ed Wedding Website
   Elegant Watercolor Aesthetic
   ======================================== */

/* CSS Variables */
:root {
    /* Color Palette - inspired by winter watercolors */
    --sage: #8fa88f;
    --sage-light: #b5c9b5;
    --sage-dark: #6b8b6b;
    --dusty-blue: #7b94a6;
    --dusty-blue-light: #a8bfcf;
    --dusty-rose: #c4a4a4;
    --cream: #faf8f5;
    --ivory: #fffef9;
    --warm-gray: #6b6560;
    --charcoal: #3d3a36;
    --gold: #c9a962;
    --gold-light: #e4d4a8;
    
    /* Typography */
    --font-display: 'Italiana', serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-max: 1200px;
    
    /* Transitions */
    --transition: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ========================================
   Envelope Opening Animation - Deluxe
   ======================================== */
.envelope-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(201, 169, 98, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(143, 168, 143, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, #f8f6f1 0%, #efe9df 50%, #e8e0d2 100%);
    overflow: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.envelope-overlay.opened {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Floating Particles */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    pointer-events: none;
    animation: floatParticle linear infinite;
}

.particle.sparkle {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--gold), 0 0 12px var(--gold-light);
}

.particle.leaf {
    width: 12px;
    height: 12px;
    background: var(--sage-light);
    border-radius: 0 50% 50% 50%;
    opacity: 0.4;
    transform: rotate(45deg);
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Corner Flourishes */
.corner-flourish {
    position: absolute;
    width: 150px;
    height: 150px;
    opacity: 0.15;
    pointer-events: none;
}

.corner-flourish::before,
.corner-flourish::after {
    content: '';
    position: absolute;
    background: var(--sage);
}

.corner-flourish.top-left {
    top: 20px;
    left: 20px;
}

.corner-flourish.top-left::before {
    top: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.corner-flourish.top-left::after {
    top: 0;
    left: 0;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

.corner-flourish.top-right {
    top: 20px;
    right: 20px;
}

.corner-flourish.top-right::before {
    top: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(-90deg, var(--gold), transparent);
}

.corner-flourish.top-right::after {
    top: 0;
    right: 0;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, var(--gold), transparent);
}

.corner-flourish.bottom-left {
    bottom: 20px;
    left: 20px;
}

.corner-flourish.bottom-left::before {
    bottom: 0;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

.corner-flourish.bottom-left::after {
    bottom: 0;
    left: 0;
    width: 2px;
    height: 100px;
    background: linear-gradient(0deg, var(--gold), transparent);
}

.corner-flourish.bottom-right {
    bottom: 20px;
    right: 20px;
}

.corner-flourish.bottom-right::before {
    bottom: 0;
    right: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(-90deg, var(--gold), transparent);
}

.corner-flourish.bottom-right::after {
    bottom: 0;
    right: 0;
    width: 2px;
    height: 100px;
    background: linear-gradient(0deg, var(--gold), transparent);
}

.envelope-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    animation: envelopeEntrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes envelopeEntrance {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.envelope {
    position: relative;
    width: clamp(300px, 85vw, 440px);
    height: clamp(220px, 62vw, 320px);
    cursor: pointer;
    perspective: 1200px;
}

/* Envelope Shadow */
.envelope-shadow {
    position: absolute;
    bottom: -20px;
    left: 10%;
    right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
    filter: blur(10px);
    z-index: -1;
}

/* Paper Texture Overlay */
.envelope-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Envelope Back */
.envelope-back {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #e8dcc8 0%, #d4c8b0 50%, #c9bd9f 100%);
    border-radius: 6px;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

/* Envelope Liner (visible when open) */
.envelope-liner {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 48%;
    background: 
        linear-gradient(135deg, 
            var(--sage-light) 0%, 
            var(--dusty-blue-light) 50%,
            var(--dusty-rose) 100%);
    clip-path: polygon(0 0, 50% 95%, 100% 0);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.5s ease 0.3s;
}

.envelope.open .envelope-liner {
    opacity: 0.4;
}

/* Letter inside - hidden initially */
.envelope-letter {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 15%;
    height: 75%;
    background: linear-gradient(180deg, #fffef9 0%, #faf8f3 50%, #f5f2eb 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(201, 169, 98, 0.2);
    transform: translateY(0);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s, 
                opacity 0.3s ease 0.3s;
    z-index: 1;
    overflow: hidden;
}

.letter-border {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(201, 169, 98, 0.3);
    pointer-events: none;
}

.letter-border::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(201, 169, 98, 0.15);
}

.envelope.open .envelope-letter {
    transform: translateY(-85%);
    opacity: 1;
    z-index: 10;
}

.letter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.envelope.open .letter-content {
    opacity: 1;
    transform: translateY(0);
}

.letter-flourish {
    color: var(--gold);
    font-size: 1.2rem;
    opacity: 0.6;
}

.letter-preview {
    font-family: var(--font-body);
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.letter-names {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: var(--charcoal);
    letter-spacing: 0.1em;
}

/* Envelope Front */
.envelope-front {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, #f0e6d6 0%, #e4d8c4 50%, #d8ccb4 100%);
    border-radius: 6px;
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0, 50% 35%);
    z-index: 2;
}

.envelope-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.02) 0%,
        transparent 100%);
    clip-path: polygon(0 0, 100% 0, 50% 70%);
}

/* Envelope Flap - starts closed (folded down) */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #d8ccb4 0%, #e4d8c4 50%, #efe6d8 100%);
    clip-path: polygon(0 0, 50% 70%, 100% 0);
    transform-origin: top center;
    transform: rotateX(0deg);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Shadow line where flap meets envelope */
.envelope-flap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

.flap-liner {
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 0;
    background: 
        linear-gradient(180deg, 
            rgba(143, 168, 143, 0.4) 0%, 
            rgba(123, 148, 166, 0.4) 50%,
            rgba(196, 164, 164, 0.4) 100%);
    clip-path: polygon(1% 0, 50% 68%, 99% 0);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.envelope.open .flap-liner {
    opacity: 1;
}

.envelope.open .envelope-flap {
    transform: rotateX(-180deg);
}

/* Ribbons */
.ribbon-left,
.ribbon-right {
    position: absolute;
    top: 35%;
    width: 40px;
    height: 8px;
    z-index: 5;
}

.ribbon-left {
    left: -5px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--dusty-rose) 20%,
        #d4a4a4 100%);
    transform: rotate(-5deg);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ribbon-right {
    right: -5px;
    background: linear-gradient(-90deg, 
        transparent 0%,
        var(--dusty-rose) 20%,
        #d4a4a4 100%);
    transform: rotate(5deg);
    border-radius: 4px 0 0 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.envelope.open .ribbon-left,
.envelope.open .ribbon-right {
    animation: ribbonFall 0.6s ease forwards;
}

@keyframes ribbonFall {
    0% { opacity: 1; transform: rotate(-5deg) translateY(0); }
    100% { opacity: 0; transform: rotate(15deg) translateY(50px); }
}

/* Wax Seal - Deluxe */
.wax-seal {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(65px, 18vw, 85px);
    height: clamp(65px, 18vw, 85px);
    z-index: 4;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wax-seal:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.wax-seal:active {
    transform: translate(-50%, -50%) scale(0.98);
}

.seal-outer {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 35% 35%, #d4364a 0%, #b8283a 30%, #8b1528 60%, #5c0a15 100%);
    border-radius: 50%;
    box-shadow: 
        0 6px 20px rgba(139, 21, 40, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 -4px 12px rgba(0, 0, 0, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.1);
}

/* Seal edge detail */
.seal-outer::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 1px solid rgba(255, 200, 200, 0.15);
}

/* Seal drip effects */
.seal-outer::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 30% 30%, #b8283a 0%, #8b1528 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 
        25px 3px 0 -2px #8b1528,
        30px 5px 0 -4px #5c0a15;
}

.seal-inner {
    position: absolute;
    inset: 12%;
    background: 
        radial-gradient(circle at 40% 40%, #a02030 0%, #7a1525 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        inset 0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 200, 150, 0.1);
}

.seal-text {
    font-family: var(--font-display);
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    color: #ffd700;
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.seal-ampersand {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.9em;
    margin: 0 1px;
}

.seal-shine {
    position: absolute;
    top: 8%;
    left: 15%;
    width: 35%;
    height: 20%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%);
    border-radius: 50%;
    transform: rotate(-30deg);
    pointer-events: none;
}

/* Seal breaking animation */
.envelope.open .wax-seal {
    animation: sealBreakDeluxe 0.7s ease forwards;
}

@keyframes sealBreakDeluxe {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
        filter: brightness(1);
    }
    30% {
        transform: translate(-50%, -50%) scale(1.2) rotate(-5deg);
        filter: brightness(1.2);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(0) rotate(180deg);
        opacity: 0;
        filter: brightness(0.5);
    }
}

/* Hint text */
.envelope-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.hint-icon {
    color: var(--gold);
    font-size: 0.6rem;
    animation: twinkle 2s ease-in-out infinite;
}

.hint-icon:last-child {
    animation-delay: 1s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.envelope.open ~ .envelope-hint,
.envelope-overlay.opened .envelope-hint {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.nav.scrolled {
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    color: var(--charcoal);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    background: 
        linear-gradient(135deg, 
            rgba(143, 168, 143, 0.08) 0%, 
            rgba(123, 148, 166, 0.08) 50%,
            rgba(196, 164, 164, 0.08) 100%),
        radial-gradient(ellipse at top right, rgba(181, 201, 181, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(168, 191, 207, 0.15) 0%, transparent 50%),
        var(--ivory);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 30c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm0 0c0 5.5 4.5 10 10 10s10-4.5 10-10-4.5-10-10-10-10 4.5-10 10z' fill='%238fa88f' fill-opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(250, 248, 245, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-decorative-top {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.hero-invite {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--warm-gray);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.hero-title .names {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 400;
    font-style: normal;
    color: var(--charcoal);
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-top: 0.5rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-icon {
    color: var(--gold);
    font-size: 1.5rem;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-style: italic;
    font-weight: 300;
    color: var(--sage-dark);
    margin-bottom: 2rem;
    cursor: default;
}

.hero-details {
    margin-bottom: 2.5rem;
}

.hero-date {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.2em;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.hero-venue {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--warm-gray);
}

.hero-location {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--warm-gray);
    letter-spacing: 0.1em;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 4vw, 3rem);
    margin-bottom: 2.5rem;
    position: relative;
}

/* Sparkles around countdown */
.countdown-sparkles {
    position: absolute;
    inset: -30px;
    pointer-events: none;
    overflow: visible;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: sparkle-float 3s ease-in-out infinite;
    box-shadow: 0 0 6px var(--gold), 0 0 10px var(--gold-light);
}

@keyframes sparkle-float {
    0%, 100% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    50% {
        opacity: 1;
        transform: scale(1) translateY(-10px);
    }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--charcoal);
    line-height: 1;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
    margin-top: 0.5rem;
}

/* Floating Confetti */
.confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confetti-fall linear infinite;
}

.confetti.gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
}

.confetti.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
}

.confetti.rose {
    background: linear-gradient(135deg, var(--dusty-rose) 0%, #e8c4c4 100%);
}

.confetti:nth-child(odd) {
    border-radius: 50%;
}

.confetti:nth-child(3n) {
    width: 8px;
    height: 12px;
    border-radius: 0;
}

@keyframes confetti-fall {
    0% {
        opacity: 0;
        transform: translateY(-20px) rotate(0deg);
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

/* Animated Intertwined Rings for "Ring in the New Year" */
.tagline-with-rings {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    cursor: pointer;
}

.intertwined-rings {
    display: inline-block;
    vertical-align: middle;
    overflow: visible;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intertwined-rings .ring-band {
    transition: all 0.4s ease;
}

.intertwined-rings .diamond {
    animation: diamond-sparkle 2s ease-in-out infinite;
}

@keyframes diamond-sparkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; filter: drop-shadow(0 0 3px #fff); }
}

.tagline-with-rings:hover .intertwined-rings {
    filter: drop-shadow(0 0 10px rgba(201, 169, 98, 0.6))
            drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    transform: scale(1.1);
}

.tagline-with-rings:hover .intertwined-rings .diamond {
    animation: diamond-sparkle-fast 0.3s ease-in-out infinite;
}

@keyframes diamond-sparkle-fast {
    0%, 100% { opacity: 0.9; filter: drop-shadow(0 0 2px #fff); }
    50% { opacity: 1; filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 10px rgba(255,255,255,0.5)); }
}

/* Golden Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(
        90deg, 
        var(--charcoal) 0%, 
        var(--charcoal) 35%, 
        var(--gold) 45%,
        #fff8dc 50%,
        var(--gold) 55%, 
        var(--charcoal) 65%, 
        var(--charcoal) 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Handwritten Reveal Animation */
.handwritten-reveal {
    display: inline-block;
    overflow: hidden;
}

.handwritten-reveal .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letter-reveal 0.5s ease forwards;
}

@keyframes letter-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fireworks Effect */
.fireworks-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.firework-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: firework-burst 1s ease-out forwards;
}

@keyframes firework-burst {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0);
    }
}

/* Timeline highlight with fireworks */
.timeline-item.highlight {
    position: relative;
}

.timeline-item.highlight .timeline-icon {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.highlight .timeline-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.5);
}

.timeline-item.highlight .fireworks-container {
    position: absolute;
    left: -50px;
    right: -50px;
    top: -100px;
    bottom: -50px;
    pointer-events: none;
    z-index: 10;
}

.hero-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ivory);
    background: var(--sage);
    padding: 1rem 2.5rem;
    border-radius: 0;
    transition: var(--transition);
    border: 2px solid var(--sage);
}

.hero-cta:hover {
    background: transparent;
    color: var(--sage-dark);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   Sections Common Styles
   ======================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--charcoal);
    letter-spacing: 0.1em;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 1.5rem auto 0;
}

/* ========================================
   Venue Section
   ======================================== */
.venue-section {
    background: var(--ivory);
}

.venue-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.venue-image-wrapper {
    position: relative;
    padding: 15px;
    background: var(--ivory);
    border: 1px solid var(--gold-light);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.venue-image {
    width: 100%;
    display: block;
}

.venue-info {
    padding: 2rem 0;
}

.venue-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.venue-address {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.venue-description {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.venue-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--sage-dark);
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--sage);
    transition: var(--transition);
}

.venue-map-link:hover {
    background: var(--sage);
    color: var(--ivory);
}

/* ========================================
   Details Section
   ======================================== */
.details-section {
    background: 
        linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
}

/* Timeline */
.timeline {
    max-width: 600px;
    margin: 0 auto 4rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, var(--gold-light), var(--sage-light));
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item.pre-wedding {
    opacity: 0.9;
    padding-bottom: 2rem;
    border-bottom: 1px dashed var(--sage-light);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--ivory);
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.timeline-item.highlight .timeline-icon {
    background: var(--gold);
    border-color: var(--gold);
}

.timeline-content {
    padding-top: 0.5rem;
}

.timeline-content h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.timeline-time {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sage-dark);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-content p:last-child {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--warm-gray);
}

/* Detail Cards */
.details-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--ivory);
    border: 1px solid rgba(201, 169, 98, 0.2);
    transition: var(--transition);
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.detail-card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.detail-card p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--warm-gray);
}

/* ========================================
   Accommodation Section
   ======================================== */
.accommodation-section {
    background: var(--ivory);
}

.accommodation-intro {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.accommodation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.accommodation-card {
    padding: 2.5rem;
    background: var(--cream);
    border: 1px solid rgba(201, 169, 98, 0.15);
    transition: var(--transition);
    position: relative;
}

.accommodation-card.featured {
    background: linear-gradient(135deg, var(--sage-light) 0%, var(--dusty-blue-light) 100%);
    color: var(--charcoal);
}

.accommodation-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--ivory);
    padding: 0.3rem 0.8rem;
}

.accommodation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.accommodation-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.accommodation-distance {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sage-dark);
    margin-bottom: 1rem;
}

.accommodation-card p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
}

.accommodation-card.featured p {
    color: var(--charcoal);
}

.accommodation-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sage-dark);
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.accommodation-link:hover {
    color: var(--gold);
}

.transport-note {
    text-align: center;
    padding: 2.5rem;
    background: var(--cream);
    border: 1px dashed var(--sage-light);
    max-width: 700px;
    margin: 0 auto;
}

.transport-note h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.transport-note p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--warm-gray);
}

/* ========================================
   RSVP Section
   ======================================== */
.rsvp-section {
    background: 
        linear-gradient(135deg, 
            rgba(143, 168, 143, 0.05) 0%, 
            rgba(123, 148, 166, 0.05) 100%),
        var(--cream);
}

.rsvp-intro {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--warm-gray);
    margin-bottom: 3rem;
}

.rsvp-intro strong {
    color: var(--charcoal);
    font-weight: 500;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--ivory);
    padding: 3rem;
    border: 1px solid rgba(201, 169, 98, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--charcoal);
    background: var(--cream);
    border: 1px solid rgba(107, 101, 96, 0.2);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--sage);
}

.form-group textarea {
    resize: vertical;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    gap: 2rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
}

.radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--warm-gray);
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--sage);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--sage);
    border-radius: 50%;
}

.radio-label input[type="radio"]:hover {
    border-color: var(--sage-light);
}

/* Hide the custom span since we style the input directly */
.radio-custom {
    display: none;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--charcoal);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--warm-gray);
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--sage);
    border-color: var(--sage);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ivory);
    font-size: 0.75rem;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--sage-light);
}

/* Hide the custom span since we style the input directly */
.checkbox-custom {
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ivory);
    background: var(--sage);
    border: 2px solid var(--sage);
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: transparent;
    color: var(--sage-dark);
}

/* RSVP Success Message */
.rsvp-success {
    display: none;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-success.show {
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.rsvp-success h3 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.rsvp-success p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--warm-gray);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4rem 2rem;
    background: var(--charcoal);
    text-align: center;
}

.footer-names {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--ivory);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    color: var(--dusty-blue-light);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 968px) {
    .venue-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .details-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .accommodation-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .accommodation-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--ivory);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    /* Hero adjustments */
    .hero-content {
        padding: 1rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    /* Timeline adjustments */
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .timeline-icon {
        margin: 0 auto;
    }
    
    /* Form adjustments */
    .rsvp-form {
        padding: 2rem 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title .names {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
}

/* ========================================
   Animations on Scroll
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
