/* ==========================================================
   FOR ELTHERION V2
   STYLE.CSS
========================================================== */

/* ==========================================================
   RESET
========================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Poppins",sans-serif;
    background:#07182C;
    color:#ffffff;
    overflow-x:hidden;
    position:relative;
    transition:
        background 1s ease,
        filter .5s ease,
        color .5s ease;
}

/* ==========================================================
   ROOT
========================================================== */

:root{

    --gold:#FFD56A;
    --gold-dark:#E8B84E;

    --white:#FFFFFF;

    --bg:#07182C;
    --bg-dark:#020912;

    --glass:rgba(255,255,255,.08);
    --glass-border:rgba(255,255,255,.12);

    --shadow:
        0 20px 60px rgba(0,0,0,.35);

    --radius:32px;

    --transition:.4s ease;

}

/* ==========================================================
   SCROLLBAR
========================================================== */

::-webkit-scrollbar{

    width:8px;

}

::-webkit-scrollbar-track{

    background:#071420;

}

::-webkit-scrollbar-thumb{

    background:var(--gold);

    border-radius:20px;

}

::-webkit-scrollbar-thumb:hover{

    background:#ffe08f;

}

/* ==========================================================
   BASIC
========================================================== */

section{

    position:relative;

    padding:120px 8%;

}

img{

    display:block;

    width:100%;

    user-select:none;

    -webkit-user-drag:none;

}

a{

    text-decoration:none;

    color:inherit;

}

button{

    border:none;

    outline:none;

    font-family:inherit;

    cursor:pointer;

}

ul{

    list-style:none;

}

/* ==========================================================
   GLASS
========================================================== */

.glass{

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    -webkit-backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.10);

    box-shadow:var(--shadow);

}

/* ==========================================================
   SECTION TITLE
========================================================== */

.section-title{

    text-align:center;

    margin-bottom:70px;

}

.section-title span{

    display:block;

    color:var(--gold);

    text-transform:uppercase;

    letter-spacing:5px;

    font-size:.9rem;

    margin-bottom:15px;

}

.section-title h2{

    font-family:"Cormorant Garamond",serif;

    font-size:4rem;

    font-weight:500;

    color:white;

}

/* ==========================================================
   COMMON ANIMATION
========================================================== */

.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:1s ease;

}

.fade-up.show{

    opacity:1;

    transform:translateY(0);

}
/* ==========================================================
   BACKGROUND WRAPPER
========================================================== */

.background-wrapper{

    position:fixed;

    inset:0;

    overflow:hidden;

    z-index:-100;

}

/* ==========================================================
   SKY
========================================================== */

.sky-gradient{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        to bottom,
        #FF9B68 0%,
        #F47C82 22%,
        #8A67AE 55%,
        #36588A 82%,
        #07182C 100%
    );

    transition:
        background 10s ease,
        opacity 5s ease;

}

/* ==========================================================
   SUN
========================================================== */

.sun{

    position:absolute;

    left:50%;

    top:80px;

    width:250px;

    height:250px;

    transform:translateX(-50%);

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        #FFF6D0 0%,
        #FFD56A 55%,
        #FF9835 100%
    );

    box-shadow:
        0 0 80px rgba(255,210,80,.7),
        0 0 180px rgba(255,180,70,.35);

    transition:
        transform 8s ease,
        opacity 8s ease,
        box-shadow 4s ease;

}

/* ==========================================================
   MOON
========================================================== */

/* ==========================================================
   MOON
========================================================== */

.moon{

    position:absolute;

    top:90px;

    right:140px;

    width:140px;

    height:140px;

    border-radius:50%;

    background:#f8f8f3;

    box-shadow:
        0 0 30px rgba(255,255,255,.35),
        0 0 80px rgba(255,255,255,.18);

    opacity:0;

    transform:
        translateY(180px)
        scale(.8);

    transition:
        opacity 5s ease,
        transform 5s ease;

    z-index:2;

}

body.ending-phase-3 .moon{

    opacity:1;

    transform:
        translateY(0)
        scale(1);

}

/* ==========================================================
   STARS
========================================================== */

.stars{

    position:absolute;

    inset:0;

    opacity:0;

    transition:5s ease;

    z-index:1;

}

body.ending-phase-3 .stars{

    opacity:1;

}
/* ==========================================================
   SHOOTING STAR
========================================================== */

