/* CSS Reset & Variables */
:root {
    --cream: #F4EFE6; /* Vintage parchment */
    --soft-beige: #E6DCD1;
    --blush-pink: #d9cab3;
    --gold: #2C4230; /* Used for borders/icons, now deep green */
    --deep-green: #2C4230; /* Main dark bg */
    --button-bg: #36513A; /* Lighter vintage green for buttons */
    
    --dark-text: #3B3A36;
    --light-text: #5f5e5a;

    --font-heading: 'Cormorant Garamond', serif;
    --font-script: 'Alex Brush', cursive;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--deep-green);
    color: var(--dark-text);
    overflow-x: hidden;
    line-height: 1.6;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-padding {
    padding: 80px 0;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--deep-green);
    color: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.splash-subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    color: #e6c8a8;
}

.splash-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
}

.splash-title .ampersand {
    font-family: var(--font-script);
    color: #e6c8a8;
    font-size: 1.2em;
    vertical-align: middle;
}

.splash-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.btn-primary {
    margin-top: 20px;
    padding: 15px 40px;
    background-color: #e6c8a8;
    color: var(--deep-green);
    border: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #fcebc9;
}

/* Audio Control */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50px; /* Pill/Circle */
    background-color: var(--button-bg);
    border: none;
    color: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

.music-toggle:hover {
    background-color: var(--deep-green);
    transform: scale(1.05);
}

.music-toggle svg {
    width: 20px;
    height: 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('assets/prewedding ballloontree-23.jpg');
    background-size: cover;
    background-position: center 10%; /* Shift image down slightly to show more faces */
    z-index: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(44, 66, 48, 0.4) 0%, rgba(44, 66, 48, 0.7) 100%);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(244, 239, 230, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

#particle-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}
.particle {
    position: absolute;
    width: 18px;
    height: 18px;
    background-image: url('assets/petal.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    pointer-events: none;
    filter: blur(1px) sepia(0.5); /* Antique petal feel */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--cream);
    margin-top: 25vh; /* Push text down to rest on their dark shirts, clearing their faces */
}

.hero-subtitle {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-title .ampersand {
    font-family: var(--font-script);
    color: #e6c8a8; /* warm goldish accent */
    font-size: 4rem;
    vertical-align: middle;
}

.hero-date {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 4px;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: var(--cream);
    opacity: 0.5;
}

/* VINTAGE ARCH WRAPPER */
.vintage-wrapper {
    background-color: var(--cream);
    border-radius: 40vw 40vw 0 0; /* Massive top arch */
    margin: -100px auto 0; /* Overlaps hero section */
    position: relative;
    z-index: 5;
    max-width: 1200px;
    box-shadow: 0 -20px 50px rgba(0,0,0,0.3);
    padding-top: 60px;
    padding-bottom: 80px;
}

/* All sections inside wrapper are transparent to show the cream arch */
.intro, .couple, .event-details, .journey, .gallery, .invitation-text {
    background-color: transparent;
}

/* Intro Section */
.intro-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-style: italic;
    font-weight: 400;
    color: var(--dark-text);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.floral-divider {
    width: 80px;
    margin: 40px auto 0;
    opacity: 0.6;
    fill: var(--deep-green);
}

/* Shared Typography Styles for Sections */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 8px; /* Elegant vintage small-caps tracking */
}

.section-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--light-text);
    margin-bottom: 40px;
}

/* Image Parallax Base Logic */
.couple-img, .masonry-item img, .gallery-item img {
    height: 125%; /* Mathematical fit for 10% GSAP scrub without breaking bounds */
    width: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    will-change: transform;
}

/* Couple Section */
.couple-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    position: relative;
}

.couple-divider {
    position: relative;
    z-index: 5;
}

.ampersand-large {
    font-family: var(--font-script);
    color: var(--button-bg);
    font-size: 4rem;
    line-height: 1;
}

.couple-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.img-wrapper {
    width: 240px;
    height: 310px;
    border-radius: 120px 120px 0 0; /* Arched photo frames */
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08); /* slightly deeper shadow on cream */
    overflow: hidden;
}

