/* =============================================
   SAMEERA'S BIRTHDAY WEBSITE — style.css
   ============================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:       #ff6b9d;
  --pink-soft:  #ffb3cc;
  --purple:     #a855f7;
  --purple-deep:#7c3aed;
  --rose:       #fb7185;
  --blush:      #fdf2f8;
  --white:      #ffffff;
  --glass-bg:   rgba(255,255,255,0.12);
  --glass-border: rgba(255,255,255,0.25);
  --text-dark:  #2d1b36;
  --text-mid:   #5a3a6a;
  --gradient:   linear-gradient(135deg, #ff6b9d 0%, #c84b9e 40%, #7c3aed 100%);
  --gradient-soft: linear-gradient(135deg, #ffeaf4 0%, #f3e8ff 100%);
  --shadow:     0 8px 40px rgba(168,85,247,0.18);
  --font-display: 'Playfair Display', serif;
  --font-script:  'Dancing Script', cursive;
  --font-body:    'Lato', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: #0f0015;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* --- FLOATING HEARTS --- */
.hearts-container {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.heart {
  position: absolute;
  bottom: -60px;
  font-size: 1.2rem;
  opacity: 0;
  animation: floatHeart linear infinite;
  user-select: none;
}
@keyframes floatHeart {
  0%   { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-110vh) rotate(25deg) scale(1.1); opacity: 0; }
}

/* --- MUSIC BUTTON --- */
.music-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: var(--gradient);
  border: none;
  border-radius: 50px;
  padding: 10px 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  box-shadow: 0 4px 20px rgba(255,107,157,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}
.music-btn:hover { transform: scale(1.07); box-shadow: 0 6px 28px rgba(255,107,157,0.7); }
.music-btn.playing .music-icon { animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--gradient);
  overflow: hidden;
  padding: 40px 20px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px;
}
.hero-eyebrow {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: #fff;
  line-height: 1.15;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
  margin-bottom: 8px;
}
.gradient-text {
  background: linear-gradient(90deg, #fff, #ffd6ea, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 30px;
}
.nickname { color: #ffd6ea; }

.hero-image-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 36px;
}
.hero-img {
  width: clamp(220px, 55vw, 340px);
  height: clamp(220px, 55vw, 340px);
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.5);
  box-shadow: 0 0 60px rgba(255,107,157,0.5), 0 0 120px rgba(168,85,247,0.3);
  display: block;
  background: rgba(255,255,255,0.15);
}
.hero-img-glow {
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,183,204,0.25) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 0.7; }
  50%      { transform: scale(1.07); opacity: 1; }
}

.cta-btn {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  font-family: var(--font-script);
  font-size: 1.25rem;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: all 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 0 rgba(255,255,255,0.4);
  animation: glowBtn 2.5s ease-in-out infinite;
}
.cta-btn:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
@keyframes glowBtn {
  0%,100% { box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 0 rgba(255,255,255,0.4); }
  50%      { box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 20px 6px rgba(255,255,255,0.2); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* --- SECTIONS COMMON --- */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 10vw, 100px) 20px;
}
.container {
  max-width: 960px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
  display: block;
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--white);
  font-style: italic;
  margin-bottom: 14px;
}
.title-line {
  width: 60px; height: 3px;
  background: var(--gradient);
  border-radius: 99px;
  margin: 0 auto;
}

/* --- GLASS CARD --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: clamp(28px, 6vw, 52px);
  box-shadow: var(--shadow);
}

/* --- STORY SECTION --- */
.story-section { background: #130020; }
.story-card {
  color: rgba(255,255,255,0.88);
  line-height: 1.85;
  font-size: 1.05rem;
}
.story-card p + p { margin-top: 18px; }
.story-card em { color: var(--pink-soft); font-style: italic; }
.story-card strong { color: #fff; }
.story-icon { font-size: 2.5rem; text-align: center; margin-bottom: 20px; }
.story-closing {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--pink-soft);
  text-align: center;
  margin-top: 28px !important;
}

/* --- GALLERY SECTION --- */
.gallery-section { background: #0f001a; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.gallery-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(255,107,157,0.28); }
.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.06);
}
.gallery-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(168,85,247,0.65) 0%, transparent 60%);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-family: var(--font-script);
  font-size: 1.2rem;
}
.gallery-caption {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-align: center;
  padding: 12px 14px;
}

