

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');


* {
    box-sizing: border-box;
}
.back-home {
    position: fixed;
    top: 25px;
    left: 30px;

    z-index: 1000;

    padding: 10px 20px;

    color: white;
    text-decoration: none;

    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;

    border: 1px solid #f2c94c;
    border-radius: 30px;

    background: rgba(5, 7, 13, 0.75);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: all 0.3s ease;
}

.back-home:hover {
    color: #05070d;
    background: #f2c94c;

    transform: translateX(-3px);
    box-shadow: 0 0 20px rgba(242, 201, 76, 0.35);
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

:root {
    --story-bg: #05070d;
    --story-bg-soft: #0a0f1c;

    --story-white: #ffffff;
    --story-muted: #aeb4c0;

    --story-gold: #f2c94c;
    --story-gold-soft: rgba(242, 201, 76, 0.25);

    --story-line: rgba(242, 201, 76, 0.35);

    --story-title-font: "Cinzel", "EB Garamond", serif;
    --story-body-font: "Inter", "Montserrat", Arial, sans-serif;
}


/* =====================================================
   MAIN SECTION
   ===================================================== */

.my-story {
    position: relative;

    width: 100%;
    min-height: 100vh;

    padding: 150px 6vw;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(25, 40, 75, 0.35),
            transparent 45%
        ),
        var(--story-bg);

    color: var(--story-white);

    overflow: hidden;
}




.my-story::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    top: 10%;
    left: 50%;

    transform: translateX(-50%);

    background: rgba(242, 201, 76, 0.035);

    filter: blur(100px);

    pointer-events: none;
}


/* =====================================================
   HEADER
   ===================================================== */

.story-header {
    position: relative;

    max-width: 850px;

    margin: 0 auto 150px;

    text-align: center;

    z-index: 2;
}


.story-eyebrow {
    display: block;

    margin-bottom: 20px;

    color: var(--story-gold);

    font-family: var(--story-body-font);

    font-size: 0.75rem;

    font-weight: 600;

    letter-spacing: 0.35em;

    text-transform: uppercase;
}


.story-header h2,
.story-ending h2 {

    margin: 0;

    color: var(--story-white);

    font-family: var(--story-title-font);

    font-size: clamp(3rem, 7vw, 6.5rem);

    font-weight: 500;

    letter-spacing: 0.03em;

    line-height: 1;
}


.story-header p {

    max-width: 650px;

    margin: 30px auto 0;

    color: var(--story-muted);

    font-family: var(--story-body-font);

    font-size: 1rem;

    font-weight: 300;

    line-height: 1.9;
}


/* =====================================================
   TIMELINE
   ===================================================== */

.story-timeline {

    position: relative;

    max-width: 1200px;

    margin: 0 auto;
}




.story-timeline::before {

    content: "";

    position: absolute;

    top: 0;
    bottom: 0;

    left: 50%;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--story-line) 5%,
            var(--story-line) 95%,
            transparent
        );

    transform: translateX(-50%);
}


/* =====================================================
   CHAPTER
   ===================================================== */

.story-chapter {

    position: relative;

    width: 100%;

    margin-bottom: 180px;
}


/* =====================================================
   MARKER
   ===================================================== */

.chapter-marker {

    position: absolute;

    top: 30px;

    left: 50%;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateX(-50%);

    border: 1px solid var(--story-gold);

    border-radius: 50%;

    background: var(--story-bg);

    box-shadow:
        0 0 0 8px var(--story-bg),
        0 0 25px rgba(242, 201, 76, 0.2);

    z-index: 5;
}


.chapter-marker span {

    color: var(--story-gold);

    font-family: var(--story-body-font);

    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.05em;
}


/* =====================================================
   CONTENT
   ===================================================== */

.chapter-content {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;

    width: 100%;
}


.chapter-content.reverse {

    direction: rtl;
}


.chapter-content.reverse > * {

    direction: ltr;
}


