/* ===================================
   APPLE INSPIRED ANNIVERSARY WEBSITE
   =================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:
    radial-gradient(circle at top,#ffd9ea,#fff 45%,#ffeef6);

    color:#222;

    overflow-x:hidden;

    min-height:100vh;

}

/* ---------- Floating Background ---------- */

#particles,
#hearts{

    position:fixed;

    inset:0;

    pointer-events:none;

    overflow:hidden;

    z-index:0;

}

/* ---------- Main Content ---------- */

#mainContent{

    display:none;

    position:relative;

    z-index:2;

}

/* ---------- Password Screen ---------- */

#passwordScreen{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    background:
    linear-gradient(135deg,#ffd6e7,#fff);

    z-index:9999;

}

.login-box{

    width:360px;

    max-width:90%;

    text-align:center;

    padding:45px;

}

.login-box h1{

    font-size:70px;

    margin-bottom:15px;

}

.login-box h2{

    font-family:"Playfair Display",serif;

    margin-bottom:10px;

}

.login-box p{

    opacity:.75;

    margin-bottom:15px;

}

.login-box input{

    width:100%;

    padding:15px;

    border:none;

    outline:none;

    border-radius:15px;

    margin-bottom:20px;

    background:rgba(255,255,255,.65);

    font-size:16px;

}

.login-box button{

    width:100%;

    border:none;

    cursor:pointer;

    padding:15px;

    border-radius:15px;

    background:#ff4f92;

    color:white;

    font-size:16px;

    transition:.35s;

}

.login-box button:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(255,80,140,.4);

}

#wrongPassword{

    color:#ff0040;

    margin-top:15px;

}

/* ---------- Glass Effect ---------- */

.glass{

    background:rgba(255,255,255,.25);

    -webkit-backdrop-filter:blur(22px);

    backdrop-filter:blur(22px);

    border:1px solid rgba(255,255,255,.4);

    border-radius:28px;

    box-shadow:

    0 10px 40px rgba(0,0,0,.12);

}

/* ---------- Hero ---------- */

.hero{

    height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:30px;

    position:relative;

}

.hero-card{

    max-width:900px;

    width:100%;

    padding:70px 50px;

}

.hero h1{

    font-size:4rem;

    font-family:"Playfair Display",serif;

    line-height:1.2;

}

.hero span{

    color:#ff2e86;

}

.subtitle{

    margin-top:25px;

    font-size:20px;

    opacity:.8;

}

#relationshipTimer{

    margin-top:30px;

    font-size:2rem;

    font-weight:700;

    color:#ff2d7b;

}

.scrollBtn{

    display:inline-block;

    margin-top:40px;

    padding:16px 35px;

    border-radius:50px;

    background:white;

    color:#ff2d7b;

    text-decoration:none;

    transition:.35s;

}

.scrollBtn:hover{

    transform:translateY(-6px);

}

/* ---------- Sections ---------- */

.section{

    padding:120px 8%;

    position:relative;

}

.sectionTitle{

    text-align:center;

    font-size:3rem;

    margin-bottom:60px;

    font-family:"Playfair Display",serif;

}

/* ---------- Letter ---------- */

.letter-card{

    max-width:900px;

    margin:auto;

    padding:60px;

}

.letter-card h2{

    text-align:center;

    margin-bottom:35px;

    font-size:2.5rem;

}

#letterText{

    line-height:2;

    font-size:18px;

    white-space:pre-line;

}
/* ===================================
   TIMELINE
=================================== */

.timeline{

    max-width:900px;

    margin:auto;

    display:flex;

    flex-direction:column;

    gap:35px;

}

.timeline-item{

    padding:35px;

    transition:.5s;

    transform:translateY(40px);

    opacity:0;

}

.timeline-item.show{

    transform:translateY(0);

    opacity:1;

}

.timeline-item:hover{

    transform:translateY(-10px) scale(1.02);

    box-shadow:0 25px 50px rgba(255,105,180,.25);

}

.timeline-item h3{

    color:#ff2d7b;

    margin-bottom:15px;

    font-size:24px;

}

/* ===================================
   GALLERY
=================================== */
.gallery {
  display: grid;
  /* Adjust the minmax value to control how many images per row */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px; /* This adds 20px spacing between all images */
}

.gallery img{

    width:100%;

    height:330px;

    object-fit:cover;

    border-radius:22px;

    cursor:pointer;

    transition:.45s;

    box-shadow:0 15px 40px rgba(0,0,0,.12);

}

.gallery img:hover{

    transform:translateY(-10px) scale(1.03);

}

/* ===================================
   LIGHTBOX
=================================== */

#lightbox{

    position:fixed;

    inset:0;

    display:none;

    justify-content:center;

    align-items:center;

    background:rgba(0,0,0,.88);

    z-index:99999;

    animation:fade .35s;

}

#lightbox img{

    max-width:90%;

    max-height:85%;

    border-radius:20px;

    box-shadow:0 20px 60px rgba(0,0,0,.45);

}

#closeLightbox{

    position:absolute;

    top:25px;

    right:40px;

    color:white;

    font-size:55px;

    cursor:pointer;

}

