
/* =========================
   1. BASIC SETTINGS
========================= */

:root {
    --gold: #e8c68d;
    --gold-light: #f5dfb9;
    --cream: #fff6e9;
    --muted: #d9c6bd;
    --background: #21151d;
    --card: rgba(255, 255, 255, 0.045);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--cream);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

body.lightbox-open {
    overflow: hidden;
}


/* =========================
   2. BACKGROUND
========================= */

.background-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(137, 65, 79, 0.20),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(191, 139, 77, 0.13),
            transparent 35%
        );
}

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    bottom: -20px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.35;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {

    from {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    to {
        transform: translateY(-110vh);
        opacity: 0;
    }

}


/* =========================
   3. MAIN EXPERIENCE
========================= */

.experience {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: 30px 22px 60px;
}

.header {
    width: min(850px, 100%);
    margin: 0 auto 35px;
    text-align: center;
}

.top-label {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 4px;
    font-weight: 500;
    margin-bottom: 15px;
}


/* =========================
   4. MUSIC TEXT
========================= */

.music-note {
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-style: italic;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}


/* =========================
   5. SLIDE INDICATORS
========================= */

.slide-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin: 22px auto 0;
}

.indicator {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: rgba(245, 223, 185, 0.25);
    border: 1px solid rgba(245, 223, 185, 0.35);

    transition:
        width 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease,
        transform 0.4s ease;
}

.indicator.active {
    width: 24px;
    border-radius: 20px;

    background: var(--gold);
    border-color: var(--gold);

    box-shadow:
        0 0 10px rgba(232, 198, 141, 0.45);

    transform: scale(1.05);
}


/* =========================
   6. SLIDES
========================= */

.slide {
    display: none;
    width: 100%;
    min-height: 75vh;
    animation: slideAppear 0.8s ease;
}

.slide.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes slideAppear {

    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.slide-content {
    width: min(850px, 100%);
    margin: 0 auto;
    text-align: center;
    padding: 15px 0 30px;
}

.eyebrow {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1,
h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--cream);
    line-height: 1.05;
}

h1 {
    font-size: clamp(48px, 8vw, 78px);
    margin-bottom: 22px;
}

h2 {
    font-size: clamp(42px, 7vw, 64px);
    margin-bottom: 18px;
}

h1 span,
h2 span {
    color: var(--gold);
    font-style: italic;
}

.description {
    width: min(620px, 100%);
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 300;
    line-height: 2;
}

.quote {
    width: min(600px, 100%);
    margin: 0 auto 30px;
    color: var(--gold-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    font-style: italic;
    line-height: 1.6;
}


/* =========================
   7. DIYA ANIMATION
========================= */

.diya {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 35px auto 40px;
}

.flame {
    position: absolute;
    width: 19px;
    height: 34px;
    left: 41px;
    top: 4px;

    border-radius: 50% 50% 45% 45%;

    background: linear-gradient(
        #fff3b0,
        #f3a33c,
        #df6634
    );

    box-shadow: 0 0 25px rgba(255, 179, 79, 0.65);

    animation: flicker 1.2s ease-in-out infinite alternate;
}

@keyframes flicker {

    from {
        transform: scale(1) rotate(-4deg);
    }

    to {
        transform: scale(1.1) rotate(4deg);
    }

}

.diya-bowl {
    position: absolute;
    width: 75px;
    height: 35px;
    left: 12px;
    top: 39px;

    background: linear-gradient(#d89b58, #9c542f);

    border-radius: 10px 10px 50% 50%;
}

.diya-base {
    position: absolute;
    width: 52px;
    height: 8px;
    left: 24px;
    top: 74px;

    border-radius: 50%;
    background: #a65c39;
}


/* =========================
   8. PHOTO GALLERY
   Applies to ALL six photos
========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 35px;

    width: min(690px, 100%);
    margin: 45px auto 40px;

    align-items: start;
}


/* Polaroid-style frames */

.photo-item {
    min-width: 0;
    margin: 0;
    padding: 10px 10px 14px;

    background: #e9dfd3;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.18),
        0 2px 5px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* Alternating natural tilt */

.photo-item:nth-child(odd) {
    transform: rotate(-2.5deg);
}

.photo-item:nth-child(even) {
    transform: rotate(2.5deg);
}


/* Hover movement */

.photo-item:nth-child(odd):hover {
    transform: rotate(0deg) translateY(-5px);
}

.photo-item:nth-child(even):hover {
    transform: rotate(0deg) translateY(-5px);
}

.photo-item:hover {
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.23),
        0 3px 7px rgba(0, 0, 0, 0.10);

    z-index: 2;
}


/* Photograph area */

.photo-open {
    display: block;
    width: 100%;
    height: 280px;

    padding: 0;
    overflow: hidden;

    border: none;
    border-radius: 2px;

    background: #dcd2c7;

    cursor: pointer;
    appearance: none;
}

.photo-open img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transition: transform 0.4s ease;
}

.photo-item:hover .photo-open img {
    transform: scale(1.02);
}


/* Photo captions */

.photo-item figcaption {
    padding: 14px 5px 2px;

    color: #65564d;

    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;

    line-height: 1.4;
    text-align: center;
}


/* =========================
   9. NAVIGATION BUTTONS
========================= */

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;
    margin-top: 30px;
}

