/* =====================================
   HAPPY FRIENDSHIP DAY
===================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html{
scroll-behavior:smooth;
}

body{

font-family:'Poppins',sans-serif;

background:#140b2f;

color:#fff;

overflow-x:hidden;

}

/* Background */

.bg{

position:fixed;

inset:0;

z-index:-3;

background:linear-gradient(-45deg,
#140b2f,
#25124e,
#5b21b6,
#ff6fae);

background-size:400% 400%;

animation:bgMove 15s ease infinite;

}

@keyframes bgMove{

0%{background-position:0% 50%;}

50%{background-position:100% 50%;}

100%{background-position:0% 50%;}

}

/* Loader */

#loader{

position:fixed;

inset:0;

background:#140b2f;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

z-index:9999;

transition:.8s;

}

.heart{

font-size:70px;

animation:beat 1s infinite;

}

@keyframes beat{

0%,100%{

transform:scale(1);

}

50%{

transform:scale(1.2);

}

}

/* Hidden */

.hidden{

display:none;

}

/* Navbar */

nav{

position:fixed;

top:20px;

left:50%;

transform:translateX(-50%);

width:min(1100px,92%);

padding:15px 25px;

display:flex;

justify-content:space-between;

align-items:center;

background:rgba(255,255,255,.1);

backdrop-filter:blur(15px);

border-radius:50px;

z-index:100;

}

nav button{

border:none;

width:48px;

height:48px;

border-radius:50%;

cursor:pointer;

font-size:20px;

}

/* Gift */

#gift{

height:100vh;

display:flex;

justify-content:center;

align-items:center;

padding:20px;

}

.gift-card{

background:rgba(255,255,255,.08);

padding:45px;

border-radius:30px;

backdrop-filter:blur(15px);

text-align:center;

max-width:500px;

}

.gift-card h1{

font-family:'Pacifico',cursive;

font-size:48px;

margin-bottom:20px;

}

.gift-card p{

line-height:1.8;

}

#giftBox{

width:120px;

height:120px;

margin:35px auto;

position:relative;

cursor:pointer;

animation:bounce 2s infinite;

}

.box{

position:absolute;

bottom:0;

width:120px;

height:85px;

background:#ff6fae;

border-radius:8px;

}

.lid{

position:absolute;

top:0;

width:120px;

height:35px;

background:#ff9bcf;

border-radius:8px;

transition:.5s;

}

.ribbon-v{

position:absolute;

left:50%;

transform:translateX(-50%);

width:14px;

height:120px;

background:#fff;

}

.ribbon-h{

position:absolute;

top:30px;

width:120px;

height:14px;

background:#fff;

}

@keyframes bounce{

0%,100%{

transform:translateY(0);

}

50%{

transform:translateY(-12px);

}

}

/* Hero */

.hero{

width:min(1100px,92%);

margin:auto;

min-height:100vh;

display:grid;

grid-template-columns:1fr 1fr;

gap:60px;

align-items:center;

}

.hero h1{

font-size:64px;

line-height:1.1;

margin:20px 0;

}

.hero h1 span{

color:#ff8fc5;

}

.badge{

display:inline-block;

padding:8px 16px;

border-radius:50px;

background:rgba(255,255,255,.1);

}

.hero p{

font-size:18px;

line-height:1.9;

margin-bottom:30px;

}

.hero button{

padding:16px 35px;

border:none;

border-radius:50px;

cursor:pointer;

background:#ff6fae;

color:#fff;

font-size:17px;

font-weight:600;

}

.hero-image img{

width:100%;

border-radius:30px;

box-shadow:0 20px 50px rgba(0,0,0,.3);

object-fit:cover;

}
/* =====================================
   GALLERY
===================================== */

#gallery,
#letter,
#counter,
#song,
#final{

width:min(1100px,92%);

margin:100px auto;

}

#gallery h2,
#letter h2{

text-align:center;

font-size:42px;

margin-bottom:40px;

}

.gallery{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:25px;

}

.card{

overflow:hidden;

border-radius:22px;

cursor:pointer;

background:rgba(255,255,255,.08);

backdrop-filter:blur(12px);

transition:.35s;

}

.card:hover{

transform:translateY(-8px);

}

.card img{

width:100%;

height:320px;

object-fit:cover;

transition:.4s;

}

.card:hover img{

transform:scale(1.08);

}

/* =====================================
   LETTER
===================================== */

#envelope{

width:320px;

height:210px;

margin:40px auto;

position:relative;

cursor:pointer;

}

.flap{

position:absolute;

top:0;

left:0;

width:100%;

height:110px;

background:#ff6fae;

clip-path:polygon(0 0,100% 0,50% 100%);

transform-origin:top;

transition:.6s;

z-index:3;

}

.paper{

position:absolute;

left:50%;

top:20px;

transform:translateX(-50%);

width:280px;

height:180px;

background:#fff;

color:#222;

padding:20px;

border-radius:12px;

transition:.6s;

overflow:auto;

}

#envelope.open .flap{

transform:rotateX(180deg);

}

#envelope.open .paper{

transform:translate(-50%,-110px);

}

.paper h3{

margin-bottom:12px;

}

.tap{

text-align:center;

opacity:.8;

margin-top:20px;

}

/* =====================================
   COUNTER
===================================== */

.counter-card,
.music-card,
.final-card{

background:rgba(255,255,255,.08);

backdrop-filter:blur(15px);

padding:50px;

border-radius:25px;

text-align:center;

}

#days{

font-size:72px;

font-weight:700;

margin:20px 0;

color:#ff8fc5;

}

.music-card button,
#celebrate{

margin-top:25px;

padding:15px 35px;

border:none;

border-radius:50px;

background:#ff6fae;

color:#fff;

font-size:17px;

cursor:pointer;

transition:.3s;

}

.music-card button:hover,
#celebrate:hover{

transform:translateY(-4px);

}

/* =====================================
   FOOTER
===================================== */

footer{

padding:40px;

text-align:center;

opacity:.8;

}

/* =====================================
   LIGHTBOX
===================================== */

#lightbox{

position:fixed;

inset:0;

display:none;

justify-content:center;

align-items:center;

background:rgba(0,0,0,.9);

z-index:9999;

}

#lightbox.active{

display:flex;

}

#lightboxImg{

max-width:90%;

max-height:90vh;

border-radius:18px;

}

#close{

position:absolute;

top:20px;

right:30px;

font-size:40px;

cursor:pointer;

}

/* =====================================
   PETALS
===================================== */

#petals{

position:fixed;

inset:0;

pointer-events:none;

overflow:hidden;

z-index:-1;

}

.petal{

position:absolute;

top:-40px;

font-size:22px;

animation:fall linear forwards;

}

@keyframes fall{

to{

transform:translateY(110vh) rotate(720deg);

}

}

/* =====================================
   MOBILE
===================================== */

@media(max-width:900px){

.hero{

grid-template-columns:1fr;

text-align:center;

padding-top:120px;

}

.hero h1{

font-size:42px;

}

.hero-image{

order:-1;

}

.hero-image img{

max-width:300px;

margin:auto;

display:block;

}

.counter-card,
.music-card,
.final-card{

padding:35px 20px;

}

#days{

font-size:56px;

}

#gallery h2,
#letter h2{

font-size:32px;

}

}