/* ===================================
   FONTS - Lokal eingebunden
   =================================== */
@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-latin-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-latin-300-italic.woff2') format('woff2');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cormorant Garamond';
    src: url('../fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-300.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --cream: #FAF7F2;
    --cream-dark: #F0EBE3;
    --sage: #7D8471;
    --sage-dark: #5C6152;
    --gold: #C9A962;
    --gold-light: #E8D5A3;
    --charcoal: #2C2C2C;
    --warm-white: #FFFEF9;
    --rose: #E8C4C4;
}

/* ===================================
   BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--charcoal);
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--cream);
}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--warm-white);
    border: 1px solid var(--gold-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--charcoal);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.3s forwards;
}

.language-switcher:hover {
    transform: scale(1.08) translateY(-2px);
    background: var(--warm-white);
    border-color: var(--gold);
    box-shadow: 0 8px 30px rgba(201, 169, 98, 0.25);
}

.language-switcher .flag-icon {
    width: 32px;
    height: 22px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.language-switcher:hover .flag-icon {
    transform: scale(1.05);
}

.language-switcher .flag-text {
    display: block;
    color: var(--sage-dark);
    transition: color 0.3s ease;
}

.language-switcher:hover .flag-text {
    color: var(--gold);
}

@media (max-width: 600px) {
    .language-switcher {
        top: 12px;
        right: 12px;
        padding: 8px 10px;
        gap: 3px;
    }

    .language-switcher .flag-icon {
        width: 26px;
        height: 18px;
    }

    .language-switcher .flag-text {
        font-size: 0.55rem;
    }
}

/* ===================================
   ORNAMENTAL BACKGROUND PATTERN
   =================================== */
.ornamental-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23C9A962' fill-opacity='1'%3E%3Cpath d='M50 0c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm0 94c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zM0 50c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3zm94 0c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3z'/%3E%3Cpath d='M50 10c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1s-1-.4-1-1v-8c0-.6.4-1 1-1zm0 70c.6 0 1 .4 1 1v8c0 .6-.4 1-1 1s-1-.4-1-1v-8c0-.6.4-1 1-1zM10 50c0-.6.4-1 1-1h8c.6 0 1 .4 1 1s-.4 1-1 1h-8c-.6 0-1-.4-1-1zm70 0c0-.6.4-1 1-1h8c.6 0 1 .4 1 1s-.4 1-1 1h-8c-.6 0-1-.4-1-1z'/%3E%3Cpath d='M25 25c.4-.4 1-.4 1.4 0l5.7 5.7c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5.7-5.7c-.4-.4-.4-1 0-1.4zm43.9 43.9c.4-.4 1-.4 1.4 0l5.7 5.7c.4.4.4 1 0 1.4s-1 .4-1.4 0l-5.7-5.7c-.4-.4-.4-1 0-1.4zM25 75c-.4-.4-.4-1 0-1.4l5.7-5.7c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-5.7 5.7c-.4.4-1 .4-1.4 0zm43.9-43.9c-.4-.4-.4-1 0-1.4l5.7-5.7c.4-.4 1-.4 1.4 0s.4 1 0 1.4l-5.7 5.7c-.4.4-1 .4-1.4 0z'/%3E%3Ccircle cx='50' cy='50' r='15' fill='none' stroke='%23C9A962' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='%23C9A962' stroke-width='0.3'/%3E%3Cpath d='M50 30c11 0 20 9 20 20s-9 20-20 20-20-9-20-20 9-20 20-20zm0 2c-10 0-18 8-18 18s8 18 18 18 18-8 18-18-8-18-18-18z' fill='none' stroke='%23C9A962' stroke-width='0.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 150px 150px;
    animation: patternFloat 60s linear infinite;
}

@keyframes patternFloat {
    from { background-position: 0 0; }
    to { background-position: 150px 150px; }
}

