/* ============================================================
   For Kawtar 💕 — Styles
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --bg:           #0d0610;
  --bg-mid:       #130a1a;
  --rose-gold:    #c9788a;
  --rose-light:   #e8a5b4;
  --rose-dark:    #8b3a52;
  --gold:         #e8c97e;
  --cream:        #f5efe8;
  --text:         #e8ddd5;
  --text-muted:   #a08898;
  --card-bg:      rgba(40, 15, 30, 0.75);
  --card-border:  rgba(201, 120, 138, 0.25);
  --glow:         rgba(201, 120, 138, 0.4);
  --font-serif:   'Lora', Georgia, serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-script:  'Dancing Script', cursive;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  min-height: 100vh;
}
audio, canvas, iframe, img, svg, video { vertical-align: middle; }
fieldset { border: 0; margin: 0; padding: 0; }
textarea { resize: vertical; }
::-moz-selection { background: var(--rose-dark); color: var(--cream); text-shadow: none; }
::selection      { background: var(--rose-dark); color: var(--cream); text-shadow: none; }
.hidden, [hidden] { display: none !important; }
.visually-hidden {
  border: 0; clip: rect(0,0,0,0); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  white-space: nowrap; width: 1px;
}

/* ---------- Stars background ---------- */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--dur, 3s) ease-in-out infinite alternate;
  opacity: 0;
}
@keyframes twinkle {
  from { opacity: 0;    transform: scale(0.6); }
  to   { opacity: 0.85; transform: scale(1.2); }
}

/* ---------- Hearts canvas ---------- */
#hearts-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Page wrapper ---------- */
.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--rose-gold), transparent);
}
.hero-content { animation: fadeUp 1.2s ease both; }

.rose-emoji {
  font-size: clamp(3rem, 8vw, 5rem);
  display: block;
  animation: roseFloat 4s ease-in-out infinite, fadeIn 1.4s ease both;
  filter: drop-shadow(0 0 18px rgba(201,120,138,0.7));
  margin-bottom: 1rem;
}
@keyframes roseFloat {
  0%, 100% { transform: translateY(0)     rotate(-5deg); }
  50%       { transform: translateY(-18px) rotate(5deg);  }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
}
.for-text {
  font-size: 0.45em;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.name {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--gold) 60%, var(--rose-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px var(--glow));
  animation: shimmer 5s linear infinite;
  background-size: 200% auto;
}
@keyframes shimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-family: var(--font-script);
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  color: var(--rose-light);
  opacity: 0.9;
  animation: fadeUp 1.6s 0.3s ease both;
}

.scroll-hint {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fadeIn 2s 1.2s ease both;
}
.scroll-arrow { animation: bounce 1.8s ease-in-out infinite; font-size: 1.2rem; }
@keyframes bounce {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(10px); }
}

/* ==========================================================================
   LETTER
   ========================================================================== */
.letter-section { padding: 6rem 0; }

.letter-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(2rem, 6vw, 4rem);
  box-shadow: 0 8px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.letter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(201,120,138,0.08), transparent 65%);
  pointer-events: none;
}
.letter-header {
  text-align: center;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 2rem;
}
.wax-seal {
  font-size: 2.8rem;
  display: block;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 10px rgba(232,201,126,0.5));
  animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    }
  50%       { transform: scale(1.12); }
}
.letter-header h2 {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--rose-light);
}
.letter-body p {
  margin-bottom: 1.4rem;
  color: var(--text);
  font-size: 1.05rem;
}
.love-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 3px solid var(--rose-gold);
  background: rgba(201,120,138,0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-light);
  line-height: 1.6;
}
.sign-off {
  margin-top: 2rem;
  text-align: right;
  font-style: italic;
  color: var(--text-muted);
}
.signature {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--rose-gold);
  display: block;
  margin-top: 0.4rem;
}

/* ==========================================================================
   REASONS
   ========================================================================== */
.reasons-section { padding: 5rem 0; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, var(--rose-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.reason-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: default;
}
.reason-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 30px var(--glow);
  border-color: var(--rose-gold);
}
.reason-icon {
  font-size: 2.2rem;
  margin-bottom: 0.9rem;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.25));
  transition: transform 0.3s ease;
}
.reason-card:hover .reason-icon { transform: scale(1.2) rotate(10deg); }
.reason-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  transition: color 0.3s ease;
}
.reason-card:hover p { color: var(--text); }

/* ==========================================================================
   PROMISE
   ========================================================================== */
.promise-section { padding: 5rem 0 6rem; }

.promise-content {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(2rem, 6vw, 4rem);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.promise-content::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgba(201,120,138,0.06), transparent 60%);
  pointer-events: none;
}
.promise-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--rose-light);
}
.promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.promise-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text);
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,120,138,0.1);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.promise-list li:hover {
  background: rgba(201,120,138,0.08);
  border-color: var(--rose-gold);
  transform: translateX(6px);
}
.promise-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.2));
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.page-footer {
  padding: 3rem 0 4rem;
  text-align: center;
  border-top: 1px solid var(--card-border);
}
.footer-hearts {
  font-size: 1.6rem;
  letter-spacing: 0.6rem;
  margin-bottom: 0.8rem;
  animation: pulse 3s ease-in-out infinite;
}
.footer-text {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--rose-light);
  margin-bottom: 0.6rem;
}
.footer-small {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 540px) {
  .reasons-grid { grid-template-columns: 1fr; }
  .love-quote { padding: 1.2rem; font-size: 1rem; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  *, *::before, *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
  canvas, .stars { display: none !important; }
}