/* --- LETTER SECTION --- */
.letter-section { background: #130020; }
.letter-card {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  line-height: 1.9;
  position: relative;
}
.letter-card::before {
  content: '❤️';
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
}
.letter-date {
  font-family: var(--font-script);
  color: var(--pink-soft);
  font-size: 1rem;
  margin-bottom: 4px;
}
.letter-salutation {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
}
.letter-card p + p { margin-top: 18px; }
.letter-card strong { color: #fff; }
.letter-card em { color: var(--pink-soft); }
.letter-closing {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--pink);
  text-align: center;
  margin-top: 32px !important;
}
.letter-sign {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.7);
  text-align: right;
  margin-top: 10px !important;
}

/* --- DREAMS SECTION --- */
.dreams-section { background: #0f001a; }
.dreams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.dream-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: default;
}
.dream-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(255,107,157,0.5);
  box-shadow: 0 20px 50px rgba(255,107,157,0.2);
}
.dream-icon { font-size: 2.8rem; margin-bottom: 16px; display: block; }
.dream-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 12px;
}
.dream-card p { color: rgba(255,255,255,0.72); font-size: 0.92rem; line-height: 1.7; }

/* --- FINALE SECTION --- */
.finale-section {
  background: #0a0012;
  text-align: center;
  padding: clamp(80px, 12vw, 130px) 20px;
  overflow: hidden;
}
.finale-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(168,85,247,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.finale-image-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
}
.finale-img {
  width: clamp(200px, 50vw, 320px);
  height: clamp(200px, 50vw, 320px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,107,157,0.5);
  box-shadow: 0 0 70px rgba(168,85,247,0.4), 0 0 140px rgba(255,107,157,0.2);
  display: block;
  background: rgba(255,255,255,0.06);
}
.finale-img-glow {
  position: absolute; inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,157,0.2) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite;
  pointer-events: none;
}
.finale-text { max-width: 700px; margin: 0 auto; }
.finale-line1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  margin-bottom: 18px;
}
.finale-line2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 3.5vw, 1.8rem);
  color: rgba(255,255,255,0.85);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease 0.6s;
  margin-bottom: 48px;
}
.finale-line1.visible, .finale-line2.visible {
  opacity: 1; transform: translateY(0);
}
.finale-nikah {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--pink);
  opacity: 0;
  transform: scale(0.8);
  transition: all 1s ease 1.4s;
  text-shadow: 0 0 30px rgba(255,107,157,0.6), 0 0 60px rgba(255,107,157,0.3);
  animation: none;
}
.finale-nikah.visible {
  opacity: 1;
  transform: scale(1);
  animation: nikahGlow 3s ease-in-out infinite 2.5s;
}
@keyframes nikahGlow {
  0%,100% { text-shadow: 0 0 30px rgba(255,107,157,0.6), 0 0 60px rgba(255,107,157,0.3); }
  50%      { text-shadow: 0 0 50px rgba(255,107,157,0.9), 0 0 100px rgba(255,107,157,0.5), 0 0 160px rgba(168,85,247,0.3); }
}

/* --- FOOTER --- */
.footer {
  background: #070010;
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  line-height: 2;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-sign {
  font-family: var(--font-script);
  font-size: 1.1rem;
  color: var(--pink-soft);
}

/* --- FADE IN ON SCROLL --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- SCROLL LINK --- */
.scroll-link { cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dreams-grid  { grid-template-columns: 1fr 1fr; gap: 14px; }
  .dream-card   { padding: 24px 16px; }
  .glass-card   { padding: 28px 20px; }
  .music-btn    { bottom: 16px; right: 16px; }
}
@media (max-width: 400px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .dreams-grid  { grid-template-columns: 1fr; }
}
