/* ═══════════════════════════════════════════════════
   WEDDING INVITATION — Global Styles
   ═══════════════════════════════════════════════════ */

:root {
    /* Palette */
    --bg: #D4C4B0;
    --bg-warm: #C9B8A3;
    --bg-card: #E3D7CA;
    --text: #3A3128;
    --text-light: #7A6E62;
    --text-muted: #B0A696;
    --accent: #C9A87C;
    --accent-dark: #8B7355;
    --white: #FFFFFF;
    --black: #1A1714;

    /* Typography */
    --font-display: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-ui: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-pad: clamp(40px, 7vh, 80px);
    --gutter: clamp(16px, 3vw, 40px);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px var(--gutter);
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
    background: rgba(212, 196, 176, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px var(--gutter);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.04);
}

.header__initials a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text);
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__nav a {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    position: relative;
    transition: color 0.3s;
}

.header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.header__nav a:hover {
    color: var(--text);
}

.header__nav a:hover::after {
    width: 100%;
}

.header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}

.header__menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.header__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    transition: color 0.3s;
}

.mobile-nav a:hover {
    color: var(--accent);
}


/* ═══════════════════════════════════════════════════
   SECTION 1: HERO
   ═══════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px var(--gutter) 40px;
    text-align: center;
    overflow: hidden;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero__date {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.2s forwards;
}

.hero__image-wrapper {
    position: relative;
    width: clamp(300px, 45vw, 500px);
    aspect-ratio: 3/4;
    border-radius: 240px 240px 20px 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: fadeUp 1.2s 0.4s forwards;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__names {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.7s forwards;
}

.hero__name {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    line-height: 1;
}

.hero__ampersand {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--accent);
}

.hero__tagline {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-light);
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s 0.9s forwards;
}

.hero__scroll-cue {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
}

.hero__scroll-cue span {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}


/* ═══════════════════════════════════════════════════
   SECTION 2: SHRINK & REVEAL
   ═══════════════════════════════════════════════════ */

.shrink-reveal {
    position: relative;
    height: 200vh;
}

.shrink-reveal__spacer {
    height: 10vh;
}

.shrink-reveal__container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.shrink-reveal__center {
    position: relative;
    z-index: 3;
    width: clamp(300px, 42vw, 480px);
    aspect-ratio: 3/4;
    border-radius: 200px 200px 16px 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    will-change: transform;
}

.shrink-reveal__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shrink-reveal__side {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    z-index: 4;
}

.shrink-reveal__side--left {
    left: 0;
    padding-left: var(--gutter);
    align-items: flex-start;
}

.shrink-reveal__side--right {
    right: 0;
    padding-right: var(--gutter);
    align-items: flex-end;
}

.shrink-reveal__side-img {
    border-radius: 14px;
    overflow: hidden;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    will-change: transform;
    opacity: 0;
}

.shrink-reveal__side-img--1 {
    width: clamp(150px, 22vw, 280px);
    height: clamp(220px, 30vw, 380px);
    transform: translateX(-120%);
}

.shrink-reveal__side-img--2 {
    width: clamp(130px, 18vw, 240px);
    height: clamp(180px, 24vw, 300px);
    transform: translateX(-120%);
    margin-left: 40px;
}

.shrink-reveal__side-img--3 {
    width: clamp(150px, 22vw, 280px);
    height: clamp(220px, 30vw, 380px);
    transform: translateX(120%);
}

.shrink-reveal__side-img--4 {
    width: clamp(130px, 18vw, 240px);
    height: clamp(180px, 24vw, 300px);
    transform: translateX(120%);
    margin-right: 40px;
}


/* ═══════════════════════════════════════════════════
   SECTION 3: OUR LOVE STORY
   ═══════════════════════════════════════════════════ */

.love-story {
    position: relative;
    min-height: 350vh;
    padding: 0 var(--gutter);
}

.love-story__container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20px;
    gap: 10px;
}

.love-story__text {
    text-align: center;
}

.love-story__title {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6vw, 5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 30px;
    text-transform: lowercase;
}

.love-story__caption {
    position: relative;
    min-height: 140px;
}