/* Additional ornamental corner decorations */
.corner-ornament {
    position: fixed;
    width: 200px;
    height: 200px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M0 0 Q100 50 200 0 Q150 100 200 200 Q100 150 0 200 Q50 100 0 0' fill='none' stroke='%23C9A962' stroke-width='1'/%3E%3Cpath d='M20 20 Q100 60 180 20 Q140 100 180 180 Q100 140 20 180 Q60 100 20 20' fill='none' stroke='%23C9A962' stroke-width='0.5'/%3E%3Ccircle cx='100' cy='100' r='30' fill='none' stroke='%23C9A962' stroke-width='0.5'/%3E%3C/svg%3E");
}

.corner-ornament.top-left {
    top: 0;
    left: 0;
}

.corner-ornament.top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

.corner-ornament.bottom-left {
    bottom: 0;
    left: 0;
    transform: scaleY(-1);
}

.corner-ornament.bottom-right {
    bottom: 0;
    right: 0;
    transform: scale(-1, -1);
}

/* ===================================
   SCROLL PROGRESS BAR
   =================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--rose), var(--gold));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ===================================
   FLOATING HEARTS BACKGROUND
   =================================== */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.heart {
    position: absolute;
    font-size: 1.2rem;
    color: var(--gold);
    opacity: 0;
    animation: floatHeart 15s linear infinite;
}

/* Every heart on the page is an inline SVG, never the ♥ character: iOS
   substitutes Apple Color Emoji for it and renders it red regardless of
   `color`. `fill: currentColor` keeps the surrounding colour rules working. */
.heart-icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(100vh) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.25;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) rotate(720deg) scale(1);
    }
}

/* ===================================
   DECORATIVE ELEMENTS
   =================================== */
.flourish {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 2rem auto;
    position: relative;
    animation: flourishGlow 3s ease-in-out infinite;
}

@keyframes flourishGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(201, 169, 98, 0.3);
        width: 120px;
    }
    50% {
        box-shadow: 0 0 20px rgba(201, 169, 98, 0.6);
        width: 150px;
    }
}

/* Drawn as a rotated square instead of the ♦ character. iOS has no ♦ glyph
   in the subsetted Cormorant/Montserrat webfonts and falls back to Apple
   Color Emoji, which ignores `color` and paints the diamond red. */
.flourish::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: translate(-50%, -50%) rotate(45deg);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        box-shadow: 0 0 5px var(--gold);
    }
    50% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.3);
        box-shadow: 0 0 15px var(--gold), 0 0 30px var(--gold-light);
    }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background: transparent;
}

/* Animated Background Shapes */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(201, 169, 98, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(125, 132, 113, 0.04) 0%, transparent 50%);
    animation: subtleFloat 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.2;
    animation: rotateRing 30s linear infinite;
}

@keyframes rotateRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.floating-ring {
    position: absolute;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
}

.floating-ring:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 5%;
    animation: floatRing 25s ease-in-out infinite;
}

.floating-ring:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 30%;
    right: 8%;
    animation: floatRing 20s ease-in-out infinite reverse;
}

.floating-ring:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 15%;
    animation: floatRing 18s ease-in-out infinite 2s;
}

@keyframes floatRing {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg);
        opacity: 0.25;
    }
    50% {
        transform: translate(-10px, 20px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translate(15px, 10px) rotate(270deg);
        opacity: 0.25;
    }
}

@keyframes subtleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(1deg); }
}