.couple-card:hover .img-wrapper img {
    transform: scale(1.05); /* Hover zoom scales inside the arch */
}

.couple-info .name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--deep-green);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.parents-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.parent-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--soft-beige);
}

.parents-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    line-height: 1.6;
}

.parents-info span {
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--dark-text);
    font-size: 1.1rem;
}

/* Event Details Section */
.event-card {
    background: var(--soft-beige);
    border-radius: 300px 300px 20px 20px; /* Big arched event card */
    padding: 100px 40px 60px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
}

.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.event-item .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: transparent;
    border: 1px solid var(--button-bg); /* subtle line boundaries */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-green);
}

.event-item .icon svg {
    width: 24px;
    height: 24px;
}

.event-item h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-item p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Journey / Masonry Gallery */
.masonry-grid {
    column-count: 2;
    column-gap: 10px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 100px 100px 20px 20px; /* arched tops for all photos */
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);    
}

.masonry-item:hover img {
    filter: brightness(1.1);
}

/* Premium Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);    
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.2));
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(44, 66, 48, 0.15); /* Vintage deep green wash */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Invitation Text */
.malayalam-box {
    background: #fff;
    padding: 60px 40px;
    border-radius: 200px 200px 10px 10px; /* Arch theme */
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--soft-beige);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.malayalam-title {
    font-family: 'Anek Malayalam', sans-serif, var(--font-heading);
    font-size: 1.8rem;
    color: var(--deep-green);
    margin-bottom: 20px;
}

.malayalam-content {
    font-family: 'Anek Malayalam', sans-serif, var(--font-body);
    font-size: 1.1rem;
    color: var(--light-text);
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--deep-green);
    color: var(--cream);
    padding: 100px 0 60px;
    position: relative;
    z-index: 1; /* stays beneath the wrapper */
}

footer h2 {
    font-family: var(--font-script);
    font-size: 3rem;
    color: #e6c8a8;
    font-weight: 300;
    margin-bottom: 10px;
}

.footer-names {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    letter-spacing: 4px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-credit {
    font-size: 0.8rem;
    color: rgba(244, 239, 230, 0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Floral Decorations & Parallax */
.parallax-section {
    position: relative;
}

.floral-corner {
    position: absolute;
    width: 150px;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.1));
    will-change: transform;
}

.floral-corner.top-left {
    top: -20px;
    left: -10px;
    transform: rotate(0deg);
}

.floral-corner.top-right {
    top: -20px;
    right: -10px;
    transform: scaleX(-1);
}

.floral-corner.bottom-right {
    bottom: -20px;
    right: -10px;
    transform: scaleX(-1) scaleY(-1);
}

.fade-element {
    opacity: 0; /* Handled by GSAP */
    will-change: transform, opacity;
}

/* --------------------------------------
   MOBILE-FIRST MEDIA QUERIES (Min-Width)
   -------------------------------------- */

@media (min-width: 768px) {
    .section-padding { padding: 100px 0; }
    .hero-title { font-size: 4rem; }
    .hero-title .ampersand { font-size: 5rem; }
    .img-wrapper {
        width: 300px;
        height: 400px;
        border-radius: 150px 150px 0 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .gallery-item {
        height: 320px;
    }
    .masonry-grid {
        column-count: 2;
        column-gap: 20px;
    }
    .malayalam-box {
        padding: 80px 60px;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .vintage-wrapper {
        border-radius: 30vw 30vw 0 0;
    }
}

@media (min-width: 992px) {
    .hero-bg {
        background-position: center; /* Restore true center for desktop */
    }
    .hero-content {
        margin-top: 0; /* Center hero text vertically natively */
    }
    .section-padding { padding: 120px 0; }
    .hero-title { font-size: 5rem; }
    .hero-title .ampersand { font-size: 6rem; }
    .vintage-wrapper {
        border-radius: 500px 500px 0 0; /* Exact arch on desktop */
    }
    .couple-container {
        flex-direction: row;
        gap: 40px;
    }
    .img-wrapper {
        width: 320px;
        height: 420px;
        border-radius: 200px 200px 0 0;
    }
    .event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .masonry-grid {
        column-count: 3;
    }
    .gallery-item {
        height: 450px;
    }
}
