:root {
    --bg: #fffdf9;
    --gold: #a67c3d;
    --gold-light: #c9a66b;
    --gold-dark: #7a5a2a;
    --text: #4a3a24;
    --text-soft: #6f5c3f;
    --card: #ffffff;
    --shadow: 0 12px 40px rgba(122, 90, 42, 0.1);
    --heading-font: 'Cormorant Garamond', serif;
    --display-font: 'Cinzel', serif;
    --script-font: 'Great Vibes', cursive;
    --body-font: 'Lora', serif;
    --intro-green: #0f4d2e;
}

body.intro-active {
    overflow: hidden;
}

#main-content {
    opacity: 0;
}

body.intro-done #main-content {
    animation: contentReveal 1s ease forwards;
}

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

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

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

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 12% 18%, rgba(201, 166, 107, 0.06), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(201, 166, 107, 0.05), transparent 38%);
    pointer-events: none;
    z-index: 0;
}

.floral-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floral-bg::before,
.floral-bg::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.11;
    filter: saturate(0.85);
}

.floral-bg::before {
    left: -6%;
    top: 22%;
    width: min(42vw, 320px);
    height: min(55vh, 480px);
    background-image: url("assets/flower-left.png");
    background-position: left center;
}

.floral-bg::after {
    right: -8%;
    bottom: 4%;
    width: min(40vw, 300px);
    height: min(52vh, 460px);
    background-image: url("assets/flower-right.png");
    background-position: right bottom;
}

@media (max-width: 768px) {
    .floral-bg::before {
        left: -14%;
        top: 30%;
        width: 58vw;
        opacity: 0.09;
    }

    .floral-bg::after {
        right: -16%;
        bottom: 2%;
        width: 54vw;
        opacity: 0.09;
    }
}

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #0a3d24 0%, var(--intro-green) 42%, #145c38 100%);
    overflow: hidden;
    transition: opacity 0.85s ease, visibility 0.85s ease;
}

.intro-splash__glow {
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background:
        radial-gradient(circle at 30% 25%, rgba(201, 166, 107, 0.22), transparent 45%),
        radial-gradient(circle at 70% 75%, rgba(255, 255, 255, 0.08), transparent 40%);
    animation: introGlow 6s ease-in-out infinite;
    pointer-events: none;
}

.intro-splash__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 24px 28px;
    max-width: 420px;
    width: 100%;
}

.intro-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    opacity: 0;
    animation: introFadeUp 1s ease forwards;
}

.intro-ornament--mid {
    margin: 14px 0 16px;
    animation-delay: 1.1s;
}

.intro-ornament--top {
    animation-delay: 0.15s;
}

.intro-line {
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 107, 0.9), transparent);
}

.intro-ornament i {
    color: var(--gold-light);
    font-size: 0.85rem;
    opacity: 0.9;
}

.intro-ganesha {
    width: 58px;
    margin: 0 auto 22px;
    opacity: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    animation: introGanesha 1.2s ease forwards;
    animation-delay: 0.25s;
}

.intro-eyebrow {
    font-family: var(--display-font);
    font-size: clamp(0.72rem, 2.2vw, 0.82rem);
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 248, 235, 0.88);
    margin-bottom: 16px;
    opacity: 0;
    animation: introFadeUp 1s ease forwards;
    animation-delay: 0.45s;
}

.intro-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 0;
}

.intro-name {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 9vw, 3rem);
    font-weight: 600;
    color: #faf6ee;
    letter-spacing: 0.04em;
    line-height: 1.1;
    opacity: 0;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2);
}

.intro-name--groom {
    animation: introFadeUp 1s ease forwards;
    animation-delay: 0.65s;
}

.intro-name--bride {
    animation: introFadeUp 1s ease forwards;
    animation-delay: 1.05s;
}