.shooting-star{

    position:absolute;

    width:3px;

    height:3px;

    border-radius:50%;

    background:white;

    box-shadow:

        0 0 12px white,

        -140px 0 30px rgba(255,255,255,.2);

    opacity:0;

    transform:rotate(-35deg);

}

.shooting-star.active{

    animation:

        shootingStar 2s linear;

}

@keyframes shootingStar{

0%{

opacity:0;

transform:

translate(0,0)

rotate(-35deg);

}

10%{

opacity:1;

}

100%{

opacity:0;

transform:

translate(-800px,500px)

rotate(-35deg);

}

}
/* ==========================================================
   FIREFLIES
========================================================== */

.fireflies{

    position:absolute;

    inset:0;

    opacity:0;

    transition:5s ease;

    pointer-events:none;

}

body.ending-phase-3 .fireflies{

    opacity:1;

}

/* ==========================================================
   CLOUD
========================================================== */

.cloud{

    position:absolute;

    background:rgba(255,255,255,.18);

    border-radius:100px;

    filter:blur(1px);

    transition:
        opacity 5s ease,
        transform 5s ease;

}

.cloud::before,
.cloud::after{

    content:"";

    position:absolute;

    background:inherit;

    border-radius:50%;

}

.cloud::before{

    width:80px;
    height:80px;

    top:-35px;

    left:25px;

}

.cloud::after{

    width:60px;
    height:60px;

    top:-18px;

    right:20px;

}

.cloud1{

    width:230px;
    height:70px;

    top:90px;

    left:5%;

}

.cloud2{

    width:180px;
    height:60px;

    top:180px;

    right:10%;

}

.cloud3{

    width:260px;
    height:80px;

    top:260px;

    left:25%;

}

.cloud4{

    width:210px;
    height:65px;

    top:130px;

    right:30%;

}

/* ==========================================================
   BIRD
========================================================== */

.birds{

    position:absolute;

    inset:0;

    pointer-events:none;

}

.bird{

    position:absolute;

    width:26px;

    height:18px;

    border-top:3px solid rgba(255,255,255,.9);

    border-radius:50%;

    transition:
        transform 5s ease,
        opacity 5s ease;

}

.bird::after{

    content:"";

    position:absolute;

    left:18px;

    top:-3px;

    width:26px;

    height:18px;

    border-top:3px solid rgba(255,255,255,.9);

    border-radius:50%;

}

.bird:nth-child(1){

    top:170px;
    left:12%;

}

.bird:nth-child(2){

    top:150px;
    left:18%;

}

.bird:nth-child(3){

    top:210px;
    left:72%;

}

.bird:nth-child(4){

    top:180px;
    left:78%;

}

/* ==========================================================
   OCEAN
========================================================== */

.ocean{

    position:absolute;

    bottom:0;

    width:100%;

    height:42%;

    overflow:hidden;

    background:
    linear-gradient(
        to bottom,
        #2E547F,
        #17314D,
        #081522
    );

    transition:
        background 8s ease,
        filter 8s ease;

}

.ocean::before{

    content:"";

    position:absolute;

    left:50%;

    top:-40px;

    transform:translateX(-50%);

    width:360px;

    height:220px;

    background:
    radial-gradient(
        ellipse,
        rgba(255,220,120,.35),
        transparent 70%
    );

    filter:blur(40px);

}

/* ==========================================================
   WAVES
========================================================== */

.wave{

    position:absolute;

    width:200%;

    height:120px;

    left:0;

    opacity:.3;

    background:
    radial-gradient(
        ellipse at center,
        rgba(255,255,255,.18),
        transparent 70%
    );

    animation:waveMove linear infinite;

}

.layer1{

    bottom:0;

    animation-duration:16s;

}

.layer2{

    bottom:18px;

    animation-duration:20s;

}

.layer3{

    bottom:36px;

    animation-duration:26s;

}

.layer4{

    bottom:54px;

    animation-duration:32s;

}

@keyframes waveMove{

    from{

        transform:translateX(0);

    }

    to{

        transform:translateX(-50%);

    }

}
/* ==========================================================
   NAVBAR
========================================================== */

