/* ===========================
   PROJECT YETI STYLE.CSS
   =========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#020617;
    color:white;
    overflow-x:hidden;
}

/* Animated Background */

body::before{
    content:"";
    position:fixed;
    inset:0;
    background:
    radial-gradient(circle at top,#0b1f4d,#020617 70%);
    z-index:-3;
}

/* Stars */

#stars{
    position:fixed;
    inset:0;
    overflow:hidden;
    z-index:-2;
}

.star{
    position:absolute;
    width:2px;
    height:2px;
    background:white;
    border-radius:50%;
    animation:twinkle 3s infinite;
}

@keyframes twinkle{

0%,100%{
opacity:.3;
transform:scale(1);
}

50%{
opacity:1;
transform:scale(2);
}

}

/* Hero */

.hero{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    position:relative;
    padding:20px;
}

.content{
    max-width:800px;
    animation:fadeUp 2s;
}

.content h1{
    font-size:72px;
    font-family:'Dancing Script',cursive;
    margin-bottom:20px;
}

.content p{
    font-size:22px;
    line-height:1.8;
    color:#d5d5d5;
}

button{
    margin-top:35px;
    padding:16px 40px;
    border:none;
    border-radius:40px;
    cursor:pointer;
    background:#ff4f8b;
    color:white;
    font-size:18px;
    transition:.35s;
}

button:hover{
    transform:translateY(-4px) scale(1.05);
    box-shadow:0 0 25px rgba(255,79,139,.5);
}

/* Moon */

.moon{
    position:absolute;
    top:70px;
    right:80px;
    width:220px;
    height:220px;
    border-radius:50%;
    background:#f5f5f5;
    box-shadow:
    0 0 50px white,
    0 0 120px rgba(255,255,255,.4);
    animation:moonFloat 6s ease-in-out infinite;
}

@keyframes moonFloat{
0%,100%{transform:translateY(0);}
50%{transform:translateY(-18px);}
}

/* Letter */

.letter{
    padding:100px 25px;
    background:#08111f;
    text-align:center;
}

.letter h2{
    font-size:55px;
    margin-bottom:50px;
    font-family:'Dancing Script',cursive;
}

.paper{
    max-width:800px;
    margin:auto;
    background:white;
    color:#222;
    padding:45px;
    border-radius:20px;
    line-height:2;
    box-shadow:0 0 35px rgba(255,255,255,.15);
    transition:.4s;
}

.paper:hover{
    transform:scale(1.02);
}

/* Fade Animation */

@keyframes fadeUp{

from{
opacity:0;
transform:translateY(50px);
}

to{
opacity:1;
transform:translateY(0);
}

}
/* ===========================
   PHOTO GALLERY
=========================== */

.gallery{
    min-height:100vh;
    padding:100px 20px;
    background:#050b17;
    text-align:center;
}

.gallery h2{
    font-size:58px;
    font-family:'Dancing Script',cursive;
    margin-bottom:60px;
}

.photos{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:35px;
    max-width:1300px;
    margin:auto;
}

.card{
    background:rgba(255,255,255,.08);
    backdrop-filter:blur(18px);
    border:1px solid rgba(255,255,255,.12);
    border-radius:25px;
    overflow:hidden;
    transition:.45s;
    cursor:pointer;
}

.card:hover{
    transform:translateY(-12px) scale(1.03);
    box-shadow:0 20px 40px rgba(0,0,0,.4);
}

.card img{
    width:100%;
    height:370px;
    object-fit:cover;
    display:block;
}

.card p{
    padding:20px;
    font-size:17px;
    line-height:1.8;
}

/* ===========================
   REASONS
=========================== */

.reasons{
    padding:120px 25px;
    background:#071321;
    text-align:center;
}

.reasons h2{
    font-size:58px;
    font-family:'Dancing Script',cursive;
    margin-bottom:35px;
}

#reasonText{
    max-width:700px;
    margin:auto;
    min-height:120px;
    font-size:24px;
    line-height:1.8;
}

/* ===========================
   FINAL SECTION
=========================== */

#final{
    min-height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:30px;
    background:#01040d;
}

#final h1{
    font-size:72px;
    font-family:'Dancing Script',cursive;
    margin-bottom:25px;
}

#final p{
    font-size:24px;
    max-width:800px;
    line-height:2;
}

#endingScreen{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    background:black;
    z-index:999999;
    text-align:center;
}

#endingScreen h1{
    font-size:75px;
    font-family:'Dancing Script',cursive;
    animation:fadeUp 2s;
}

#endingScreen p{
    margin-top:25px;
    font-size:28px;
}

/* ===========================
   FOOTPRINT
=========================== */

#footprint{
    position:fixed;
    bottom:25px;
    right:25px;
    font-size:28px;
    opacity:.18;
    cursor:pointer;
    transition:.3s;
}

#footprint:hover{
    opacity:1;
    transform:scale(1.3);
}

/* ===========================
   MUSIC BUTTON
=========================== */

#musicBtn{
    position:fixed;
    top:20px;
    left:20px;
    z-index:999;
    background:rgba(255,255,255,.15);
    backdrop-filter:blur(15px);
}

/* ===========================
   LOADER
=========================== */

#loader{
    position:fixed;
    inset:0;
    background:#020617;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction:column;
    z-index:9999999;
}

#loader h1{
    font-family:'Dancing Script',cursive;
    font-size:58px;
}

#loader p{
    margin-top:20px;
    color:#ccc;
    font-size:22px;
}

/* ===========================
   MOBILE
=========================== */

@media(max-width:768px){

.content h1{
font-size:48px;
}

.content p{
font-size:18px;
}

.moon{
width:140px;
height:140px;
top:30px;
right:20px;
}

.gallery h2,
.letter h2,
.reasons h2,
#final h1{
font-size:42px;
}

.card img{
height:300px;
}

.paper{
padding:25px;
font-size:16px;
}

button{
padding:14px 30px;
font-size:16px;
}

}