
/* ==========================================
   ANSHUU BIRTHDAY WEBSITE
   COMPLETE UPDATED STYLE.CSS
   ========================================== */

/* ROOT COLORS */

:root {
  --pink: #ff719a;
  --cream: #fff5f7;
  --dark: #191329;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--dark);
  background: var(--cream);
  overflow-x: hidden;
}

/* ==========================================
   NAVIGATION
   ========================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #191329f5;
  color: white;
  padding: 15px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.logo {
  font-size: 19px;
  font-style: italic;
  color: white;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 13px;
}

/* ==========================================
   HERO / HOME PAGE
   ========================================== */

/* HERO / HOME PAGE */

.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  text-align: center;
  color: white;
  background: linear-gradient(
    135deg,
    #171329,
    #402044,
    #251b42
  );
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
  padding: 0;
}

.eyebrow {
  color: #ffd5e4;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 12px;
}

h1 {
  font-size: clamp(40px, 8vw, 78px);
  line-height: 1.1;
  margin: 8px 0;
  font-weight: normal;
}

.script {
  font-style: italic;
  color: #ffb6ce;
}

.hero-text {
  max-width: 590px;
  margin: auto;
  line-height: 1.6;
  font-size: 17px;
}

.made-by {
  font-size: 13px;
  margin-top: 8px;
}

/* MOBILE HOME PAGE */

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 15px 16px;
  }

  .hero-text {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(38px, 10vw, 58px);
  }
}


/* ==========================================
   BUTTONS
   ========================================== */