.navbar{

    position:fixed;

    top:25px;

    left:50%;

    transform:translateX(-50%);

    width:min(1300px,92%);

    height:72px;

    padding:0 35px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    border-radius:60px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(22px);

    -webkit-backdrop-filter:blur(22px);

    border:1px solid rgba(255,255,255,.10);

    box-shadow:0 18px 45px rgba(0,0,0,.25);

    z-index:9999;

    transition:
        background .4s ease,
        transform .5s ease,
        opacity .5s ease,
        height .4s ease;

}

.navbar.scrolled{

    height:66px;

    background:rgba(7,20,35,.90);

}

.nav-logo{

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    color:var(--gold);

    letter-spacing:2px;

}

.navbar ul{

    display:flex;

    gap:35px;

}

.navbar ul li{

    list-style:none;

}

.navbar ul a{

    position:relative;

    color:#ffffff;

    transition:.35s;

}

.navbar ul a::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-8px;

    width:0;

    height:2px;

    background:var(--gold);

    transition:.35s;

}

.navbar ul a:hover,

.navbar ul a.active{

    color:var(--gold);

}

.navbar ul a:hover::after,

.navbar ul a.active::after{

    width:100%;

}

/* ==========================================================
   MUSIC PLAYER
========================================================== */

.music-player{

    position:fixed;

    right:30px;

    bottom:30px;

    width:340px;

    padding:18px;

    display:flex;

    align-items:center;

    gap:18px;

    border-radius:30px;

    background:rgba(255,255,255,.08);

    backdrop-filter:blur(20px);

    border:1px solid rgba(255,255,255,.10);

    box-shadow:0 20px 45px rgba(0,0,0,.25);

    z-index:999;

    transition:
        transform .35s ease,
        opacity .35s ease,
        background .35s ease;

}

.music-player:hover{

    transform:translateY(-5px);

}

.album-cover{

    width:70px;

    height:70px;

    border-radius:18px;

    overflow:hidden;

    flex-shrink:0;

}

.album-cover img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.music-content{

    flex:1;

}

.music-info h3{

    font-size:1rem;

    margin-bottom:4px;

    color:white;

}

.music-info p{

    font-size:.82rem;

    color:rgba(255,255,255,.75);

}

.progress{

    margin-top:12px;

    width:100%;

    height:5px;

    border-radius:50px;

    overflow:hidden;

    background:rgba(255,255,255,.12);

}

.progress-fill{

    width:0;

    height:100%;

    border-radius:50px;

    background:linear-gradient(

        90deg,

        #FFD56A,

        #FF9F4A

    );

    transition:width .2s linear;

}