.hero-content {
    text-align: center;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.save-the-date-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeSlideDown 1s ease-out 0.2s forwards;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.names {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.names .name-part {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: revealName 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.names .name-part:nth-child(1) { animation-delay: 0.5s; }
.names .name-part:nth-child(3) { animation-delay: 0.9s; }

@keyframes revealName {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.names .ampersand {
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
    display: inline-block;
    margin: 0 0.1em;
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    animation: revealAmpersand 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

@keyframes revealAmpersand {
    to {
        opacity: 1;
        transform: scale(0.8) rotate(0deg);
    }
}

/* Shimmer effect on ampersand */
.names .ampersand::after {
    content: '&';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.8) 50%, transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite 1.5s;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wedding-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--sage-dark);
    letter-spacing: 0.1em;
    opacity: 0;
    animation: fadeSlideUp 1s ease-out 1.1s forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-frame {
    margin-top: 3rem;
    position: relative;
    opacity: 0;
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.3s forwards;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 1px solid var(--gold-light);
    opacity: 0.6;
    animation: borderPulse 4s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

/* Sparkle particles around image */
.sparkle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: visible;
}

.sparkle-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: sparkleFloat 4s ease-in-out infinite;
}

.sparkle-particle:nth-child(1) { top: -10px; left: 20%; animation-delay: 0s; }
.sparkle-particle:nth-child(2) { top: 30%; right: -10px; animation-delay: 0.5s; }
.sparkle-particle:nth-child(3) { bottom: -10px; left: 40%; animation-delay: 1s; }
.sparkle-particle:nth-child(4) { top: 50%; left: -10px; animation-delay: 1.5s; }
.sparkle-particle:nth-child(5) { top: -10px; right: 30%; animation-delay: 2s; }
.sparkle-particle:nth-child(6) { bottom: 20%; right: -10px; animation-delay: 2.5s; }

@keyframes sparkleFloat {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold-light);
    }
}

.hero-image-frame img {
    width: clamp(280px, 50vw, 420px);
    height: clamp(350px, 60vw, 520px);
    object-fit: cover;
    display: block;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-image-frame:hover img {
    transform: scale(1.02);
}

/* 3D Tilt Effect */
.tilt-effect {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--sage);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease-out 2s forwards, bounce 2s ease-in-out 2s infinite;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.scroll-indicator svg {
    width: 20px;
    height: 20px;
    stroke: var(--sage);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===================================
   CURSOR TRAIL
   =================================== */
.cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-trail.active {
    opacity: 0.5;
}

/* ===================================
   COUNTDOWN SECTION
   =================================== */
.countdown-section {
    padding: 6rem 2rem;
    background: var(--sage);
    color: var(--warm-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q25,30 50,50 T100,50' fill='none' stroke='%23ffffff' stroke-width='0.3' opacity='0.1'/%3E%3C/svg%3E") repeat;
    background-size: 200px;
    opacity: 0.5;
    animation: waveMove 20s linear infinite;
}

@keyframes waveMove {
    from { background-position: 0 0; }
    to { background-position: 200px 0; }
}

.countdown-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.countdown-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    position: relative;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.countdown-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal - use nth-of-type to skip separators */
.countdown-item:nth-of-type(1) { transition-delay: 0.1s; }
.countdown-item:nth-of-type(2) { transition-delay: 0.2s; }
.countdown-item:nth-of-type(3) { transition-delay: 0.3s; }
.countdown-item:nth-of-type(4) { transition-delay: 0.4s; }

.countdown-separator:nth-of-type(1) { transition-delay: 0.15s; }
.countdown-separator:nth-of-type(2) { transition-delay: 0.25s; }
.countdown-separator:nth-of-type(3) { transition-delay: 0.35s; }

/* Flip Card Container */
.flip-card-container {
    display: flex;
    gap: 4px;
}

.flip-card {
    position: relative;
    width: clamp(40px, 10vw, 65px);
    height: clamp(60px, 14vw, 90px);
    perspective: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Top and bottom halves */
.flip-card .top,
.flip-card .bottom,
.flip-card .top-flip,
.flip-card .bottom-flip {
    position: absolute;
    width: 100%;
    height: 50%;
    overflow: hidden;
    backface-visibility: hidden;
    background: linear-gradient(180deg, #5C6152 0%, #4a5043 100%);
    border: 1px solid rgba(255,255,255,0.15);
}

.flip-card .top,
.flip-card .top-flip {
    top: 0;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    background: linear-gradient(180deg, #6a7160 0%, #5C6152 100%);
}

.flip-card .bottom,
.flip-card .bottom-flip {
    bottom: 0;
    border-radius: 0 0 8px 8px;
    border-top: none;
    background: linear-gradient(180deg, #4a5043 0%, #3d4238 100%);
}

.flip-card .top::after,
.flip-card .top-flip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(0,0,0,0.3);
}

.flip-card .bottom::after,
.flip-card .bottom-flip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(0,0,0,0.2);
}

/* Number display */
.flip-card span {
    position: absolute;
    left: 0;
    right: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 400;
    color: var(--gold-light);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1;
}

/* Position numbers so their center aligns at the dividing line */
.flip-card .top span,
.flip-card .top-flip span {
    top: 100%;
    transform: translateY(-50%);
}

.flip-card .bottom span,
.flip-card .bottom-flip span {
    top: 0;
    transform: translateY(-50%);
}

/* Static elements z-index */
.flip-card .top {
    z-index: 1;
}

.flip-card .bottom {
    z-index: 1;
}

/* Flip animation elements - hidden by default */
.flip-card .top-flip {
    top: 0;
    transform-origin: bottom;
    transform: rotateX(-90deg);
    z-index: 3;
    visibility: hidden;
}

.flip-card .bottom-flip {
    bottom: 0;
    transform-origin: top;
    transform: rotateX(90deg);
    z-index: 2;
    visibility: hidden;
}

/* Active flip animation - make visible and animate */
.flip-card.flipping .top-flip {
    visibility: visible;
    animation: flipTop 0.5s ease-in forwards;
}

.flip-card.flipping .bottom-flip {
    visibility: visible;
    animation: flipBottom 0.5s ease-out 0.25s forwards;
}


@keyframes flipTop {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(-90deg);
    }
}

@keyframes flipBottom {
    0% {
        transform: rotateX(90deg);
    }
    100% {
        transform: rotateX(0deg);
    }
}

/* Glow effect on flip */
.flip-card.flipping {
    filter: drop-shadow(0 0 10px rgba(201, 169, 98, 0.4));
}

/* Separator between digit pairs */
.countdown-separator {
    display: flex;
    align-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--gold-light);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0 0.25rem;
}

.countdown-separator.visible {
    opacity: 1;
    transform: translateY(0);
    animation: separatorPulse 1s ease-in-out infinite;
}

@keyframes separatorPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.countdown-label {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ===================================
   STORY SECTION
   =================================== */
.story-section {
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* Floating petals in story section */
.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--rose);
    border-radius: 50% 0 50% 50%;
    opacity: 0;
    pointer-events: none;
    animation: fallPetal 20s linear infinite;
}

@keyframes fallPetal {
    0% {
        opacity: 0;
        transform: translateY(-50px) rotate(0deg) translateX(0);
    }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) translateX(100px);
    }
}

.story-header {
    text-align: center;
    margin-bottom: 6rem;
}

.story-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
    display: inline-block;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-reveal.visible span {
    transform: translateY(0);
}

.story-header p {
    font-size: 1rem;
    color: var(--sage);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 300;
}

.timeline {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--cream-dark);
    transform: translateX(-50%);
}

/* Animated timeline line */
.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 0%;
    background: linear-gradient(to bottom, var(--gold), var(--gold-light));
    transform: translateX(-50%);
    transition: height 0.3s ease-out;
    box-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold-light);
    z-index: 5;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 8rem;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
    transform: translateY(60px);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    transform: translateY(60px);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-content {
    flex: 1;
    padding: 0 4rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

.timeline-image {
    flex: 1;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-image {
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-image {
    text-align: right;
}

/* ===================================
   POLAROID STYLE FOR TIMELINE IMAGES
   =================================== */
.polaroid {
    display: inline-block;
    background: var(--warm-white);
    padding: 15px 15px 50px 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15),
                0 0 0 1px rgba(0,0,0,0.02);
    transform: rotate(-2deg) scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.2s;
    position: relative;
}

.timeline-item:nth-child(even) .polaroid {
    transform: rotate(2deg) scale(0.9) translateY(30px);
}

.timeline-item.visible .polaroid {
    opacity: 1;
    transform: rotate(-2deg) scale(1) translateY(0);
}

.timeline-item:nth-child(even).visible .polaroid {
    transform: rotate(2deg) scale(1) translateY(0);
}

.polaroid::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.3) 0%, rgba(201, 169, 98, 0.1) 100%);
    border-radius: 2px;
    opacity: 0.7;
}