.love-story__caption-text {
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.love-story__caption-text.active {
    opacity: 1;
    transform: translateY(0);
}

.love-story__caption-date {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

/* Polaroid photos */
.love-story__photos {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.love-story__photo-stack {
    position: relative;
    width: clamp(300px, 34vw, 420px);
    aspect-ratio: 3/4;
}

.polaroid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 14px 14px 50px 14px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.05);
    transform: rotate(var(--rotation, 0deg));
    opacity: 0;
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.polaroid.active {
    opacity: 1;
    z-index: 10;
}

.polaroid.stacked {
    opacity: 1;
    z-index: 5;
}

.polaroid img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 2px;
}

.polaroid__label {
    display: none;
}


/* ═══════════════════════════════════════════════════
   SECTION 4: CEREMONY
   ═══════════════════════════════════════════════════ */

.ceremony {
    padding: var(--section-pad) var(--gutter);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.ceremony__photo {
    width: 100%;
    max-width: 700px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
    margin-bottom: 40px;
}

.ceremony__image {
    width: 100%;
    display: block;
}

.ceremony__content {
    text-align: center;
    max-width: 700px;
}

.ceremony__label {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 16px;
}

.ceremony__venue {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    line-height: 1.2;
}

.ceremony__ornament {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    margin: 20px 0 30px;
}

.ceremony__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ceremony__card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 28px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border: 1px solid rgba(201, 168, 124, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ceremony__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.ceremony__card-icon {
    font-size: 2.2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.ceremony__card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.ceremony__card-info {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-light);
}

.ceremony__card-info-ar {
    font-size: 0.85rem;
    color: var(--text-muted);
    direction: rtl;
    font-style: italic;
}

.ceremony__card-sub {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.ceremony__card-link {
    display: inline-block;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    color: var(--accent-dark);
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.ceremony__card-link:hover {
    background: var(--accent);
    color: var(--white);
}


/* ═══════════════════════════════════════════════════
   COUNTDOWN SECTION
   ═══════════════════════════════════════════════════ */

.countdown {
    padding: var(--section-pad) var(--gutter);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
}

.countdown__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 10px;
}

.countdown__ornament {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.5em;
    margin-bottom: 40px;
}

.countdown__timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(12px, 3vw, 30px);
    flex-wrap: wrap;
}

.countdown__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown__number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    letter-spacing: 0.02em;
}

.countdown__label {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 8px;
}

.countdown__sep {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--accent);
    font-weight: 300;
    padding-bottom: 20px;
}

.countdown__party {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-style: italic;
    color: var(--accent-dark);
    margin-top: 20px;
    animation: partyPulse 2s ease-in-out infinite;
}

@keyframes partyPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

/* ═══════════════════════════════════════════════════
   SECTION 5: DETAILS GRID
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   BIBLE VERSE SECTION
   ═══════════════════════════════════════════════════ */

.verse-section {
    padding: var(--section-pad) var(--gutter);
    text-align: center;
    background: var(--bg-warm);
}

.verse-content {
    max-width: 680px;
    margin: 0 auto;
}

.verse-decoration {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 24px;
    text-shadow: 0 0 30px rgba(201, 168, 124, 0.3);
}

.verse-text {
    border: none;
    margin: 0;
    padding: 0;
}

.verse-text p {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-style: italic;
    line-height: 2;
    color: var(--text);
}

.verse-cite {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-style: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-top: 24px;
}

.verse-ornament {
    margin-top: 24px;
}

.ornament-wing {
    font-size: 0.9rem;
    color: var(--accent);
    letter-spacing: 0.2em;
}


/* ═══════════════════════════════════════════════════
   Q&A SECTION
   ═══════════════════════════════════════════════════ */

.faq {
    padding: var(--section-pad) var(--gutter);
    max-width: 720px;
    margin: 0 auto;
}

.faq__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}

.faq__list {
    display: flex;
    flex-direction: column;
}

.faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    text-align: left;
    transition: color 0.3s;
}

.faq__question:hover {
    color: var(--accent-dark);
}

.faq__icon {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.4s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq__item.open .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.faq__item.open .faq__answer {
    max-height: 300px;
    padding-bottom: 22px;
}

.faq__answer p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-light);
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.footer {
    position: relative;
    overflow: hidden;
}

.footer__mosaic {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}

.footer__mosaic img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.footer__mosaic-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(26, 23, 20, 0.2) 0%,
            rgba(26, 23, 20, 0.75) 60%,
            rgba(26, 23, 20, 0.92) 100%);
    z-index: 1;
}

.footer__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 50px var(--gutter) 40px;
}

