/* ==========================================
   RESPONSIVE.CSS
   Mobile & tablet styles for Project Forever
   (Overrides style.css)
========================================== */

/* ---------- Tablet (900px and below) ---------- */

@media (max-width: 900px){

  .container{
    width:92%;
  }

}

/* ---------- Mobile (768px and below) ---------- */








/* ==========================================
   MOBILE TIMELINE (iPhone Optimized)
========================================== */

@media (max-width: 768px) {

  .story-section{
    padding:90px 0;
    background:#fffaf8;
  }

  .story-section h2{
    font-size:52px;
    line-height:1.05;
    margin-bottom:18px;
  }

  .section-intro{
    font-size:18px;
    line-height:1.7;
    margin-bottom:60px;
    padding:0 8px;
  }

  /* Timeline line */
  .timeline{
    position:relative;
    padding-left:38px;
  }

  .timeline::before{
    content:"";
    position:absolute;
    left:16px;
    top:0;
    bottom:0;
    width:3px;
    background:linear-gradient(
      to bottom,
      #ffd6e5,
      #ff8fb8,
      #ffd6e5
    );
    border-radius:20px;
  }

  /* Each memory */
  .timeline-item{
    position:relative;
    margin-bottom:56px;
    padding-left:0;
  }

  /* Pink circle */
  .timeline-item::before{
    content:"";
    position:absolute;
    left:-30px;
    top:10px;

    width:18px;
    height:18px;

    background:#ff4d8d;
    border-radius:50%;

    border:5px solid #fff7fa;
    box-shadow:0 0 18px rgba(255,77,141,.25);
    z-index:2;
  }

  /* DATE — FIXES OVERLAP */
  .timeline-date{
    text-align:left;
    padding:0;
    margin:0 0 16px 0;

    font-size:13px;
    font-weight:700;
    letter-spacing:2px;
    color:#ff4d8d;

    padding-left:10px;
  }

  /* Card */
  .timeline-content{
    width:100%;
    margin:0 !important;

    background:#fff;
    border-radius:24px;
    overflow:hidden;

    box-shadow:
      0 12px 28px rgba(0,0,0,.06),
      0 0 20px rgba(255,77,141,.05);
  }

  .timeline-content img{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
  }

  .timeline-text{
    padding:22px;
  }

  .timeline-text h3{
    font-size:34px;
    line-height:1.1;
    margin-bottom:14px;
  }

  .timeline-text p{
    font-size:17px;
    line-height:1.75;
    color:#555;
  }

  /* Cute little heart after title */
  .timeline-text h3::after{
    content:" ♡";
    color:#ff6b9c;
    font-size:24px;
    font-weight:400;
  }

  /* Last item spacing */
  .timeline-item:last-child{
    margin-bottom:0;
  }
}



/* Mobile */

@media(max-width:900px){

.gallery-grid{
    grid-template-columns:1fr;
    gap:22px;
}

.gallery-item.large img,
.gallery-item.wide img,
.gallery-item.portrait img{
    height:320px;
}

.gallery-item{
    transform:none;
}

}


.section-heading{
    text-align:center;
    margin-bottom:70px;
}

.section-heading h2{
    font-family:'Playfair Display',serif;
    font-size:64px;
    margin:15px 0;
}

.section-heading .section-intro{
    max-width:650px;
    margin:auto;
}



/* ======================================
   MOBILE HERO IMPROVEMENTS
====================================== */
@media (max-width: 768px) {

  .hero{
    min-height:100svh;
    padding:120px 24px 50px;
    align-items:flex-end;
  }

  .hero-content{
    max-width:100%;
    margin:0;
  }

  .eyebrow{
    font-size:12px;
    letter-spacing:5px;
    margin-bottom:14px;
  }

  .hero h1{
    font-size:52px;
    line-height:0.95;
    margin-bottom:18px;
  }

  .hero-description{
    font-size:18px;
    line-height:1.6;
    margin-bottom:28px;
  }

  .primary-button{
    width:100%;
    padding:16px;
    justify-content:center;
  }

  .scroll-indicator{
    margin-top:36px;
  }

  /* Navbar */
  .navbar{
    top:10px;
  }

  .navbar .container{
    padding:14px 18px;
    border-radius:22px;
  }

  .logo{
    font-size:20px;
  }

  .nav-links{
    gap:18px;
  }

  .nav-links a{
    font-size:14px;
  }
}
/* ==========================================
   WHY I LOVE YOU — MOBILE (FINAL)
========================================== */