button {
  border: none;
  border-radius: 30px;
  padding: 14px 24px;
  margin: 9px 5px;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

button:hover {
  transform: translateY(-3px);
}

.primary {
  color: white;
  background: var(--pink);
}

.secondary {
  color: white;
  background: transparent;
  border: 1px solid #ffffff88;
}

/* ==========================================
   HEARTS AND STARS
   ========================================== */

.heart {
  display: inline-block;
  font-size: 34px;
  animation: heartbeat 1.2s infinite;
}

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background-image:
    radial-gradient(2px 2px at 15% 25%, white 80%, transparent),
    radial-gradient(2px 2px at 80% 18%, #ffc8e0 80%, transparent),
    radial-gradient(2px 2px at 65% 75%, white 80%, transparent),
    radial-gradient(2px 2px at 30% 80%, #b6dfff 80%, transparent);

  background-size: 220px 200px;
  opacity: 0.7;
}

/* ==========================================
   COMMON SECTION SETTINGS
   ========================================== */

section {
  padding: 38px 7%;
  text-align: center;
}

.section-title {
  font-size: clamp(29px, 5vw, 42px);
  font-weight: normal;
  font-style: italic;
  margin-bottom: 12px;
}

.subtitle {
  color: #826b82;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ==========================================
   COUNTDOWN
   ========================================== */

.countdown {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 20px auto;
}

.time-box {
  background: white;
  box-shadow: 0 6px 22px #54264e10;
  border-radius: 15px;
  padding: 18px;
  min-width: 85px;
}

.time-box strong {
  display: block;
  font-size: 30px;
  color: #d94c82;
}

.time-box span {
  font-size: 12px;
  color: #826b82;
}

#countdownMessage {
  color: #b04476;
  font-style: italic;
}

/* ==========================================
   LOVE LETTER
   ========================================== */

.letter-section {
  background: #fffaf8;
}

.letter {
  max-width: 760px;
  margin: 18px auto 0;
  background: white;
  padding: clamp(25px, 5vw, 45px);
  border-radius: 24px;
  box-shadow: 0 10px 35px #45244810;
  line-height: 1.85;
  font-size: 17px;
  text-align: left;
}

.letter h3 {
  text-align: center;
  color: #c74379;
  font-size: 27px;
  margin-bottom: 16px;
}

.letter p {
  margin-bottom: 12px;
}

.signature {
  text-align: right;
  color: #c74379;
  font-style: italic;
  margin-top: 20px;
  font-size: 21px;
}

/* ==========================================
   PHOTO GALLERY
   ========================================== */

.gallery-section {
  background: #fbe6ef;
}

.photos {
  max-width: 1100px;
  margin: 18px auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.photo-card {
  background: white;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 8px 24px #54264e10;
  overflow: hidden;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fff;
  border-radius: 13px;
}

.photo-placeholder {
  width: 100%;
  height: 320px;
  border: 2px dashed #e7a9c2;
  border-radius: 13px;

  background: linear-gradient(
    135deg,
    #fff7fa,
    #f8e5ef
  );

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: #b65b82;
  font-size: 38px;
}

.photo-placeholder span {
  font-size: 15px;
  font-style: italic;
}

.photo-card figcaption {
  padding: 12px 5px 6px;
  font-style: italic;
  color: #9e4770;
}

.photo-help {
  font-size: 13px;
  color: #775e71;
  line-height: 1.8;
}

/* ==========================================
   WHAT YOU MEAN TO ME
   ========================================== */

.memories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 18px auto 0;
}

.memory {
  background: white;
  border-radius: 18px;
  padding: 22px 15px;
}

.memory span {
  font-size: 35px;
}

.memory h3 {
  margin: 10px 0;
  color: #c74379;
}

.memory p {
  font-size: 14px;
  line-height: 1.8;
}

/* ==========================================
   FINAL SURPRISE
   ========================================== */

.surprise-section {
  background: linear-gradient(
    135deg,
    #281b3b,
    #55264f
  );
  color: white;
}

.surprise-message {
  max-width: 720px;
  margin: 20px auto;
  line-height: 1.9;
  font-size: 18px;
}

/* ==========================================
   HIDDEN ELEMENTS
   ========================================== */

.hidden {
  display: none;
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: #191329;
  color: white;
  text-align: center;
  padding: 22px 15px;
  line-height: 1.8;
}

footer span {
  color: #ff94b7;
}

/* ==========================================
   FLOATING HEART ANIMATION
   ========================================== */

.floating-heart {
  position: fixed;
  bottom: -30px;
  z-index: 100;
  pointer-events: none;
  animation: floatUp 4s linear forwards;
}

@keyframes heartbeat {
  50% {
    transform: scale(1.18);
  }
}

@keyframes floatUp {
  to {
    transform: translateY(-110vh) rotate(30deg);
    opacity: 0;
  }
}

/* ==========================================
   SONG PLAYER
   ========================================== */

.song-player {
  width: min(560px, 92vw);
  margin: 15px auto 0;
  aspect-ratio: 16 / 9;
  border: 1px solid #ffffff55;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 35px #0005;
}

.song-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.song-player.hidden {
  display: none;
}

/* ==========================================
   TABLET AND MOBILE RESPONSIVE
   ========================================== */

@media (max-width: 760px) {

  nav {
    flex-direction: column;
    padding: 13px 5%;
  }

  .nav-links {
    justify-content: center;
    gap: 12px;
  }

  .hero {
    min-height: 55vh;
    padding: 15px 16px;
  }

  .hero-text {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(38px, 10vw, 58px);
  }

  section {
    padding: 32px 6%;
  }

  .photos {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 15px;
  }

  .photo-placeholder {
    height: 320px;
  }

  .photo-card img {
    height: auto;
    max-height: 520px;
    object-fit: contain;
  }

  .memories {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .letter {
    padding: 25px 20px;
  }

  .song-player {
    width: 100%;
  }
}

/* ==========================================
   SMALL MOBILE SCREENS
   ========================================== */

@media (max-width: 400px) {

  .nav-links {
    gap: 9px;
  }

  .nav-links a {
    font-size: 12px;
  }

  .time-box {
    min-width: 72px;
    padding: 14px 10px;
  }

  .time-box strong {
    font-size: 25px;
  }

  .section-title {
    font-size: 29px;
  }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