.intro-with {
    font-family: var(--script-font);
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    color: var(--gold-light);
    line-height: 1;
    margin: -2px 0 2px;
    opacity: 0;
    animation: introWithReveal 1.1s ease forwards;
    animation-delay: 0.88s;
}

.intro-date {
    font-family: var(--display-font);
    font-size: clamp(0.88rem, 2.5vw, 1rem);
    letter-spacing: 0.18em;
    color: rgba(255, 248, 235, 0.92);
    text-transform: uppercase;
    opacity: 0;
    animation: introFadeUp 1s ease forwards;
    animation-delay: 1.25s;
}

.intro-tagline {
    margin-top: 10px;
    font-family: var(--body-font);
    font-style: italic;
    font-size: 0.92rem;
    color: rgba(212, 175, 107, 0.85);
    opacity: 0;
    animation: introFadeUp 1s ease forwards;
    animation-delay: 1.4s;
}

.intro-progress {
    width: min(200px, 70%);
    height: 2px;
    margin: 28px auto 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: introFadeUp 0.8s ease forwards;
    animation-delay: 1.5s;
}

.intro-progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    animation: introProgress 2.8s ease-in-out forwards;
    animation-delay: 1.6s;
}

.intro-splash--exit {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-splash--exit .intro-splash__inner {
    animation: introZoomOut 0.85s ease forwards;
}

@keyframes introGlow {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
    50% { transform: scale(1.05) rotate(2deg); opacity: 1; }
}

@keyframes introGanesha {
    0% { opacity: 0; transform: scale(0.6) translateY(12px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes introFadeUp {
    0% { opacity: 0; transform: translateY(22px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes introWithReveal {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes introProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes introZoomOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.04); }
}

@keyframes contentReveal {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#main-content {
    position: relative;
    z-index: 2;
}

.container {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: clamp(56px, 10vw, 88px) 0;
}

.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0;
}

.divider-ornament .line {
    width: 56px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-ornament i {
    color: var(--gold);
    font-size: 0.85rem;
    opacity: 0.75;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 88px 20px 100px;
}

.hero-ganesha {
    width: 52px;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-family: var(--body-font);
    font-style: italic;
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-soft);
    max-width: 34rem;
    margin: 0 auto 10px;
}

.hero-names {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin: 8px 0 14px;
}

.hero-name {
    font-family: var(--heading-font);
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 600;
    color: var(--gold-dark);
    line-height: 1.05;
    letter-spacing: 0.02em;
}

.hero-with {
    font-family: var(--script-font);
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    color: var(--gold);
    line-height: 1;
    margin: -4px 0;
}

.hero-date-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 18px;
    border: 1px solid rgba(166, 124, 61, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    color: var(--gold-dark);
}

.hero-ornament {
    margin: 18px 0 8px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #fff;
    box-shadow: 0 10px 24px rgba(166, 124, 61, 0.28);
}

.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold-dark);
    background: rgba(255, 255, 255, 0.7);
}

.btn:hover {
    transform: translateY(-2px);
}

.invitation-section {
    position: relative;
}

.digital-card-frame {
    background: var(--card);
    border: 1px solid rgba(166, 124, 61, 0.22);
    border-radius: 20px;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: var(--shadow);
    text-align: center;
}

.invitation-heading {
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 5vw, 2.4rem);
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.invitation-script {
    font-style: italic;
    color: var(--text-soft);
    max-width: 36rem;
    margin: 0 auto 18px;
}

.invitation-names {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
    margin: 10px 0 6px;
}

.invitation-names .name {
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--gold-dark);
}

.invitation-names .and {
    font-family: var(--script-font);
    font-size: 2rem;
    color: var(--gold);
}

.main-invite-date {
    font-size: 1.05rem;
    color: var(--gold-dark);
    letter-spacing: 0.06em;
    margin: 8px 0 18px;
}

.invitation-text {
    color: var(--text-soft);
    font-style: italic;
}

.countdown-container {
    margin-top: 24px;
}

.countdown-badge {
    display: grid;
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.time-part {
    background: rgba(166, 124, 61, 0.08);
    border: 1px solid rgba(166, 124, 61, 0.18);
    border-radius: 12px;
    padding: 12px 8px;
}

.time-part span {
    display: block;
    font-family: var(--heading-font);
    font-size: 1.6rem;
    color: var(--gold-dark);
}

.time-part small {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.countdown-done {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    color: var(--gold-dark);
}

.families-section .section-heading,
.events-section .section-heading {
    text-align: center;
    font-family: var(--heading-font);
    font-size: clamp(1.7rem, 4.5vw, 2.2rem);
    color: var(--gold-dark);
    margin-bottom: 8px;
}

.families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.family-card {
    background: var(--card);
    border: 1px solid rgba(166, 124, 61, 0.18);
    border-radius: 16px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.family-card h3 {
    font-family: var(--heading-font);
    font-size: 1.25rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.family-card p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 6px;
}

.family-card .label {
    font-style: italic;
    color: var(--gold);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.info-card {
    background: var(--card);
    border: 1px solid rgba(166, 124, 61, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.info-card .icon-circle {
    width: 52px;
    height: 52px;
    margin: 22px auto 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(166, 124, 61, 0.12);
    color: var(--gold-dark);
    font-size: 1.1rem;
}

.card-body {
    padding: 18px 22px 24px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--heading-font);
    font-size: 1.35rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.92rem;
    color: var(--text-soft);
    margin-bottom: 4px;
}

.card-action-btn {
    margin-top: auto;
    padding-top: 14px;
    color: var(--gold-dark);
    text-decoration: none;
    font-size: 0.86rem;
    letter-spacing: 0.04em;
}

.card-action-btn:hover {
    color: var(--gold);
}

.compliments-section {
    text-align: center;
}

.compliments-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin-top: 16px;
}

.compliments-list span {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(166, 124, 61, 0.25);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--heading-font);
    color: var(--gold-dark);
}

.site-footer {
    text-align: center;
    padding: 40px 20px 110px;
    color: var(--text-soft);
}

.footer-names {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--gold-dark);
}

.footer-date {
    margin-top: 8px;
    letter-spacing: 0.1em;
}

.footer-quote {
    margin-top: 10px;
    font-style: italic;
    font-size: 0.92rem;
}

.bottom-nav-spacer {
    height: 72px;
}

.bottom-navigation {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 50;
    width: min(420px, calc(100% - 24px));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255, 253, 249, 0.95);
    border: 1px solid rgba(166, 124, 61, 0.25);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(74, 58, 36, 0.12);
    backdrop-filter: blur(8px);
    padding: 6px;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.68rem;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-btn i {
    font-size: 0.95rem;
}

.nav-btn.active,
.nav-btn:hover {
    color: var(--gold-dark);
    background: rgba(166, 124, 61, 0.1);
}

.music-toggle-v2 {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(74, 58, 36, 0.12);
    z-index: 5001;
    color: var(--gold-dark);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(166, 124, 61, 0.2);
}

.music-toggle-v2:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(166, 124, 61, 0.2);
}

.music-toggle-v2.playing {
    background: var(--gold-dark);
    color: #fff;
    animation: musicPulse 2s infinite;
}

.music-toggle-v2.playing i {
    animation: spin 3s linear infinite;
}

.music-tooltip {
    position: absolute;
    right: 58px;
    background: var(--gold-dark);
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.music-toggle-v2:hover .music-tooltip {
    opacity: 1;
    visibility: visible;
    right: 63px;
}

@keyframes musicPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(166, 124, 61, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(166, 124, 61, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(166, 124, 61, 0);
    }
}

@media (max-width: 600px) {
    .music-toggle-v2 {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
    }

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

    .hero-cta-group .btn {
        width: 100%;
        justify-content: center;
    }
}