.polaroid::after {
    content: attr(data-caption);
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    color: var(--charcoal);
    padding: 0 10px;
    letter-spacing: 0.05em;
}

.polaroid:hover {
    transform: rotate(0deg) scale(1.05) translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2),
                0 0 0 1px rgba(0,0,0,0.02);
}

.polaroid img {
    width: clamp(220px, 28vw, 320px);
    height: clamp(220px, 28vw, 320px);
    object-fit: cover;
    display: block;
    filter: saturate(0.9) contrast(1.05);
    transition: filter 0.5s ease;
}

.polaroid:hover img {
    filter: saturate(1.1) contrast(1.1);
}

.timeline-marker {
    width: 16px;
    height: 16px;
    background: var(--gold);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--gold-light);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
    0%, 100% {
        box-shadow: 0 0 0 4px var(--cream), 0 0 0 5px var(--gold-light);
    }
    50% {
        box-shadow: 0 0 0 6px var(--cream), 0 0 0 10px rgba(201, 169, 98, 0.3), 0 0 20px var(--gold);
    }
}

.timeline-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    position: relative;
}

.timeline-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.6s ease;
}

.timeline-item:nth-child(odd) .timeline-title::after {
    right: 0;
}

.timeline-item:nth-child(even) .timeline-title::after {
    left: 0;
}