.nav-button {
    padding: 13px 23px;

    border: 1px solid var(--gold);
    border-radius: 30px;

    background: var(--gold);
    color: #2b1b1b;

    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition: all 0.3s ease;
}

.nav-button:hover {
    background: transparent;
    color: var(--gold-light);
    transform: translateY(-2px);
}

.nav-button.secondary {
    background: transparent;
    color: var(--gold-light);
}

.nav-button.secondary:hover {
    background: var(--gold);
    color: #2b1b1b;
}


/* =========================
   10. FINAL SLIDE
========================= */

.final-content {
    max-width: 700px;
}

.final-message {
    margin-top: 25px;
}

.final-heart {
    margin: 25px 0;

    color: var(--gold);
    font-size: 40px;

    animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }

}

.signature {
    margin-bottom: 35px;

    color: var(--gold-light);

    font-family: 'Cormorant Garamond', serif;
    font-size: 25px;
    font-style: italic;
}


/* =========================
   11. FINAL SPECIAL PHOTO
========================= */

.final-photo {
    width: min(340px, 85%);
    margin: 28px auto 25px;
}

.final-photo .photo-open {
    height: 260px;
}

.final-photo .photo-item {
    transform: rotate(-1.5deg);
}

.final-photo .photo-item:hover {
    transform: rotate(0deg) translateY(-5px);
}


/* =========================
   12. PHOTO POPUP
========================= */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 25px;

    background: rgba(12, 8, 12, 0.94);
    backdrop-filter: blur(12px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;

    width: min(900px, 100%);
    max-height: 92vh;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 15px;
}

.lightbox-content img {
    display: block;

    max-width: 100%;
    max-height: 76vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-content p {
    color: var(--gold-light);

    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;

    text-align: center;
    line-height: 1.5;

    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;

    width: 36px;
    height: 36px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: white;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    transition: 0.3s ease;
}

.lightbox-close:hover {
    background: var(--gold);
    color: #24151b;
}


/* =========================
   13. RESPONSIVE DESIGN
========================= */

@media (max-width: 650px) {

    .experience {
        padding: 22px 16px 40px;
    }

    .header {
        margin-bottom: 25px;
    }

    .music-note {
        font-size: 13px;
    }

    .slide-indicators {
        gap: 11px;
        margin-top: 18px;
    }

    .slide {
        min-height: 75vh;
    }

    .slide-content {
        padding-top: 20px;
    }

    .description {
        font-size: 12px;
        line-height: 1.9;
    }

    .gallery {
        gap: 19px;
        margin: 30px auto;
    }

    .photo-item {
        padding: 7px 7px 11px;
    }

    .photo-item:nth-child(odd) {
        transform: rotate(-2deg);
    }

    .photo-item:nth-child(even) {
        transform: rotate(2deg);
    }

    .photo-open {
        height: 190px;
    }

    .photo-item figcaption {
        padding: 10px 3px 2px;
        font-size: 13px;
    }

    .navigation {
        gap: 10px;
    }

    .nav-button {
        padding: 11px 17px;
        font-size: 10px;
    }

    .quote {
        font-size: 19px;
    }

    .final-photo {
        width: min(290px, 85%);
        margin: 22px auto;
    }

    .final-photo .photo-open {
        height: 210px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox-content img {
        max-height: 72vh;
    }

    .lightbox-content p {
        font-size: 18px;
    }

}


/* Smaller mobile screens */

@media (max-width: 380px) {

    .photo-open {
        height: 155px;
    }

    .photo-item figcaption {
        font-size: 11px;
    }

    .nav-button {
        padding: 10px 13px;
    }

}


/* =========================
   14. REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

}