@media (max-width:768px){

  .reasons-section{
    padding:90px 0;
  }

  .reasons-section h2{
    font-size:42px;
    line-height:1.08;
    margin-bottom:18px;
  }

  .reasons-section .section-intro{
    font-size:17px;
    line-height:1.7;
    padding:0 12px;
    margin-bottom:38px;
  }

  /* Decorative heart becomes smaller */
  .reasons-section::before{
    font-size:90px;
    right:-10px;
    top:55px;
    opacity:.18;
  }

  /* One beautiful envelope per row */
  .reasons-grid{
    grid-template-columns:1fr;
    gap:22px;
    margin-top:40px;
  }

  .envelope-card{
    border-radius:24px;
  }

  /* Closed envelope */
  .envelope-front{
    height: 155px;
    padding:24px 20px;
    border-radius:24px;
  }

  /* Smaller wax seal */
  .envelope-seal{
    width:48px;
    height:48px;
    top:16px;
    right:16px;
    font-size:20px;
  }

  .envelope-front h3{
    font-size:30px;
    margin-top:10px;
    margin-bottom:8px;
  }

  .envelope-front p{
    font-size:11px;
    letter-spacing:2px;
  }

  /* Love letter */
  .envelope-letter{
    padding:0 22px;
  }

  .envelope-letter p{
    font-size:16px;
    line-height:1.85;
    margin-bottom:14px;
  }

  .envelope-card.open .envelope-letter{
    padding:24px 22px 28px;
    max-height:600px;
  }

  .envelope-signature{
    font-size:26px;
  }

  /* Slightly softer shadow on phones */
  .envelope-card:hover{
    transform:none;
    box-shadow:0 10px 24px rgba(255,77,141,.10);
  }
}
/* ==========================================
   MUSIC PLAYER — MOBILE
========================================== */

@media(max-width:768px){

    .music-player{

        bottom:14px;

        width:94%;

        padding:12px 14px;
        border-radius:22px;
        gap:12px;

    }

    .music-cover{

        width:54px;
        height:54px;
        border-radius:14px;

    }

    .music-info h4{

        font-size:15px;

    }

    .music-info p{

        font-size:11px;

    }

    .play-button{

        width:48px;
        height:48px;

        font-size:18px;

    }

}
/* ======================================
   SPOTIFY-STYLE MUSIC PLAYER — MOBILE FIX
====================================== */

@media (max-width:768px){

  .music-player{
    position:fixed;

    left:12px;
    right:12px;
    bottom:14px;

    width:auto;
    max-width:none;

    transform:none;

    padding:10px 12px;
    border-radius:22px;

    display:flex;
    align-items:center;
    gap:12px;

    background:rgba(255,255,255,.92);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    box-shadow:0 10px 35px rgba(255,77,141,.18);

    z-index:9999;
  }

  .music-cover{
    width:52px;
    height:52px;
    border-radius:16px;
    flex-shrink:0;
  }

  .music-info{
    flex:1;
    min-width:0;
  }

  .music-info h4{
    font-size:14px;
    margin:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .music-info p{
    font-size:12px;
    margin:2px 0 8px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    color:#777;
  }

  .progress{
    height:4px;
    border-radius:999px;
    background:#ffd2e2;
  }

  .progress-fill{
    height:100%;
    border-radius:999px;
    background:#ff4d8d;
  }

  .play-btn{
    width:52px;
    height:52px;
    flex-shrink:0;
    border-radius:50%;
  }

  /* Space so footer is never hidden */
  body{
    padding-bottom:100px;
  }

}
/* ==========================================
   FLOATING HEARTS
========================================== */

#floating-hearts{
    position:fixed;
    inset:0;
    pointer-events:none;
    overflow:hidden;
    z-index:9998;
}

.floating-heart{
    position:absolute;
    bottom:-40px;

    color:#ff6b9d;
    opacity:.75;

    animation:floatHeart linear forwards;
}

@keyframes floatHeart{

    0%{
        transform:translateY(0) scale(.6);
        opacity:0;
    }

    15%{
        opacity:.8;
    }

    100%{
        transform:translateY(-110vh) scale(1.3);
        opacity:0;
    }

}