/* ===================================
   ENDING
=================================== */

.ending{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px;

    text-align:center;

}

.ending .glass{

    padding:70px;

    max-width:750px;

}

.ending h2{

    font-size:3rem;

    margin-bottom:20px;

    font-family:"Playfair Display",serif;

}

.ending p{

    font-size:20px;

    margin-bottom:40px;

}

#celebrate{

    border:none;

    background:#ff2d7b;

    color:white;

    padding:18px 40px;

    border-radius:60px;

    font-size:18px;

    cursor:pointer;

    transition:.35s;

}

#celebrate:hover{

    transform:scale(1.08);

}

/* ===================================
   FLOATING HEARTS
=================================== */

.heart{

    position:absolute;

    color:#ff4d94;

    animation:floatUp linear forwards;

    opacity:.8;
    -webkit-user-select:none;
    user-select:none;

}

@keyframes floatUp{

    0%{

        transform:translateY(0) scale(.5);

        opacity:0;

    }

    20%{

        opacity:1;

    }

    100%{

        transform:translateY(-120vh) scale(1.6);

        opacity:0;

    }

}

/* ===================================
   FADE
=================================== */

@keyframes fade{

    from{

        opacity:0;

    }

    to{

        opacity:1;

    }

}

/* ===================================
   SCROLL ANIMATION
=================================== */

.reveal{

    opacity:0;

    transform:translateY(70px);

    transition:1s;

}

.reveal.active{

    opacity:1;

    transform:translateY(0);

}

/* ===================================
   MOBILE
=================================== */

@media(max-width:768px){

.hero h1{

    font-size:2.3rem;

}

.hero-card{

    padding:45px 25px;

}

.section{

    padding:80px 25px;

}

.sectionTitle{

    font-size:2rem;

}

.letter-card{

    padding:35px;

}

.ending .glass{

    padding:40px 25px;

}

.gallery img{

    height:250px;

}

#relationshipTimer{

    font-size:1.4rem;

}

.login-box{

    padding:30px;

}

}

@keyframes fall{
to{
transform:translateY(110vh);
}
}
@keyframes particleFloat{

0%,100%{

transform:translateY(0px);

}

50%{

transform:translateY(-40px);

}

}
#musicBtn{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.25);

    -webkit-backdrop-filter:blur(20px);

    backdrop-filter:blur(20px);

    color:white;

    font-size:28px;

    cursor:pointer;

    z-index:9999;

    transition:.4s;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}

#musicBtn:hover{

    transform:scale(1.12) rotate(15deg);

}

.musicPlaying{

    animation:musicPulse 1.8s infinite;

}

@keyframes musicPulse{

0%{

transform:scale(1);

}

50%{

transform:scale(1.12);

}

100%{

transform:scale(1);

}

}
/* ==========================
APPLE HERO
========================== */

.hero{

height:100vh;

display:flex;

justify-content:center;

align-items:center;

position:relative;

overflow:hidden;

background:

linear-gradient(
135deg,
#fff,
#ffeaf3,
#ffd8ea
);

}

/* Aurora */

.aurora{

position:absolute;

width:1200px;

height:1200px;

background:

radial-gradient(circle,
rgba(255,90,150,.35),
transparent 70%);

filter:blur(100px);

animation:auroraMove 12s ease-in-out infinite;

}

@keyframes auroraMove{

0%{

transform:
translate(-200px,-150px)
scale(1);

}

50%{

transform:
translate(150px,120px)
scale(1.3);

}

100%{

transform:
translate(-200px,-150px)
scale(1);

}

}

/* Card */

.heroCard{

padding:70px;

max-width:950px;

width:90%;

text-align:center;

position:relative;

z-index:10;

transition:.5s;

}

/* Apple Typography */

.smallTitle{

letter-spacing:5px;

text-transform:uppercase;

opacity:.6;

margin-bottom:20px;

}

.heroTitle{

font-size:72px;

line-height:1.15;

font-family:

"Playfair Display",serif;

margin-bottom:30px;

}

.heroText{

font-size:22px;

opacity:.75;

margin-bottom:40px;

}

.heroButton{

display:inline-block;

padding:18px 45px;

background:#ff3f84;

color:white;

border-radius:60px;

text-decoration:none;

transition:.4s;

font-weight:600;

}

.heroButton:hover{

transform:

translateY(-5px)
scale(1.03);

box-shadow:

0 20px 40px

rgba(255,70,140,.35);

}
/* Mouse Glow */

.mouseGlow{

position:fixed;

width:350px;

height:350px;

border-radius:50%;

background:

radial-gradient(circle,

rgba(255,255,255,.55),

transparent);

pointer-events:none;

filter:blur(60px);

z-index:1;

transform:

translate(-50%,-50%);

transition:

left .08s linear,

top .08s linear;

}
/* Heart Beat */

.heartPulse{

display:inline-block;

animation:beat 1.5s infinite;

}

@keyframes beat{

0%{

transform:scale(1);

}

20%{

transform:scale(1.25);

}

40%{

transform:scale(.95);

}

60%{

transform:scale(1.18);

}

100%{

transform:scale(1);

}}