.timeline-item.visible .timeline-title::after {
    width: 200px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--sage-dark);
    font-weight: 300;
    line-height: 1.7;
}

/* ===================================
   ENGAGEMENT SECTION
   =================================== */
.engagement-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.engagement-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* Confetti container */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti.active {
    animation: confettiFall 4s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

.engagement-header {
    margin-bottom: 4rem;
}

.engagement-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--charcoal);
    position: relative;
}

/* Glowing text effect */
.glow-text {
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 0 transparent;
    }
    50% {
        text-shadow: 0 0 20px rgba(201, 169, 98, 0.4), 0 0 40px rgba(201, 169, 98, 0.2);
    }
}

/* ===================================
   PHOTO BOOK - Desktop Only
   =================================== */
.photo-book {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1500px;
    transform-style: preserve-3d;
    position: relative;
    padding: 20px 0;
}

/* Book Covers - Sage Green Leather */
.book-cover {
    width: 25px;
    background: linear-gradient(135deg, #5C6152 0%, #4a5043 50%, #3d4238 100%);
    position: relative;
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.3),
        0 10px 40px rgba(0,0,0,0.3);
    z-index: 5;
}

.book-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.08;
    mix-blend-mode: overlay;
}

/* Gold embossed line detail on covers */
.book-cover::after {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--gold) 10%,
        var(--gold-light) 50%,
        var(--gold) 90%,
        transparent 100%);
    opacity: 0.6;
}

.book-cover-left {
    border-radius: 8px 0 0 8px;
    transform: rotateY(30deg);
    transform-origin: right center;
}

.book-cover-left::after {
    right: 5px;
}

.book-cover-right {
    border-radius: 0 8px 8px 0;
    transform: rotateY(-30deg);
    transform-origin: left center;
}