/* =====================================================
   IMAGE
   ===================================================== */

.story-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.story-image:hover img {
    transform: scale(1.05);
}


/* ==============================
   FULL-SCREEN PHOTO LIGHTBOX
================================ */

.photo-lightbox {
    display: none;

    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.95);

    z-index: 9999;

    align-items: center;
    justify-content: center;

    padding: 30px;

    box-sizing: border-box;
}

.photo-lightbox.active {
    display: flex;
}

.photo-lightbox img {
    max-width: 95vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}



.photo-lightbox .close-button {
    position: absolute;

    top: 20px;
    right: 30px;

    font-size: 45px;
    font-weight: 300;

    color: white;

    cursor: pointer;

    z-index: 10000;

    transition: 0.3s;
}

.photo-lightbox .close-button:hover {
    color: #f2c94c;
}


/* =====================================================
   TEXT
   ===================================================== */

.chapter-text {

    max-width: 500px;
}


.chapter-number {

    display: block;

    margin-bottom: 15px;

    color: var(--story-gold);

    font-family: var(--story-body-font);

    font-size: 0.7rem;

    font-weight: 600;

    letter-spacing: 0.3em;
}


.chapter-text h3 {

    margin: 0;

    color: var(--story-white);

    font-family: var(--story-title-font);

    font-size: clamp(2rem, 4vw, 3.5rem);

    font-weight: 500;

    line-height: 1.15;
}


/* =====================================================
   GOLD LINE
   ===================================================== */

.chapter-line {

    display: block;

    width: 55px;

    height: 1px;

    margin: 25px 0;

    background: var(--story-gold);
}


.chapter-text p {

    margin: 0 0 20px;

    color: var(--story-muted);

    font-family: var(--story-body-font);

    font-size: 0.95rem;

    font-weight: 300;

    line-height: 1.9;
}


/* =====================================================
   ENDING
   ===================================================== */

.story-ending {

    max-width: 900px;

    margin: 100px auto 0;

    text-align: center;
}


.story-ending p {

    max-width: 600px;

    margin: 35px auto;

    color: var(--story-muted);

    font-family: var(--story-body-font);

    font-size: 1rem;

    font-weight: 300;

    line-height: 1.9;
}


.ending-line {

    width: 100px;

    height: 1px;

    margin: 40px auto 0;

    background: var(--story-gold);

    box-shadow:
        0 0 15px rgba(242, 201, 76, 0.5);
}


/* =====================================================
   SCROLL REVEAL
   ===================================================== */

.reveal {

    opacity: 0;

    transform: translateY(70px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}


.reveal.active {

    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 800px) {

    .my-story {

        padding: 100px 25px;
    }


    .story-header {

        margin-bottom: 100px;
    }


    .story-timeline::before {

        left: 25px;
    }


    .chapter-marker {

        left: 25px;
    }


    .chapter-content,
    .chapter-content.reverse {

        display: flex;

        flex-direction: column;

        gap: 35px;

        padding-left: 70px;

        direction: ltr;
    }


    .chapter-image {

        width: 100%;
    }


    .chapter-text {

        max-width: none;
    }


    .story-chapter {

        margin-bottom: 120px;
    }


    .story-header h2,
    .story-ending h2 {

        font-size: clamp(2.8rem, 14vw, 4.5rem);
    }


    .chapter-text h3 {

        font-size: 2.2rem;
    }

}


/* =====================================================
   REDUCED MOTION
   ===================================================== */

@media (prefers-reduced-motion: reduce) {

    .reveal {

        opacity: 1;

        transform: none;

        transition: none;
    }


    .chapter-image img {

        transition: none;
    }

}
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, 0.92);

    align-items: center;
    justify-content: center;

    padding: 30px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    color: white;
    font-size: 45px;
    font-weight: 300;

    cursor: pointer;

    line-height: 1;
}

.lightbox-close:hover {
    color: #f2c94c;
}
