/* Base styles */
:root {
    --primary-color: #ffffff;
    /* Soft pink / pastel */
    --accent-color: #ff80ab;
    --text-color: #000;
    /* Darkened to pure black */
    --bg-color: #fff;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.15);
    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-tamil: 'Tiro Tamil', serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--primary-color);
    /* Removed fixed position persistence rule */
    /* This rule is no longer needed */
}

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

/* Typography */
.great-vibes {
    font-family: 'Great Vibes', cursive;
}

.playfair {
    font-family: var(--font-heading);
}

.tamil-text {
    font-family: var(--font-tamil);
}

h1,
h2,
h3,
.section-title {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
}

p,
button,
input,
textarea,
select,
a,
.nav-btn,
.primary-btn,
.glass-btn {
    font-family: var(--font-body);
}

.kural-text,
.kural-meaning,
.corner-kural-text,
.corner-kural-meaning {
    font-family: var(--font-tamil);
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 8vh;
    overflow: hidden;
    transition: opacity 1s ease-out;
}

.loader-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.load-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.load-img.active {
    opacity: 0.8;
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.loader-title {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    margin-bottom: 2.5rem;
    font-family: 'Abril Fatface', var(--font-tamil), serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff9e6;
    /* Cream Gold */
    text-transform: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.3);
    opacity: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    animation: fadeIn 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

#enter-btn {
    font-size: 1.4rem;
    padding: 1rem 3.5rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.5);
    color: #ffd700;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(212, 175, 55, 0.2);
}

#enter-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.4);
}

/* Background Slideshow */
.bg-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* UI Elements */
.glass-panel {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin: 1rem auto;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-btn {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #333;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.glass-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: linear-gradient(135deg, #ff80ab, #ff4081);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 64, 129, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(255, 64, 129, 0.4);
}

.primary-btn:active {
    transform: scale(0.95);
}

.glow-btn {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px #ff80ab;
    }

    100% {
        box-shadow: 0 0 20px #ff4081, 0 0 30px #ff80ab;
    }
}

.floating-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.btn-icon,
.btn-lang {
    padding: 0.8rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Sections */
#main-content {
    position: relative;
    width: 100%;
    padding: 0;
}

.content-wrapper {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
}

.section-spacing {
    margin-bottom: 5rem;
}