.book-cover-right::after {
    left: 5px;
}

/* Book Spine */
.book-spine {
    width: 35px;
    background: linear-gradient(90deg,
        #3d4238 0%,
        #5C6152 20%,
        #6a7160 50%,
        #5C6152 80%,
        #3d4238 100%);
    position: relative;
    z-index: 10;
    box-shadow:
        inset 0 0 15px rgba(0,0,0,0.4),
        0 0 20px rgba(0,0,0,0.2);
}

/* Spine gold decorations */
.book-spine::before {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: linear-gradient(180deg,
        transparent 0%,
        var(--gold) 5%,
        var(--gold-light) 50%,
        var(--gold) 95%,
        transparent 100%);
    opacity: 0.5;
}

.book-spine::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    opacity: 0.4;
}

/* Book Pages Container */
.book-pages {
    display: flex;
    position: relative;
    z-index: 3;
}

/* Individual Pages */
.book-page {
    width: 320px;
    min-height: 450px;
    position: relative;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.book-page-left {
    background: linear-gradient(to right, #f5f2eb 0%, #faf8f4 70%, #f0ede6 100%);
    transform-origin: right center;
    transform: rotateY(5deg);
    box-shadow:
        inset -30px 0 40px rgba(0,0,0,0.06),
        -2px 0 10px rgba(0,0,0,0.1);
    border-radius: 3px 0 0 3px;
}

.book-page-right {
    background: linear-gradient(to left, #f5f2eb 0%, #faf8f4 70%, #f0ede6 100%);
    transform-origin: left center;
    transform: rotateY(-5deg);
    box-shadow:
        inset 30px 0 40px rgba(0,0,0,0.06),
        2px 0 10px rgba(0,0,0,0.1);
    border-radius: 0 3px 3px 0;
}

/* Page edge detail (stacked pages effect) */
.book-page-left::before,
.book-page-right::before {
    content: '';
    position: absolute;
    top: 3px;
    bottom: 3px;
    width: 8px;
    background: repeating-linear-gradient(
        to bottom,
        #e8e5de 0px,
        #f5f2eb 1px,
        #e8e5de 2px
    );
}

.book-page-left::before {
    left: -8px;
    border-radius: 2px 0 0 2px;
    box-shadow: -1px 0 3px rgba(0,0,0,0.1);
}

.book-page-right::before {
    right: -8px;
    border-radius: 0 2px 2px 0;
    box-shadow: 1px 0 3px rgba(0,0,0,0.1);
}

/* Page content area */
.page-content {
    padding: 35px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Subtle page lines */
.page-content::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    border: 1px solid rgba(201, 169, 98, 0.15);
    border-radius: 2px;
    pointer-events: none;
}

/* Polaroid Frame inside book */
.polaroid-frame {
    background: var(--warm-white);
    padding: 12px 12px 45px 12px;
    box-shadow:
        0 4px 15px rgba(0,0,0,0.15),
        0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.book-page-left .polaroid-frame {
    transform: rotate(-3deg);
}

.book-page-right .polaroid-frame {
    transform: rotate(3deg);
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.05) translateY(-5px);
    box-shadow:
        0 15px 40px rgba(0,0,0,0.2),
        0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.polaroid-frame img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    display: block;
}

.polaroid-caption {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--sage-dark);
    letter-spacing: 0.05em;
}

/* Book shadow underneath */
.photo-book::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 30px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.25) 0%, transparent 70%);
    z-index: -1;
}

/* Animation on scroll */
.photo-book {
    opacity: 0;
    transform: translateY(40px) rotateX(10deg);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-book.visible {
    opacity: 1;
    transform: translateY(0) rotateX(2deg);
}

/* Hover effect on whole book */
.photo-book:hover {
    transform: translateY(-5px) rotateX(0deg);
}

.photo-book:hover .book-page-left {
    transform: rotateY(8deg);
}

.photo-book:hover .book-page-right {
    transform: rotateY(-8deg);
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 8rem 2rem;
    background: var(--charcoal);
    color: var(--warm-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    animation: ctaGlow 5s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* Stars background */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold-light);
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.cta-content h2.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--gold);
    margin: 2rem 0;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.cta-date.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animated date underline */
.cta-date::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto 0;
    transition: width 1s ease 0.5s;
}