.music-controls{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.music-controls button{

    width:42px;

    height:42px;

    border-radius:50%;

    background:rgba(255,255,255,.10);

    color:white;

    font-size:1rem;

    transition:.35s ease;

}

.music-controls button:hover{

    background:var(--gold);

    color:#111;

    transform:scale(1.08);

}
/* ==========================================================
   HERO
========================================================== */

.hero{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:120px 8%;

    position:relative;

    z-index:5;

}

.hero-content{

    width:min(950px,100%);

    padding:70px;

    border-radius:40px;

    position:relative;

    overflow:hidden;

}

/* Glass Highlight */

.hero-content::before{

    content:"";

    position:absolute;

    top:-40%;

    left:-20%;

    width:300px;

    height:300px;

    background:

    radial-gradient(

        circle,

        rgba(255,255,255,.12),

        transparent 70%

    );

    pointer-events:none;

}

/* ==========================================================
   SUBTITLE
========================================================== */

.subtitle{

    display:block;

    color:var(--gold);

    letter-spacing:6px;

    text-transform:uppercase;

    font-size:.9rem;

    margin-bottom:25px;

    font-weight:500;

}

/* ==========================================================
   HERO TITLE
========================================================== */

.hero h1{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:18px;

}

.name-main{

    font-family:"Cormorant Garamond",serif;

    font-size:4.8rem;

    font-weight:500;

    line-height:1;

    color:#ffffff;

}

.hero-and{

    font-family:"Cormorant Garamond",serif;

    color:var(--gold);

    font-size:3rem;

}

.name-second{

    font-family:"Cormorant Garamond",serif;

    font-size:6.5rem;

    font-weight:500;

    line-height:.95;

    color:var(--gold);

    text-shadow:

        0 0 25px rgba(255,213,106,.25);

}

/* ==========================================================
   HERO DESCRIPTION
========================================================== */

.hero-content p{

    max-width:760px;

    margin:40px auto;

    line-height:2;

    font-size:1.05rem;

    color:rgba(255,255,255,.88);

}

/* ==========================================================
   BUTTON
========================================================== */

.hero-button{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:18px 46px;

    border-radius:60px;

    background:

    linear-gradient(

        135deg,

        #FFD56A,

        #FF9A47

    );

    color:#111;

    font-weight:600;

    transition:

        transform .35s ease,

        box-shadow .35s ease;

}

.hero-button:hover{

    transform:translateY(-6px);

    box-shadow:

        0 18px 45px rgba(255,180,70,.35);

}

/* ==========================================================
   SCROLL INDICATOR
========================================================== */

.scroll-indicator{

    position:absolute;

    bottom:45px;

    left:50%;

    transform:translateX(-50%);

}

.scroll-indicator span{

    position:relative;

    display:block;

    width:28px;

    height:48px;

    border-radius:30px;

    border:2px solid rgba(255,255,255,.4);

}

.scroll-indicator span::before{

    content:"";

    position:absolute;

    left:50%;

    top:8px;

    transform:translateX(-50%);

    width:6px;

    height:6px;

    border-radius:50%;

    background:white;

    animation:scrollMove 2s infinite;

}

@keyframes scrollMove{

    0%{

        opacity:0;

        top:8px;

    }

    40%{

        opacity:1;

    }

    100%{

        opacity:0;

        top:28px;

    }

}
/* ==========================================================
   STORY
========================================================== */

.story{

    position:relative;

}

.story-grid{

    max-width:1300px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.story-card{

    position:relative;

    overflow:hidden;

    padding:45px;

    border-radius:32px;

    transition:
        transform .4s ease,
        box-shadow .4s ease,
        background .4s ease;

}

.story-card::before{

    content:"";

    position:absolute;

    inset:0;

    background:

    linear-gradient(

        180deg,

        rgba(255,255,255,.05),

        transparent

    );

    opacity:0;

    transition:.4s;

}

.story-card:hover::before{

    opacity:1;

}

.story-card:hover{

    transform:translateY(-10px);

    box-shadow:

        0 25px 60px rgba(0,0,0,.35);

}

.number{

    font-size:5rem;

    font-weight:700;

    line-height:1;

    margin-bottom:18px;

    color:rgba(255,255,255,.08);

}

.story-card h3{

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    color:var(--gold);

    margin-bottom:20px;

}

.story-card p{

    color:rgba(255,255,255,.88);

    line-height:2;

}

/* ==========================================================
   GALLERY
========================================================== */

.gallery{

    position:relative;

}

.gallery-grid{

    max-width:1350px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:28px;

}

.gallery-item{

    position:relative;

    overflow:hidden;

    border-radius:30px;

    aspect-ratio:4/5;

    cursor:pointer;

    transition:

        transform .45s ease,

        box-shadow .45s ease;

}

.gallery-item:hover{

    transform:translateY(-10px);

    box-shadow:

        0 20px 45px rgba(0,0,0,.35);

}

.gallery-item img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:transform .8s ease;

}

.gallery-item:hover img{

    transform:scale(1.08);

}

.gallery-overlay{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    justify-content:flex-end;

    padding:30px;

    background:

    linear-gradient(

        transparent,

        rgba(0,0,0,.88)

    );

    opacity:0;

    transition:.45s ease;

}

.gallery-item:hover .gallery-overlay{

    opacity:1;

}

.gallery-overlay span{

    color:var(--gold);

    font-size:.8rem;

    letter-spacing:3px;

    text-transform:uppercase;

    margin-bottom:10px;

}

.gallery-overlay h3{

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    margin-bottom:12px;

    color:white;

    transform:translateY(20px);

    transition:.4s;

}

.gallery-overlay p{

    color:rgba(255,255,255,.88);

    line-height:1.8;

    transform:translateY(25px);

    transition:.5s;

}

.gallery-item:hover h3,

.gallery-item:hover p{

    transform:translateY(0);

}
/* ==========================================================
   PART 6
   LETTER
========================================================== */

.letter{

    position:relative;

}

.letter-card{

    max-width:900px;

    margin:auto;

    padding:60px;

    border-radius:36px;

    position:relative;

    overflow:hidden;

}

.paper{

    position:relative;

    padding:60px;

    border-radius:28px;

    background:rgba(255,255,255,.04);

}

.paper::before{

    content:"";

    position:absolute;

    left:70px;

    top:0;

    bottom:0;

    width:2px;

    background:rgba(255,213,106,.15);

}

#typewriter{

    min-height:350px;

    white-space:pre-line;

    line-height:2.2;

    font-size:1.05rem;

    color:rgba(255,255,255,.88);

    text-align:justify;

}