.content-wrapper>section:not(.hero-section) {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('../background pics/bg_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.content-wrapper>section:not(.hero-section).section-spacing {
    margin-bottom: 0;
    padding: 2rem 1rem;
}

.content-wrapper>section:not(.hero-section) .text-white {
    color: #111;
    text-shadow: none;
}

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

.text-white {
    color: #fff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* Landing Hero */
.landing-hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 4rem;
    color: #fff;
}

.landing-hero-bg,
.landing-hero-overlay {
    position: absolute;
    inset: 0;
}

.landing-hero-bg {
    background-image: url('../background pics/Hero_updated.jpeg');
    background-size: cover;
    background-position: center center;
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .landing-hero-bg {
        background-image: url('../background pics/here_update mobile view.jpeg');
    }
}

.landing-hero-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.28) 40%, rgba(0, 0, 0, 0.55) 100%),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 35%);
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    width: min(900px, 100%);
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 32px;
    background: rgba(13, 13, 13, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.hero-kicker {
    display: inline-block;
    padding: 0.45rem 1rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

.landing-hero .couple-names {
    font-size: clamp(3.2rem, 8vw, 6rem);
    color: #fff;
    margin-top: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.landing-hero .wedding-date {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.landing-hero .countdown-title {
    color: #fff;
}

.landing-hero .countdown {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.landing-hero .cd-item p {
    color: rgba(255, 255, 255, 0.9);
}

.landing-hero .hero-btn-area {
    margin-top: 1rem;
}

/* Sticky Scroll Section */
.sticky-scroll-section {
    position: relative;
    height: 400vh;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
        url('../background pics/bg_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.sticky-scroll-pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.25rem 2.5rem;
    overflow: visible !important;
}

.scroll-copy {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding-top: 1rem;
}

.scroll-copy-spacer {
    min-height: 150px;
}

.scroll-eyebrow {
    font-size: 0.82rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #d81b60;
    margin-bottom: 0.9rem;
    font-weight: 700;
}

.scroll-subcopy {
    max-width: 42rem;
    margin: 0.85rem auto 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.couple-stage {
    position: relative;
    width: min(1200px, 100%);
    height: min(58vh, 560px);
    margin: auto;
    overflow: visible !important;
}

.meeting-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: clamp(280px, 60vw, 520px);
    height: clamp(280px, 60vw, 520px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(24px);
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

body.active-scroll-phase .meeting-glow {
    opacity: 1 !important;
    visibility: visible !important;
}

.character {
    position: fixed;
    top: 50%;
    left: 50%;
    width: clamp(170px, 28vw, 320px);
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25)) brightness(1.05);
    will-change: transform;
    z-index: 100000 !important;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

body.active-scroll-phase .character,
body.corners-persist .character,
body.dashboard-in-view .character {
    opacity: 1 !important;
    visibility: visible !important;
}

body.roadmap-in-view .character,
body.scratch-in-view .character,
body.footer-in-view .character {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

body.corners-persist .character {
    top: auto;
    bottom: 2vh;
}

.corner-kural {
    position: absolute;
    left: 50%;
    top: 56%;
    width: min(560px, 78vw);
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(136, 14, 79, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 91;
    transition: opacity 0.6s ease;
    pointer-events: none;
    text-align: center;
}

.corner-kural-text {
    font-family: 'Tiro Tamil', serif;
    color: #880e4f;
    font-size: clamp(1rem, 1.9vw, 1.25rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.45rem;
}

.corner-kural-meaning {
    font-family: 'Tiro Tamil', serif;
    color: #222;
    font-size: clamp(0.78rem, 1.35vw, 0.92rem);
    line-height: 1.45;
}

.sticky-scroll-section.reveal-kural .corner-kural {
    opacity: 1;
}

.groom-character {
    width: clamp(300px, 42vw, 540px);
    transform-origin: 50% 85%;
    transform: translateX(-50%) translateX(-42vw);
}

.bride-character {
    transform-origin: 50% 85%;
    transform: translateX(-50%) translateX(42vw);
}

.scroll-footer-hint {
    position: relative;
    z-index: 2;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

/* Vertical Roadmap */
.roadmap-section {
    position: relative;
    min-height: auto;
    overflow: hidden;
    background-image:
        linear-gradient(180deg, rgba(5, 8, 18, 0.52), rgba(8, 4, 12, 0.68)),
        url('../background pics/Hero_updated.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .roadmap-section {
        background-image:
            linear-gradient(180deg, rgba(5, 8, 18, 0.6), rgba(8, 4, 12, 0.75)),
            url('../background pics/here_update mobile view.jpeg');
        background-attachment: scroll;
    }
}

.roadmap-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 50% 75%, rgba(255, 64, 129, 0.08), transparent 24%);
    z-index: 0;
}

.roadmap-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 5rem 1rem 2rem;
}

.roadmap-header {
    text-align: center;
    margin-bottom: 4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    color: #fff;
    max-width: 860px;
}

.roadmap-header .scroll-eyebrow,
.roadmap-header .section-title {
    color: #fff;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.roadmap-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4.25rem;
    padding: 1rem 0 0.6rem;
}

.roadmap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.roadmap-step {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 42px 1fr;
    align-items: center;
    min-height: 220px;
}

.roadmap-pair {
    display: contents;
}

.roadmap-step-left .roadmap-pair {
    grid-column: auto;
}

.roadmap-step-right .roadmap-pair {
    grid-column: auto;
}

.roadmap-step-left .roadmap-card {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
}

.roadmap-step-left .roadmap-media {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: center;
    margin-left: 1rem;
}

.roadmap-step-right .roadmap-media {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    margin-right: 1rem;
}

.roadmap-step-right .roadmap-card {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    align-self: center;
}

.roadmap-media {
    flex: 0 0 230px;
    width: 230px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.roadmap-media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.roadmap-card {
    position: relative;
    width: min(100%, 430px);
    padding: 1.4rem 1.4rem 1.35rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    color: #fff;
    overflow: hidden;
    will-change: transform, opacity;
}

.roadmap-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.roadmap-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.35rem 0.8rem;
    margin-bottom: 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.roadmap-card h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    margin-bottom: 0.55rem;
}

.roadmap-text {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1rem;
    line-height: 1.6;
}

.roadmap-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 28px;
    height: 28px;
    transform: translate(-50%, -50%) rotate(45deg);
    background: #c2185b;
    border: 3px solid #fff;
    border-radius: 5px;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0), 0 0 20px rgba(255, 64, 129, 0.58);
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    z-index: 2;
}

.roadmap-step:hover .roadmap-marker {
    transform: translate(-50%, -50%) rotate(45deg) scale(1.2);
    background: #ff4081;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 0 28px rgba(255, 64, 129, 0.82);
}

.couple-character {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(150px, 30vw, 300px);
    z-index: 99999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    will-change: transform;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.45)) brightness(1.05);
}

.heart {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
    animation: floatHeart linear forwards;
}

.roadmap-heart {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 8;
    pointer-events: none;
    will-change: transform;
}

.roadmap-heart-symbol {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    filter: drop-shadow(0 0 24px rgba(255, 64, 129, 0.95)) drop-shadow(0 0 42px rgba(255, 0, 0, 0.35));
    animation: roadmapHeartPulse 1.7s ease-in-out infinite;
    transform-origin: center;
}

@keyframes roadmapHeartPulse {

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

    50% {
        transform: scale(1.12);
    }
}

.roadmap-step.left .roadmap-card,
.roadmap-step-right .roadmap-card {
    opacity: 0;
}

.roadmap-step-left .roadmap-card {
    transform: translateX(-100px);
}

.roadmap-step-right .roadmap-card {
    transform: translateX(100px);
}

@media (max-width: 768px) {
    .roadmap-section {
        background-attachment: scroll;
    }

    .roadmap-inner {
        padding: 4rem 0.75rem 1.5rem;
    }

    .roadmap-list {
        gap: 3rem;
    }

    .roadmap-step {
        grid-template-columns: 1fr 34px 1fr;
        min-height: 200px;
    }

    .roadmap-card {
        width: min(100%, 340px);
        padding: 1.2rem;
    }

    .roadmap-media {
        flex-basis: 190px;
        width: 190px;
    }

    .roadmap-marker {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 480px) {
    .roadmap-header {
        margin-bottom: 3rem;
    }

    .roadmap-step {
        grid-template-columns: 18px 1fr;
        min-height: auto;
        row-gap: 0.75rem;
    }

    .roadmap-line {
        left: 10px;
        transform: none;
        width: 4px;
    }

    .roadmap-pair {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .roadmap-step-left .roadmap-pair,
    .roadmap-step-right .roadmap-pair {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
        margin-left: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .roadmap-step-left .roadmap-card,
    .roadmap-step-right .roadmap-card {
        grid-column: auto;
        width: 100%;
        margin: 0;
        opacity: 0;
    }

    .roadmap-step-left .roadmap-media,
    .roadmap-step-right .roadmap-media {
        grid-column: auto;
        flex-basis: auto;
        width: 100%;
        margin: 0;
    }

    .roadmap-marker {
        left: 10px;
        width: 22px;
        height: 22px;
    }

    .roadmap-heart {
        left: 12px !important;
        transform: translateX(-50%);
    }

    .roadmap-heart-symbol {
        font-size: 3.8rem;
    }
}

.couple-names {
    font-size: 5rem;
    color: #d81b60;
    margin-top: 2rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.wedding-date {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.cd-item {
    text-align: center;
}

.cd-item span {
    font-size: 3rem;
    font-weight: bold;
    color: #ff4081;
    font-family: 'Playfair Display', serif;
    display: block;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.2);
}

.cd-item p {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #000;
    margin-top: 8px;
    max-width: 140px;
    line-height: 1.3;
    font-weight: 700;
}

.countdown-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.countdown-container {
    margin-bottom: 2rem;
}

.hero-btn-area {
    margin-top: 0.75rem;
}

/* Thirukkural */
.thirukkural-section {
    max-width: 700px;
}

.thirukkural-section,
.dashboard-area,
.invitation-btn-section,
footer {
    position: relative;
    z-index: 10;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15)),
        url('../background pics/bg_1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.dashboard-area .section-title,
footer {
    color: #111;
    text-shadow: none;
}

.kural-box {
    text-align: center;
}

.kural-text {
    font-family: 'Tiro Tamil', serif;
    font-size: 1.4rem;
    line-height: 1.8;
    color: #880e4f;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.kural-meaning {
    font-family: 'Tiro Tamil', serif;
    font-size: 1.1rem;
    color: #000;
    /* Darkened */
    line-height: 1.6;
    font-weight: 500;
}

/* Story */
.our-story .story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #000;
    /* Darkened */
    font-weight: 500;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d81b60;
}

/* Memes */
.meme-container {
    margin: 2rem 0;
}

.random-meme-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: 1.5rem;
}

.random-meme-panel .section-title {
    font-family: var(--font-heading);
}

.meme-subtitle {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
    font-family: var(--font-body);
}

.random-meme-btn {
    margin: 0.25rem auto 1.25rem;
}

.random-meme-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.random-meme-img {
    width: min(100%, 440px);
    border-radius: 16px;
    border: 3px solid #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    object-fit: cover;
}

.random-meme-caption {
    font-size: 1.05rem;
    color: #111;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: var(--font-body);
}

.meme-img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.fixed-meme {
    width: 300px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 1rem 0;
}

/* 3D Tilt Cards & Animations */
.tilt-card {
    transition: transform 0.5s ease-out;
    will-change: transform, opacity;
}

.tilt-card:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease;
}

/* Love Destiny */
.destiny-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    max-width: 960px;
    margin: 0 auto !important;
    padding: clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(circle at top, rgba(255, 222, 233, 0.9), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 249, 0.96));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.inner-meme {
    position: absolute;
    top: 2rem;
    width: clamp(100px, 15vw, 150px);
    z-index: 5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border: 3px solid #fff;
    transition: transform 0.3s ease;
}

.inner-meme:hover {
    transform: scale(1.1) rotate(3deg);
    z-index: 10;
}

.destiny-side-left {
    left: 1.5rem;
}

.destiny-side-right {
    right: 1.5rem;
}

.inner-meme img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 992px) {
    .inner-meme {
        position: static;
        width: 180px;
        margin-bottom: 1rem;
    }

    .destiny-side-left {
        order: -2;
    }

    .destiny-side-right {
        order: -1;
    }
}

.destiny-topline {
    margin-bottom: 0.75rem;
    color: #b85c7d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

.destiny-title {
    margin-bottom: 0.6rem;
}

.destiny-subtitle {
    margin-bottom: 2rem;
}

.destiny-header-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 820px;
}

.destiny-person {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.person-label,
.destiny-row-label {
    color: rgba(106, 68, 79, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.person-name {
    display: inline-block;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(216, 27, 96, 0.3);
    font-size: clamp(1.8rem, 3.8vw, 3.6rem);
    color: #7a2946;
    line-height: 1.05;
}

.destiny-heart {
    width: clamp(72px, 11vw, 96px);
    height: clamp(72px, 11vw, 96px);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff9fbd, #d81b60 75%);
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 18px 35px rgba(216, 27, 96, 0.28);
    animation: destinyHeartBeat 1.8s ease-in-out infinite;
}

@keyframes destinyHeartBeat {

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

    28% {
        transform: scale(1.08);
    }

    48% {
        transform: scale(0.96);
    }

    68% {
        transform: scale(1.05);
    }
}

.destiny-flames-board {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.4rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 27, 96, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 18px 45px rgba(135, 31, 68, 0.08);
}

.destiny-letter-row {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem;
}

.destiny-letter-row+.destiny-letter-row {
    margin-top: 1rem;
}

.destiny-name-boxes {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.55rem;
    align-items: center;
    width: 100%;
}

.flame-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    height: 48px;
    background: linear-gradient(180deg, #fff, #fff6fa);
    border: 1px solid rgba(216, 27, 96, 0.18);
    border-radius: 14px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #7c2b4b;
    box-shadow: 0 6px 15px rgba(205, 80, 125, 0.1);
    transition: all 0.45s ease;
    text-transform: uppercase;
}

.flame-letter.space {
    background: transparent;
    border: none;
    box-shadow: none;
    min-width: 18px;
}

@media (max-width: 768px) {
    .destiny-panel {
        padding: 1rem 0.5rem !important;
        /* Smaller padding = Bigger card content */
    }

    .destiny-flames-board {
        padding: 1rem 8px;
        width: 100%;
    }

    .destiny-name-boxes {
        gap: 1px;
        min-width: 0;
        width: 100%;
        justify-content: space-around;
        /* Spread letters evenly */
    }

    .flame-letter {
        flex: 1 1 0;
        min-width: 0;
        /* Allow infinite shrinking to fit */
        max-width: 40px;
        height: 32px;
        border-radius: 4px;
        font-size: clamp(0.6rem, 2.8vw, 0.9rem);
        padding: 0;
    }

    .flame-letter.space {
        flex: 0 1 4px;
        min-width: 2px;
    }
}

.flame-letter.pending {
    animation: letterFlicker 0.7s ease;
}

@keyframes letterFlicker {
    0% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-4px) scale(1.08);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.flame-letter.cancelled {
    position: relative;
    background: rgba(255, 228, 236, 0.8);
    border-color: rgba(216, 27, 96, 0.15);
    color: rgba(216, 27, 96, 0.46);
    text-decoration: line-through;
    text-decoration-color: #e91e63;
    text-decoration-thickness: 3px;
    transform: scale(0.92) rotate(-4deg);
    opacity: 0.65;
}

.flame-letter.survivor {
    background: linear-gradient(180deg, #fff8fb, #ffffff);
    border-color: rgba(216, 27, 96, 0.3);
    box-shadow: 0 12px 24px rgba(216, 27, 96, 0.12);
}

.destiny-status {
    min-height: 1.6em;
    margin: 1.4rem 0 0.9rem;
    color: #ad466d;
    font-size: 1rem;
}

.destiny-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    margin: 1rem 0 1.4rem;
}

.destiny-loading[hidden],
.destiny-reveal-stage[hidden] {
    display: none !important;
}

.destiny-loading-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid rgba(216, 27, 96, 0.12);
    border-top-color: #ff4081;
    animation: destinySpin 1s linear infinite;
}

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

.loading-text {
    font-size: 1.2rem;
    color: #ff4081;
    font-weight: 700;
    letter-spacing: 0.08em;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.45;
        transform: translateY(1px);
    }

    to {
        opacity: 1;
        transform: translateY(-1px);
    }
}

.heartbeat-container {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto 1rem;
    height: 132px;
}

.heartbeat-svg {
    width: 100%;
    height: 100%;
}

.heartbeat-path {
    fill: none;
    stroke: #ff4081;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#heartbeatGlow);
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.heartbeat-container.animate .heartbeat-path {
    animation: drawHeartbeat 2s ease-in-out forwards, pathPulse 0.45s ease-in-out 1.7s 2;
}

@keyframes drawHeartbeat {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pathPulse {

    0%,
    100% {
        stroke-width: 4;
    }

    50% {
        stroke-width: 6;
    }
}

.cupid-arrow {
    position: absolute;
    top: 50%;
    left: -64px;
    width: 64px;
    height: 20px;
    transform: translateY(-50%);
    opacity: 0;
}

.arrow-shaft {
    position: absolute;
    top: 8px;
    left: 0;
    right: 15px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #b46a34, #d28a4d);
}

.arrow-head {
    position: absolute;
    top: 2px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 15px solid #f06292;
}

.arrow-heart {
    position: absolute;
    left: -12px;
    top: -7px;
    color: #ff5d8f;
    font-size: 1.25rem;
}

.heartbeat-container.animate .cupid-arrow {
    animation: arrowFly 2s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
}

@keyframes arrowFly {
    0% {
        left: -64px;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    100% {
        left: calc(100% + 16px);
        opacity: 1;
    }
}

.destiny-result-label {
    margin-bottom: 0.3rem;
    color: #b35a7f;
    font-size: 1rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.final-destiny-result {
    opacity: 0;
    transform: translateY(18px) scale(0.82);
    font-size: clamp(3.5rem, 8vw, 6rem);
    color: #d81b60;
    margin-top: 0.3rem;
    text-shadow: 0 10px 28px rgba(255, 64, 129, 0.28);
    transition: all 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.final-destiny-result.tamil-result {
    font-family: var(--font-tamil);
    font-size: clamp(2.5rem, 7vw, 4rem);
    letter-spacing: 0.04em;
}

.final-destiny-result.revealed {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

@media (max-width: 768px) {
    .destiny-header-layout {
        flex-direction: column;
    }

    .destiny-letter-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .destiny-row-label,
    .person-label {
        letter-spacing: 0.18em;
    }

    .person-name {
        font-size: clamp(1.7rem, 8vw, 2.6rem);
    }
}

/* Events Grid */
.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.event-card {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
}

.event-card h3 {
    color: #d81b60;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.event-date,
.event-time,
.event-venue {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-desc {
    font-size: 0.95rem;
    color: #111;
    /* Darkened */
    line-height: 1.6;
    font-weight: 500;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    border: 5px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Location Section - Boarding Pass Style */
.bp-ticket {
    max-width: 900px;
    margin: 2rem auto;
    position: relative;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border: none !important;
    display: flex;
    box-shadow: 0 20px 40px rgba(255, 105, 180, 0.15) !important;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.strip-gradient {
    background: linear-gradient(135deg, #d81b60, #ff4081);
    color: white;
    padding: 0.75rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.bp-main {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.bp-content {
    padding: 2rem;
}

.bp-passenger {
    font-size: 2.2rem;
    color: #d81b60;
    font-family: var(--font-heading);
    margin-bottom: 2rem;
}

.bp-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.bp-city {
    display: flex;
    flex-direction: column;
}

.bp-city.text-right {
    text-align: right;
}

.bp-city-code {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ff4081;
    line-height: 1;
}

.bp-city-name {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    margin-top: 5px;
}

.bp-flight-path {
    flex: 1;
    position: relative;
    margin: 0 1rem;
    height: 2px;
    background: repeating-linear-gradient(to right, #ff80ab, #ff80ab 6px, transparent 6px, transparent 12px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-plane {
    position: absolute;
    font-size: 1.5rem;
    color: #ff4081;
    animation: planeFly 4s infinite linear;
}

@keyframes planeFly {
    0% {
        left: 10%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 90%;
        opacity: 0;
    }
}

.bp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.bp-data {
    display: flex;
    flex-direction: column;
}

.bp-label {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.bp-value {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
}

.bp-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: auto;
}

.barcode-lines {
    width: 60%;
    height: 40px;
    background: repeating-linear-gradient(to right, #333, #333 3px, transparent 3px, transparent 6px, #333 6px, #333 8px, transparent 8px, transparent 10px, #333 10px, #333 15px, transparent 15px, transparent 18px);
    margin-bottom: 8px;
}

.barcode-serial {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: #666;
}

.bp-divider {
    width: 2px;
    position: relative;
    background: repeating-linear-gradient(to bottom, #ccc, #ccc 10px, transparent 10px, transparent 20px);
}

.notch {
    position: absolute;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 50%;
    left: -14px;
}

.notch-top {
    top: -15px;
    box-shadow: inset 0 -4px 5px rgba(255, 105, 180, 0.05);
}

.notch-bottom {
    bottom: -15px;
    box-shadow: inset 0 4px 5px rgba(255, 105, 180, 0.05);
}

.bp-stub {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 240, 245, 0.5);
    border-radius: 0 16px 16px 0;
}

.bp-stub-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.bp-qr-code {
    width: 140px;
    height: 140px;
    display: block !important;
    visibility: visible !important;
    border-radius: 12px;
    padding: 6px;
    background: #f0f0f0;
    /* Light gray placeholder during load */
    border: 1px solid rgba(255, 64, 129, 0.2);
    box-shadow: 0 4px 12px rgba(255, 64, 129, 0.1);
    transition: transform 0.3s;
}

.bp-qr-code:hover {
    transform: scale(1.05);
}

.bp-meme {
    width: 120px;
    height: 80px;
    object-fit: cover;
    margin: 1.5rem 0;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bp-map-btn {
    display: inline-block;
    background: #d81b60;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
    transition: all 0.3s;
}

.bp-map-btn:hover {
    background: #ff4081;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.4);
}

@media (max-width: 768px) {
    .bp-ticket {
        flex-direction: column;
    }

    .bp-stub {
        border-radius: 0 0 16px 16px;
    }

    .bp-divider {
        width: 100%;
        height: 2px;
        background: repeating-linear-gradient(to right, #ccc, #ccc 10px, transparent 10px, transparent 20px);
    }

    .notch {
        display: none;
    }

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

    .bp-meme {
        display: none;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: 5vh auto;
    width: 90%;
    max-width: 900px;
    position: relative;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

#invitation-img,
#fun-video {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

/* Animations */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Pigeons */
.pigeon {
    position: fixed;
    font-size: 2rem;
    z-index: -1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.pigeon-1 {
    top: 20%;
    left: -50px;
    animation: flyRight 15s linear infinite;
}

.pigeon-2 {
    top: 40%;
    right: -50px;
    animation: flyLeft 20s linear infinite;
}

@keyframes flyRight {
    0% {
        transform: translateX(0) translateY(0) scaleX(-1);
    }

    50% {
        transform: translateX(50vw) translateY(-20px) scaleX(-1);
    }

    100% {
        transform: translateX(110vw) translateY(10px) scaleX(-1);
    }
}

@keyframes flyLeft {
    0% {
        transform: translateX(0) translateY(0);
    }

    50% {
        transform: translateX(-50vw) translateY(30px);
    }

    100% {
        transform: translateX(-110vw) translateY(-10px);
    }
}

/* Hearts */
.heart {
    position: fixed;
    bottom: -50px;
    font-size: 1.5rem;
    color: #ff4081;
    z-index: 0;
    animation: floatUp 5s ease-in infinite;
    opacity: 0.6;
    text-shadow: 0 0 10px rgba(255, 64, 129, 0.5);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Dashboard Nav / Top Menu */
.dashboard-nav {
    position: sticky;
    top: 20px;
    z-index: 500;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.9);
}

.nav-btn.active {
    background: linear-gradient(135deg, #ff80ab, #ff4081);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 64, 129, 0.5);
    transform: scale(1.1);
}

.dash-section {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: -80px auto 5rem auto;
    /* Offset for sticky nav scrolling & centering */
    padding-top: 80px;
}

.dash-section .glass-panel,
.dashboard-nav.glass-panel {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* Title Memes */
.title-memes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.title-meme-img {
    flex: 1 1 300px;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.qr-code-img {
    max-width: 100%;
    height: auto;
}

/* Media Queries */
@media (max-width: 1024px) {
    .couple-names {
        font-size: 4rem;
    }

    .sticky-scroll-section {
        height: 360vh;
    }

    .couple-stage {
        height: min(52vh, 500px);
    }

    .dashboard-nav {
        top: 12px;
    }

    .dash-section {
        margin: -64px auto 4rem auto;
        padding-top: 64px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding: 4.5rem 0.85rem 3rem;
    }

    .landing-hero-content {
        padding: 1.25rem;
        border-radius: 24px;
    }

    .sticky-scroll-section {
        height: 320vh;
    }

    .sticky-scroll-pin {
        padding: 1.25rem 0.75rem 2rem;
    }

    .couple-stage {
        height: min(54vh, 460px);
    }

    .character {
        width: clamp(145px, 40vw, 230px);
    }

    .groom-character {
        width: clamp(220px, 60vw, 345px);
    }

    .scroll-copy-spacer {
        min-height: 120px;
    }

    .corner-kural {
        width: min(500px, 86vw);
        top: 58%;
        padding: 0.7rem 0.7rem;
    }

    .floating-controls {
        top: 12px;
        right: 12px;
    }

    .btn-icon,
    .btn-lang {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        padding: 0.6rem;
    }

    .hero-section {
        min-height: calc(100vh - 1rem);
        justify-content: flex-start;
        padding-top: 4.5rem;
        padding-bottom: 1.5rem;
    }

    .couple-names {
        font-size: 2.8rem;
        margin-top: 0;
    }

    .wedding-date {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .glass-panel {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .primary-btn {
        width: min(100%, 320px);
        font-size: 1rem;
        padding: 0.9rem 1.2rem;
    }

    .countdown {
        padding: 1rem;
        gap: 0.75rem;
    }

    .cd-item span {
        font-size: 1.6rem;
    }

    .countdown-title {
        font-size: 1rem;
    }

    .dashboard-nav {
        position: static;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .nav-btn {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 120px;
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }

    .dash-section {
        margin: 0 auto 2.5rem auto;
        padding-top: 0;
    }

    .events-grid {
        gap: 1rem;
    }

    .event-card {
        min-width: 0;
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .fixed-meme {
        width: min(100%, 260px);
    }

    .modal-content {
        width: 94%;
        margin: 5vh auto;
    }

    .qr-code-img {
        width: min(220px, 100%) !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .loader-title {
        font-size: 2rem;
    }

    .landing-hero {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }

    .landing-hero-content {
        border-radius: 20px;
    }

    .sticky-scroll-section {
        height: 300vh;
    }

    .scroll-copy {
        padding-top: 0.25rem;
    }

    .scroll-subcopy {
        font-size: 0.95rem;
    }

    .couple-stage {
        height: min(48vh, 360px);
    }

    .character {
        width: clamp(120px, 36vw, 180px);
    }

    .groom-character {
        width: clamp(180px, 54vw, 270px);
    }

    .scroll-copy-spacer {
        min-height: 100px;
    }

    .corner-kural {
        width: 90vw;
        top: 62%;
        padding: 0.8rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.88);
    }

    .corner-kural-text {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.2rem;
    }

    .corner-kural-meaning {
        display: block;
        font-size: 0.65rem;
        line-height: 1.3;
        color: #444;
    }

    .hero-section {
        min-height: auto;
    }

    .countdown {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
    }

    .cd-item span {
        font-size: 1.4rem;
    }

    .nav-btn {
        flex: 1 1 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;

        .modal-content {
            margin: 5vh auto;
        }
    }


}

/* End of Mobile Media Query */

/* Scratch Card Feature - Universal Styles */
.scratch-card-section {
    padding: 3rem 1rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
}

.scratch-hint {
    color: #c2185b;
    font-weight: 700;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

.scratch-card-container {
    position: relative;
    width: 380px;
    height: 160px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(216, 27, 96, 0.15);
    border: 6px solid #ff4081;
    /* Bold Pink Border for Web */
    margin: 0 auto;
}

.scratch-card-reveal {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    text-align: center;
    padding: 1.5rem;
}

.delzo-slogan {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #c2185b;
    margin: 0;
    font-weight: 700;
}

.delzo-brand {
    font-size: 0.85rem;
    color: #c2185b;
    margin-top: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #ff4081;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: crosshair;
    touch-action: none;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Link Styles */
.delzo-brand-link {
    text-decoration: none;
    transition: transform 0.2s ease;
    display: inline-block;
}

.delzo-brand-link:hover {
    transform: scale(1.05);
}

.site-footer .footer-inner {
    border-radius: 28px;
}

@media (min-width: 769px) {
    .site-footer {
        background: #ffffff !important;
        background-image: none !important;
        background-attachment: scroll;
    }

    .site-footer .footer-inner {
        background: #ffffff !important;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 15px 45px rgba(255, 64, 129, 0.12);
        padding: 32px 134px; /* Web View Only */
        margin: 32px 134px;
        width: auto; /* Take up available space between margins */
        max-width: none;
        border: 3px solid #ff4081 !important;
    }
}

.footer-tagline {
    font-size: 1.3rem;
    color: #222;
    margin-bottom: 0.75rem;
    font-family: 'Tiro Tamil', 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.footer-credit {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.developer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.dev-link {
    text-decoration: none;
    color: #ff4081;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.25rem;
    background: rgba(255, 64, 129, 0.05);
    border: 1px solid rgba(255, 64, 129, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
}

.dev-link:hover {
    color: white;
    background: #ff4081;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 64, 129, 0.25);
    border-color: #ff4081;
}

@media (max-width: 768px) {
    .developer-links {
        gap: 0.8rem;
    }

    .dev-link {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .developer-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dev-link {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .scratch-card-container {
        width: min(320px, 90vw);
        height: 140px;
        border-width: 3px;
        border-radius: 18px;
    }

    .delzo-brand {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .scratch-hint {
        font-size: 0.95rem;
    }
}
}
}