.cta-date.visible::after {
    width: 200px;
}

.cta-message {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0;
    max-width: 400px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.cta-message.visible {
    opacity: 0.8;
    transform: translateY(0);
}

/* Ceremony time: sits with the date, above the running text, because
   arriving late means missing the ceremony entirely. */
.cta-time {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0 auto 1.2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s ease 0.35s;
}

.cta-time.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-ceremony {
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--warm-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.5s;
}

.cta-ceremony.visible {
    opacity: 0.85;
    transform: translateY(0);
}

.heart-animation {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.5s ease 0.6s;
}

.heart-animation.visible {
    opacity: 1;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

/* Multiple hearts burst */
.hearts-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.burst-heart {
    position: absolute;
    font-size: 1rem;
    color: var(--gold);
    opacity: 0;
}

.burst-heart.active {
    animation: burstOut 1.5s ease-out forwards;
}

@keyframes burstOut {
    0% {
        opacity: 0.5;
        transform: translate(0, 0) scale(0);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1);
    }
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    padding: 2rem;
    background: var(--charcoal);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
}

.footer p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--gold-light);
    font-style: italic;
    animation: footerFade 3s ease-in-out infinite;
}

@keyframes footerFade {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ===================================
   MOBILE RESPONSIVE
   =================================== */
@media (max-width: 900px) {
    .timeline::before,
    .timeline-progress {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
        transform: translateY(50px) !important;
    }

    .timeline-item.visible {
        transform: translateY(0) !important;
    }

    .timeline-marker {
        position: absolute;
        left: 12px;
    }

    .timeline-content {
        text-align: left !important;
        padding: 0;
        margin-bottom: 1.5rem;
        width: 100%;
    }

    .timeline-title::after {
        left: 0 !important;
        right: auto !important;
    }

    .timeline-image {
        text-align: left !important;
        width: 100%;
    }

    .polaroid {
        transform: rotate(0deg) !important;
    }

    .polaroid img {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1/1;
    }

    /* Mobile: Simple polaroid layout instead of book */
    .photo-book {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        transform: none !important;
        perspective: none;
        padding: 0;
    }

    .photo-book::after {
        display: none;
    }

    .book-cover,
    .book-spine {
        display: none;
    }

    .book-pages {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .book-page,
    .book-page-left,
    .book-page-right {
        width: auto;
        min-height: auto;
        background: transparent !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0;
    }

    .book-page-left::before,
    .book-page-right::before {
        display: none;
    }

    .page-content {
        padding: 0;
    }

    .page-content::before {
        display: none;
    }

    .polaroid-frame {
        padding: 12px 12px 50px 12px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    }

    .book-page-left .polaroid-frame,
    .book-page-right .polaroid-frame {
        transform: none;
    }

    .polaroid-frame img {
        width: 260px;
        height: 330px;
    }

    .polaroid-caption {
        font-size: 1rem;
    }

    .photo-book:hover {
        transform: none !important;
    }

    .photo-book:hover .book-page-left,
    .photo-book:hover .book-page-right {
        transform: none !important;
    }

    .floating-ring {
        display: none;
    }

    .cursor-trail {
        display: none;
    }

    .corner-ornament {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 1.5rem;
        padding-top: 3rem;
    }

    .hero-image-frame img {
        width: 85vw;
        height: 100vw;
    }

    .countdown-section {
        padding: 4rem 1rem;
    }

    .countdown {
        gap: 0.5rem;
    }

    .countdown-item {
        min-width: auto;
    }

    .flip-card {
        width: 35px;
        height: 50px;
    }

    .flip-card span {
        font-size: 1.8rem;
    }

    .flip-card-container {
        gap: 2px;
    }

    .countdown-separator {
        font-size: 1.5rem;
        margin: 0 0.1rem;
    }

    .countdown-label {
        font-size: 0.6rem;
        letter-spacing: 0.1em;
        margin-top: 0.5rem;
    }

    .story-section {
        padding: 5rem 1.5rem;
    }

    .timeline-item {
        margin-bottom: 5rem;
    }

    .engagement-section {
        padding: 5rem 1.5rem;
    }

    .cta-section {
        padding: 5rem 1.5rem;
    }

    .petal {
        display: none;
    }

    .corner-ornament {
        display: none;
    }
}

/* ===================================
   REDUCED MOTION SUPPORT
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   REVEAL ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===================================
   LOCATION SECTION STYLES
   =================================== */
.location-section {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
}

.location-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    animation: fadeSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

#map {
    height: 300px !important;
    max-width: 500px;
    margin: 20px auto;
    width: 100%;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #e5e3df;
    display: block;
    position: relative;
    z-index: 1;
}

.leaflet-container {
    border-radius: 10px;
    overflow: hidden;
}

.location-info {
    margin-top: 2rem;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.location-info p {
    margin: 0.8rem 0;
    color: #FFFFFF;
    font-weight: 400;
    line-height: 1.8;
}

.location-info strong {
    color: #FFFFFF;
    font-weight: 500;
    display: block;
    font-size: 1.15rem;
}

/* ===================================
   COLOUR PALETTE / DRESSCODE
   =================================== */
.palette-section {
    max-width: 1100px;
    margin: 1rem auto 3rem;
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: 12px;
    background: rgba(255, 254, 249, 0.03);
}

.palette-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 300;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.palette-section .flourish {
    margin: 1.2rem auto 1.8rem;
}

.palette-intro {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--warm-white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.palette-intro.visible {
    opacity: 0.85;
    transform: translateY(0);
}

.palette-swatches {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 2.5rem;
    /* Holds four chips per row, so eight colours break evenly 4 + 4 */
    max-width: 620px;
    margin: 2.5rem auto 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.palette-swatches.visible {
    opacity: 1;
    transform: translateY(0);
}

.palette-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 110px;
}

.swatch-chip {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--swatch);
    border: 1px solid rgba(232, 213, 163, 0.35);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 0 0 4px rgba(250, 247, 242, 0.06);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
}

.palette-swatch:hover .swatch-chip {
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(201, 169, 98, 0.35), inset 0 0 0 4px rgba(250, 247, 242, 0.1);
}

.swatch-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--warm-white);
}

.palette-dresscode {
    margin-top: 2.5rem;
    transition-delay: 0.3s;
}

.palette-note {
    margin-top: 2.5rem;
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--gold-light);
    opacity: 0;
    transition: opacity 0.8s ease 0.4s;
}

.palette-note.visible {
    opacity: 0.8;
}

@media (max-width: 600px) {
    .palette-section {
        padding: 2rem 1rem;
    }

    .palette-swatches {
        gap: 1.5rem 1rem;
    }

    .palette-swatch {
        width: 84px;
    }

    .swatch-chip {
        width: 56px;
        height: 56px;
    }
}

/* ===================================
   ERROR CODE ANIMATIONS
   =================================== */
.error-code {
    display: inline-block;
    animation: errorCodePulse 3s ease-in-out infinite;
}

@keyframes errorCodePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(201, 169, 98, 0);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 30px rgba(201, 169, 98, 0.5), 0 0 60px rgba(201, 169, 98, 0.3);
    }
}

/* ===================================
   RESPONSIVE - Location & Parking Grid
   =================================== */
@media (max-width: 800px) {
    .location-parking-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}