.footer__hearts {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer__hearts span {
    font-size: 1.2rem;
    color: var(--accent);
    animation: heartBeat 2s ease-in-out infinite;
}

.footer__hearts span:nth-child(2) {
    animation-delay: 0.3s;
}

.footer__hearts span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer__names {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.footer__date {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 8px;
}

.footer__tag {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 16px;
}

.footer__ornament {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    opacity: 0.6;
}


/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

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

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.4;
        transform: scaleY(0.6);
    }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {

    .header__nav {
        display: none;
    }

    .header__menu-btn {
        display: flex;
    }

    .love-story__container {
        flex-direction: column;
        padding: 20px 0;
    }

    .love-story__text {
        text-align: center;
        max-width: 100%;
    }

    .love-story__title {
        font-size: 2.4rem;
    }

    .love-story__photo-stack {
        width: 70vw;
    }

    .details__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shrink-reveal__side-img--1,
    .shrink-reveal__side-img--2 {
        width: clamp(80px, 25vw, 180px);
        height: clamp(120px, 35vw, 240px);
    }

    .shrink-reveal__side-img--3,
    .shrink-reveal__side-img--4 {
        width: clamp(80px, 25vw, 180px);
        height: clamp(120px, 35vw, 240px);
    }
}

@media (max-width: 560px) {
    .details__grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .details__card {
        padding: 30px 16px;
    }

    .love-story__photo-stack {
        width: 220px;
    }

    .polaroid {
        padding: 10px 10px 40px 10px;
    }
}


/* ═══════════════════════════════════════════════════
   MUSIC GATE OVERLAY
   ═══════════════════════════════════════════════════ */

.music-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #ddd0c0 0%, #D4C4B0 50%, #c9b8a3 100%);
    overflow: hidden;
}

.music-gate::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(139, 115, 85, 0.25);
    border-radius: 10px;
    pointer-events: none;
}

.gate-content {
    text-align: center;
    z-index: 2;
    padding: 40px 30px;
    animation: gateFadeIn 1.5s ease-out;
}

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

.gate-cross {
    font-size: 4rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(139, 115, 85, 0.3), 0 0 80px rgba(139, 115, 85, 0.15);
    animation: crossGlow 4s ease-in-out infinite;
}

@keyframes crossGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(139, 115, 85, 0.2); opacity: 0.7; }
    50% { text-shadow: 0 0 50px rgba(139, 115, 85, 0.4); opacity: 1; }
}

.gate-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 8vw, 4rem);
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(139, 115, 85, 0.15);
}

.gate-amp {
    font-size: 0.65em;
    opacity: 0.6;
    margin: 0 8px;
}

.gate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}

.gate-divider span:first-child,
.gate-divider span:last-child {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
}

.gate-divider span:nth-child(2) {
    color: var(--accent-dark);
    font-size: 0.6rem;
    opacity: 0.5;
}

.gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 44px;
    background: var(--accent-dark);
    border: 2px solid var(--accent-dark);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 4px 20px rgba(139, 115, 85, 0.25);
}

.gate-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: -1;
}

.gate-btn:hover { color: var(--white); border-color: var(--text); }
.gate-btn:hover::before { transform: scaleX(1); }

/* Gate particles */
.gate-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gate-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-dark);
    border-radius: 50%;
    opacity: 0;
    animation: gateFloat 6s ease-in-out infinite;
}

@keyframes gateFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.5; }
    80% { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-20px) scale(1); }
}

/* Gate exit animation */
.music-gate.exiting {
    animation: gateExit 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes gateExit {
    to { opacity: 0; transform: scale(1.08); pointer-events: none; }
}


/* ═══════════════════════════════════════════════════
   3D WEDDING CAKE SECTION
   ═══════════════════════════════════════════════════ */

.cake-section {
    padding: var(--section-pad) var(--gutter);
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #c4b59f 50%, var(--bg) 100%);
}

.cake-section__heading {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    margin-bottom: 30px;
}

.cake-section__canvas-wrap {
    display: flex;
    justify-content: center;
}

.cake-section__canvas-wrap canvas {
    max-width: 100%;
    height: auto !important;
    border-radius: 12px;
    cursor: grab;
}

.cake-section__canvas-wrap canvas:active {
    cursor: grabbing;
}

.cake-section__hint {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 14px;
}


/* ═══════════════════════════════════════════════════
   MUSIC TOGGLE
   ═══════════════════════════════════════════════════ */

.music-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: rgba(212, 196, 176, 0.9);
    backdrop-filter: blur(10px);
    color: var(--accent-dark);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.music-icon.playing {
    animation: musicBounce 1s ease-in-out infinite;
}

.music-icon.paused {
    opacity: 0.4;
    animation: none;
}

@keyframes musicBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(5deg); }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE — Mobile
   ═══════════════════════════════════════════════════ */

@media (max-width: 768px) {

    /* Ceremony cards: stack on mobile */
    .ceremony__cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Footer mosaic: fewer columns on mobile */
    .footer__mosaic {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .footer__mosaic {
        grid-template-columns: repeat(3, 1fr);
    }
}