.letter-header{

    margin-bottom:35px;

    font-size:1.1rem;

    color:var(--gold);

}

.letter-sign{

    margin-top:45px;

    text-align:right;

    color:var(--gold);

}

.letter-card::after{

    content:"";

    position:absolute;

    width:260px;

    height:260px;

    right:-120px;

    top:-120px;

    border-radius:50%;

    background:

    radial-gradient(

        circle,

        rgba(255,213,106,.18),

        transparent

    );

}

/* ==========================================================
   TIMELINE
========================================================== */

.timeline{

    position:relative;

}

.timeline-container{

    position:relative;

    max-width:1000px;

    margin:auto;

}

.timeline-container::before{

    content:"";

    position:absolute;

    left:50%;

    top:0;

    bottom:0;

    width:2px;

    background:

    linear-gradient(

        transparent,

        var(--gold),

        transparent

    );

    transform:translateX(-50%);

}

.timeline-item{

    position:relative;

    width:50%;

    padding:30px 40px;

}

.timeline-item:nth-child(odd){

    left:0;

    text-align:right;

}

.timeline-item:nth-child(even){

    left:50%;

}

.timeline-dot{

    position:absolute;

    top:45px;

    width:18px;

    height:18px;

    border-radius:50%;

    background:var(--gold);

    box-shadow:

        0 0 20px rgba(255,213,106,.6);

}

.timeline-item:nth-child(odd) .timeline-dot{

    right:-9px;

}

.timeline-item:nth-child(even) .timeline-dot{

    left:-9px;

}

.timeline-content{

    padding:32px;

    border-radius:28px;

    transition:

        transform .4s ease,

        box-shadow .4s ease;

}

.timeline-content:hover{

    transform:translateY(-8px);

    box-shadow:

        0 20px 45px rgba(0,0,0,.3);

}

.timeline-content span{

    display:block;

    color:var(--gold);

    font-size:.8rem;

    letter-spacing:3px;

    margin-bottom:12px;

    text-transform:uppercase;

}

.timeline-content h3{

    font-family:"Cormorant Garamond",serif;

    color:var(--gold);

    font-size:2rem;

    margin-bottom:18px;

}

.timeline-content p{

    line-height:2;

    color:rgba(255,255,255,.88);

}

/* ==========================================================
   COUNTDOWN
========================================================== */

.countdown{

    position:relative;

}

.countdown-wrapper{

    max-width:1200px;

    margin:auto;

    padding:45px;

    border-radius:35px;

}

.countdown-grid{

    display:grid;

    grid-template-columns:repeat(5,1fr);

    gap:22px;

}

.count-box{

    text-align:center;

    padding:35px;

    border-radius:25px;

    background:rgba(255,255,255,.05);

    transition:

        transform .35s ease,

        background .35s ease;

}

.count-box:hover{

    transform:translateY(-8px);

    background:rgba(255,255,255,.08);

}

.count-box h3{

    font-family:"Cormorant Garamond",serif;

    font-size:4rem;

    color:var(--gold);

}

.count-box span{

    display:block;

    margin-top:12px;

    font-size:.85rem;

    letter-spacing:2px;

    text-transform:uppercase;

}

.count-description{

    max-width:760px;

    margin:45px auto 0;

    text-align:center;

    color:rgba(255,255,255,.85);

    line-height:2;

}
/* ==========================================================
   PART 7
   QUOTE
========================================================== */

.quote-section{

    position:relative;

    min-height:70vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    overflow:hidden;

    background:

    linear-gradient(

        rgba(0,0,0,.45),

        rgba(0,0,0,.60)

    ),

    url("../assets/images/gallery6.jpg")

    center/cover

    fixed;

}

.quote-overlay{

    position:absolute;

    inset:0;

    background:

    rgba(0,0,0,.35);

}

.quote-content{

    position:relative;

    z-index:2;

    max-width:900px;

    padding:40px;

}

.quote-content h2{

    font-family:"Cormorant Garamond",serif;

    font-size:3.5rem;

    line-height:1.4;

    margin-bottom:30px;

}

.quote-content p{

    color:var(--gold);

    letter-spacing:4px;

    text-transform:uppercase;

}

/* ==========================================================
   FINAL QUESTION
========================================================== */

.final-question{

    position:relative;

}

.question-card{

    max-width:900px;

    margin:auto;

    padding:70px;

    border-radius:40px;

    text-align:center;

}

.question-card span{

    display:block;

    color:var(--gold);

    letter-spacing:5px;

    text-transform:uppercase;

    margin-bottom:18px;

}

.question-card h2{

    font-family:"Cormorant Garamond",serif;

    font-size:2.8rem;

}

.question-card h1{

    font-family:"Cormorant Garamond",serif;

    font-size:5rem;

    margin:30px 0;

}

.question-description{

    max-width:650px;

    margin:0 auto 45px;

    line-height:2;

    color:rgba(255,255,255,.85);

}

.question-buttons{

    display:flex;

    justify-content:center;

    gap:25px;

}

.yes-button,

.no-button{

    min-width:190px;

    height:60px;

    border-radius:50px;

    font-size:1rem;

    font-weight:600;

    transition:

        transform .35s ease,

        background .35s ease,

        opacity .35s ease;

}

.yes-button{

    background:

    linear-gradient(

        135deg,

        #FFD56A,

        #FF9E52

    );

    color:#111;

}

.no-button{

    background:

    rgba(255,255,255,.10);

    color:white;

}

.yes-button:hover,

.no-button:hover{

    transform:translateY(-6px);

}

/* ==========================================================
   ENDING
========================================================== */

#endingScene{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    background:

    radial-gradient(

        circle,

        #071420,

        #000

    );

    opacity:0;

    visibility:hidden;

    z-index:999999;

    transition:

        opacity 2s ease,

        visibility 2s ease;

}

#endingScene.show{

    opacity:1;

    visibility:visible;

}

.ending-screen{

    width:min(900px,92%);

}

.ending-title{

    color:var(--gold);

    letter-spacing:8px;

    margin-bottom:30px;

}

.ending-subtitle{

    font-family:"Cormorant Garamond",serif;

    font-size:5rem;

    margin-bottom:30px;

}

.ending-quote{

    line-height:2;

    color:rgba(255,255,255,.85);

}

.ending-credit{

    margin-top:60px;

    color:var(--gold);

}

/* ==========================================================
   ENDING ANIMATION
========================================================== */

.ending-title,
.ending-subtitle,
.ending-quote,
.ending-credit{

    opacity:0;

    transform:translateY(40px);

    transition:

        opacity 1.2s ease,

        transform 1.2s ease;

}

.ending-title.show,
.ending-subtitle.show,
.ending-quote.show,
.ending-credit.show{

    opacity:1;

    transform:translateY(0);

}

/* ==========================================================
   FOOTER
========================================================== */

footer{

    text-align:center;

    padding:60px 20px;

    background:#050D16;

}

footer h3{

    font-family:"Cormorant Garamond",serif;

    font-size:2rem;

    margin-bottom:15px;

}

footer p{

    color:var(--gold);

    margin-bottom:12px;

}

footer small{

    color:rgba(255,255,255,.55);

}
/* ==========================================================
   PART 8
   SCROLL REVEAL
========================================================== */

.story-card,
.gallery-item,
.letter-card,
.timeline-item,
.count-box,
.question-card{

    opacity:0;

    transform:translateY(50px);

    transition:
        opacity .9s ease,
        transform .9s ease;

}

.story-card.show,
.gallery-item.show,
.letter-card.show,
.timeline-item.show,
.count-box.show,
.question-card.show{

    opacity:1;

    transform:translateY(0);

}

/* ==========================================================
   ENDING PHASE 1
========================================================== */

body.ending-phase-1 .navbar{

    opacity:0;

    transform:
        translate(-50%,-80px);

}

body.ending-phase-1 .music-player{

    opacity:0;

    transform:
        translateY(80px);

}

body.ending-phase-1 .question-card{

    opacity:0;

    transform:
        translateY(60px);

}

/* ==========================================================
   ENDING PHASE 2
========================================================== */

body.ending-phase-2 .sun{

    transform:
        translate(-50%,550px)
        scale(.75);

    opacity:0;

}

body.ending-phase-2 .cloud{

    opacity:0;

}

body.ending-phase-2 .bird{

    opacity:0;

    transform:
        translateX(350px);

}

/* ==========================================================
   ENDING PHASE 3
========================================================== */

body.ending-phase-3 .sky-gradient{

    background:

    linear-gradient(

        to bottom,

        #07111D,

        #102847,

        #06111B,

        #000000

    );

}

body.ending-phase-3 .ocean{

    background:

    linear-gradient(

        to bottom,

        #162A46,

        #0B1726,

        #02060B

    );

}

body.ending-phase-3 .moon{

    opacity:1;

    transform:translateY(0);

}

body.ending-phase-3 .stars{

    opacity:1;

}

body.ending-phase-3 .fireflies{

    opacity:1;

}

/* ==========================================================
   ENDING PHASE 4
========================================================== */


/* ==========================================================
   PERFORMANCE
========================================================== */

.sun,
.moon,
.sky-gradient,
.cloud,
.wave,
.ocean,
.bird,
.story-card,
.gallery-item,
.timeline-content,
.count-box,
.question-card,
.music-player{

    will-change:
        opacity,
        transform,
        background;

    backface-visibility:hidden;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media(max-width:1100px){

.story-grid,
.gallery-grid{

grid-template-columns:repeat(2,1fr);

}

.countdown-grid{

grid-template-columns:repeat(3,1fr);

}

.timeline-item{

width:100%;

left:0 !important;

padding-left:70px;

text-align:left !important;

}

.timeline-container::before{

left:25px;

}

.timeline-dot{

left:16px !important;

right:auto !important;

}

}

@media(max-width:768px){

.hero-content{

padding:45px 25px;

}

.name-main{

font-size:3rem;

}

.name-second{

font-size:4rem;

}

.story-grid,
.gallery-grid,
.countdown-grid{

grid-template-columns:1fr;

}

.music-player{

left:50%;

right:auto;

transform:translateX(-50%);

width:92%;

}

.question-card h1{

font-size:3.2rem;

}

.question-buttons{

flex-direction:column;

align-items:center;

}

.ending-subtitle{

font-size:3rem;

}

.navbar{

flex-direction:column;

height:auto;

padding:18px;

}

.navbar ul{

flex-wrap:wrap;

justify-content:center;

}

/* ==========================================================
   VIDEO ENDING
========================================================== */

#videoEnding{

    position:center;

    top:0;

    left:0;

    width:100vw;

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#000;

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    z-index:99999999;

    transition:opacity 1s ease;

}

#videoEnding.show{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}

#endingVideo{

    max-width:100%;

    max-height:100%;

    width:auto;

    height:auto;

    object-fit:contain;

}
/* ==========================================================
   VIDEO ENDING
========================================================== */

#videoEnding{

    position:fixed;
    inset:0;

    background:#081626;

    display:flex;
    justify-content:center;
    align-items:center;

    gap:70px;

    padding:70px;

    opacity:0;
    visibility:hidden;

    pointer-events:none;

    z-index:999999;

    transition:1s;

}

#videoEnding.show{

    opacity:1;
    visibility:visible;
    pointer-events:auto;

}
.video-wrapper{

    flex:0 0 58%;

    display:flex;

    justify-content:center;

    align-items:center;

}

#endingVideo{

    width:100%;

    max-width:820px;

    border-radius:24px;

    object-fit:cover;

    box-shadow:
        0 25px 60px rgba(0,0,0,.45);

}
.video-text{

    flex:0 0 36%;

    color:white;

}
.video-small{

    color:#FFD56A;

    letter-spacing:5px;

    font-size:14px;

    display:block;

    margin-bottom:15px;

}
.video-text h1{

    font-family:"Cormorant Garamond",serif;

    font-size:58px;

    font-weight:600;

    line-height:1.1;

    margin-bottom:30px;

}
.video-text p{

    font-size:19px;

    line-height:2;

    color:rgba(255,255,255,.85);

    margin-bottom:35px;

}
.video-sign{

    color:#FFD56A;

    font-size:22px;

    line-height:2;

}
@media(max-width:1100px){

#videoEnding{

    flex-direction:column;

    overflow:auto;

}

.video-wrapper{

    width:100%;

}

.video-text{

    width:100%;

    text-align:center;

}

}
body.video-playing .music-player{

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transform:translateY(40px);

    transition:.8s ease;

}
}