/* =========================================================
   SANIYAT KABIR ISHAN — BIRTHDAY EXPERIENCE
   Design tokens: aurora-glass, cinematic minimal
   ========================================================= */

:root{
  /* --- Color: aurora-glass palette --- */
  --bg:            #08070C;
  --bg-soft:       #0D0C14;
  --ink:           #F3F1F7;
  --ink-dim:       #A9A5B8;
  --ink-faint:     #6B6779;
  --violet:        #7C6CF6;
  --violet-soft:   #A79CFA;
  --cyan:          #4FD1E8;
  --gold:          #F4C468;
  --glass:         rgba(255,255,255,0.045);
  --glass-strong:  rgba(255,255,255,0.08);
  --glass-border:  rgba(255,255,255,0.10);
  --line:          rgba(255,255,255,0.08);

  /* --- Type --- */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Manrope', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'SFMono-Regular', monospace;

  /* --- Motion --- */
  --ease: cubic-bezier(.16,.84,.32,1);
  --ease-soft: cubic-bezier(.22,.68,.36,1);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
::selection{ background: var(--violet); color: #fff; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input{ font-family: inherit; }
ol,ul{ list-style: none; }
a{ color: inherit; }

.skip-link{
  position:absolute; left:-9999px; top:0; z-index:999;
  background: var(--violet); color:#fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus{ left: 16px; top: 16px; }

:focus-visible{
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============== AMBIENT LAYERS =============== */
.aurora-field{
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.aurora{
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
  will-change: transform;
}
.a1{ width: 60vw; height: 60vw; top: -20vw; left: -10vw; background: var(--violet); animation: drift1 26s ease-in-out infinite; }
.a2{ width: 50vw; height: 50vw; bottom: -15vw; right: -10vw; background: var(--cyan); opacity: 0.35; animation: drift2 32s ease-in-out infinite; }
.a3{ width: 40vw; height: 40vw; top: 40%; left: 45%; background: var(--gold); opacity: 0.16; animation: drift3 22s ease-in-out infinite; }

@keyframes drift1{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(6vw,8vw) scale(1.15); }
}
@keyframes drift2{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(-5vw,-6vw) scale(1.1); }
}
@keyframes drift3{
  0%,100%{ transform: translate(-50%,-50%) scale(1); }
  50%{ transform: translate(-45%,-55%) scale(1.2); }
}

#particles{
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
}

.cursor-glow{
  position: fixed; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,246,0.14), transparent 70%);
  pointer-events: none; z-index: 2; transform: translate(-50%,-50%);
  transition: opacity .3s ease;
  opacity: 0;
}
@media (hover:hover){ .cursor-glow{ opacity: 1; } }

.grain{
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============== PRELOADER =============== */
.loader{
  position: fixed; inset: 0; z-index: 999; background: var(--bg);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 22px;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.hidden{ opacity: 0; visibility: hidden; }
.loader-mark{
  width: 46px; height: 60px; position: relative;
}
.loader-flame{
  position:absolute; left:50%; top:0; width:14px; height:22px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, #FFF3D6, var(--gold) 55%, transparent 75%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: flicker 1.1s ease-in-out infinite;
  filter: blur(0.3px);
}
@keyframes flicker{
  0%,100%{ transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
  50%{ transform: translateX(-50%) scale(0.9,1.08) rotate(-2deg); opacity: 0.85; }
}
.loader-text{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}

/* =============== LAYOUT HELPERS =============== */
section{
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto;
  padding: 140px 32px;
}
.eyebrow{
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--violet-soft); margin-bottom: 18px; display:inline-block;
}
.section-title{
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.01em;
}
.section-sub{ color: var(--ink-dim); max-width: 560px; font-size: 1.05rem; margin-bottom: 48px; }
.grad-text{
  background: linear-gradient(100deg, var(--violet-soft) 0%, var(--cyan) 45%, var(--gold) 78%, var(--violet-soft) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(124,108,246,0.35));
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer{
  0%,100%{ background-position: 0% 50%; }
  50%{ background-position: 100% 50%; }
}

/* The name itself: a touch more presence than surrounding words */
.hero-title .grad-text{
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.footer-name.grad-text{
  font-style: italic;
  filter: drop-shadow(0 0 16px rgba(124,108,246,0.3));
}

.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity: 1; transform: translateY(0); }

.ghost-btn{
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem;
  padding: 13px 26px; border-radius: 999px; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  display: inline-flex; align-items:center; gap: 10px;
}
.ghost-btn:hover{ transform: translateY(-3px); background: var(--glass-strong); border-color: rgba(124,108,246,0.5); }
.ghost-btn i{ color: var(--violet-soft); }

/* =============== MUSIC PLAYER =============== */
.music-player{
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display:flex; align-items:center; gap: 10px;
}
.music-toggle{
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display:flex; align-items:center; justify-content:center; font-size: 15px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.music-toggle:hover{ transform: scale(1.08); box-shadow: 0 0 24px rgba(124,108,246,0.45); }
.music-panel{
  display:flex; flex-direction:column; gap: 8px; background: var(--glass-strong);
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 12px 16px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateX(10px) scale(0.96); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.music-player.open .music-panel{ opacity: 1; transform: translateX(0) scale(1); pointer-events: auto; }
.music-info{ display:flex; align-items:center; gap: 8px; font-size: 0.8rem; color: var(--ink-dim); }
.music-eq{ display:inline-flex; align-items:flex-end; gap:2px; height: 12px; }
.music-eq i{ width: 3px; background: var(--cyan); border-radius: 2px; height: 4px; }
.music-eq.playing i{ animation: eq 0.9s ease-in-out infinite; }
.music-eq i:nth-child(1){ animation-delay: 0s; }
.music-eq i:nth-child(2){ animation-delay: .15s; }
.music-eq i:nth-child(3){ animation-delay: .3s; }
.music-eq i:nth-child(4){ animation-delay: .45s; }
@keyframes eq{ 0%,100%{ height:3px; } 50%{ height: 12px; } }
.music-row{ display:flex; align-items:center; gap: 10px; }
.volume-slider{ width: 100px; accent-color: var(--violet); }

/* =============== HERO =============== */
.hero{
  min-height: 100vh; max-width: none; padding: 0 32px;
  display:flex; flex-direction: column; justify-content: center; position: relative;
}
.hero-nav{
  position: absolute; top: 32px; left: 32px; right: 32px;
  display:flex; justify-content: space-between; align-items:center;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--ink-faint);
}
.brand{ font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); letter-spacing: 0.02em; }
.hero-content{ max-width: 780px; margin: 0 auto; text-align: center; padding-top: 90px; }
.hero-title{
  font-family: var(--font-display); font-weight: 460;
  font-optical-sizing: auto;
  font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.04; letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.reveal-line{ display:block; overflow: hidden; }
.reveal-word{
  display: inline-block; transform: translateY(110%); opacity:0;
  animation: wordUp 1s var(--ease) forwards;
}
.hero-title .reveal-line:nth-child(1) .reveal-word{ animation-delay: .1s; }
.hero-title .reveal-line:nth-child(2) .reveal-word{ animation-delay: .28s; }
.hero-title .reveal-line:nth-child(3) .reveal-word{ animation-delay: .42s; }
@keyframes wordUp{ to{ transform: translateY(0); opacity: 1; } }

.hero-quote{
  font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-dim); max-width: 620px; margin: 0 auto 56px;
  font-style: italic; line-height: 1.7;
}
.hero-stats{
  display:flex; align-items:center; justify-content:center; gap: 28px; flex-wrap: wrap;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px;
  padding: 22px 40px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  max-width: 100%;
}
.hstat{ display:flex; flex-direction: column; align-items:center; gap: 4px; min-width: 90px; }
.hstat-num{ font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--ink); }
.hstat-label{ font-size: 0.72rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.hstat-divider{ width: 1px; height: 32px; background: var(--line); }
.mono-tick{ color: var(--cyan); font-variant-numeric: tabular-nums; }

.hero-cake{ position: absolute; right: 6%; bottom: 8%; width: 220px; opacity: 0.9; pointer-events: none; }
.cake-svg{ width: 100%; height: auto; filter: drop-shadow(0 10px 40px rgba(124,108,246,0.25)); }
.flame{ animation: candleFlicker 1.6s ease-in-out infinite; transform-origin: 157px 42px; }
@keyframes candleFlicker{
  0%,100%{ transform: scale(1) rotate(0deg); }
  25%{ transform: scale(0.95,1.05) rotate(-3deg); }
  50%{ transform: scale(1.05,0.95) rotate(2deg); }
  75%{ transform: scale(0.98,1.02) rotate(-1deg); }
}

.scroll-cue{
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display:flex; flex-direction: column; align-items:center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob{ 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* =============== COUNTDOWN =============== */
.countdown-section{ text-align: center; }
.countdown-grid{
  display:flex; justify-content:center; gap: 18px; flex-wrap: wrap; margin: 48px 0 40px;
}
.cd-unit{
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px 20px; min-width: 118px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.cd-unit:hover{ transform: translateY(-6px); border-color: rgba(124,108,246,0.45); box-shadow: 0 12px 40px rgba(124,108,246,0.18); }
.cd-num{
  display:block; font-family: var(--font-mono); font-size: clamp(2rem,4vw,2.8rem); font-weight: 500;
  background: linear-gradient(160deg, var(--ink), var(--violet-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.cd-label{ font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 6px; display:block; }
.cd-actions{ display:flex; justify-content:center; gap: 16px; flex-wrap: wrap; }

/* =============== CELEBRATION OVERLAY =============== */
.celebration-overlay{
  position: fixed; inset: 0; z-index: 200; display:none;
  align-items:center; justify-content:center;
  background: radial-gradient(circle at 50% 40%, rgba(124,108,246,0.25), rgba(8,7,12,0.94));
}
.celebration-overlay.active{ display:flex; }
#confettiCanvas{ position:absolute; inset:0; width:100%; height:100%; }
.balloons{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.balloon{
  position:absolute; bottom: -140px; width: 46px; height: 58px; border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  animation: floatUp linear forwards;
  opacity: 0.9;
}
.balloon::after{
  content:''; position:absolute; left:50%; top:100%; width:1px; height: 40px; background: rgba(255,255,255,0.3); transform: translateX(-50%);
}
@keyframes floatUp{
  to{ transform: translateY(-120vh) translateX(var(--drift,0)) rotate(var(--rot,8deg)); opacity: 0.2; }
}
.celebration-message{
  position: relative; text-align:center; max-width: 560px; padding: 48px 40px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  animation: popIn .6s var(--ease-soft);
}
@keyframes popIn{ from{ transform: scale(0.9); opacity:0; } to{ transform: scale(1); opacity:1; } }
.celebration-message h3{
  font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 16px; font-weight: 500;
}
.celebration-message p{ color: var(--ink-dim); margin-bottom: 28px; line-height: 1.6; }

/* =============== TIMELINE =============== */
.timeline-track{ position: relative; margin-top: 48px; }
.timeline-line{
  position: absolute; left: 20px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
@media(min-width: 760px){ .timeline-line{ left: 50%; transform: translateX(-50%); } }
.timeline-list{ display:flex; flex-direction: column; gap: 48px; }
.tl-item{
  position: relative; padding-left: 56px; opacity:0; transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.tl-item.in{ opacity:1; transform: translateY(0); }
.tl-item::before{
  content:''; position: absolute; left: 12px; top: 4px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--violet-soft); box-shadow: 0 0 0 4px rgba(124,108,246,0.12);
}
.tl-item.future::before{ border-color: var(--ink-faint); }
@media(min-width: 760px){
  .tl-item{ width: 46%; padding-left: 0; padding-right: 40px; text-align: right; }
  .tl-item::before{ left: auto; right: -30px; transform: translateX(50%); }
  .tl-item:nth-child(even){ margin-left: 54%; padding-right: 0; padding-left: 40px; text-align: left; }
  .tl-item:nth-child(even)::before{ right: auto; left: -30px; transform: translateX(-50%); }
}
.tl-year{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--violet-soft); letter-spacing: 0.08em; }
.tl-title{ font-family: var(--font-display); font-size: 1.3rem; margin: 6px 0 6px; font-weight: 500; }
.tl-desc{ color: var(--ink-dim); font-size: 0.92rem; }

/* =============== LIFE STATS =============== */
.stats-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; margin-top: 40px;
}
.stat-card{
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 26px 24px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.stat-card:hover{ transform: translateY(-5px); border-color: rgba(79,209,232,0.4); }
.stat-num{
  font-family: var(--font-mono); font-size: 1.8rem; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums; display:block; margin-bottom: 6px;
}
.stat-label{ color: var(--ink-faint); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* =============== QUOTES =============== */
.quote-section{ text-align:center; padding: 100px 32px; }
.quote-rotator{ max-width: 700px; margin: 0 auto; min-height: 120px; display:flex; align-items:center; justify-content:center; }
.quote-text{
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1.4;
  opacity: 1; transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
.quote-text.fade{ opacity: 0; transform: translateY(10px); }

/* =============== FUN FACTS =============== */
.facts-list{ display:flex; flex-direction: column; gap: 0; margin-top: 32px; }
.fact-row{
  display:flex; align-items: baseline; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateX(-16px); transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fact-row.in{ opacity:1; transform: translateX(0); }
.fact-row:last-child{ border-bottom: none; }
.fact-icon{ color: var(--cyan); font-size: 0.9rem; width: 20px; flex-shrink: 0; }
.fact-text{ color: var(--ink-dim); font-size: 1.02rem; }
.fact-text strong{ color: var(--ink); font-family: var(--font-mono); font-weight: 500; }

/* =============== FOOTER =============== */
.site-footer{
  position: relative; z-index: 2; text-align:center; padding: 100px 32px 60px; color: var(--ink-faint);
}
.footer-heart{ color: var(--violet); font-size: 1rem; margin-bottom: 14px; animation: heartbeat 1.8s ease-in-out infinite; }
@keyframes heartbeat{ 0%,100%{ transform: scale(1); } 50%{ transform: scale(1.18); } }
.footer-made{ font-size: 0.85rem; letter-spacing: 0.04em; }
.footer-name{ font-family: var(--font-display); font-size: 1.6rem; margin: 8px 0 6px; }
.footer-born{ font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; }

/* =============== RIPPLE =============== */
.ripple{
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 500;
  background: radial-gradient(circle, rgba(124,108,246,0.5), transparent 70%);
  transform: translate(-50%,-50%); animation: rippleOut .8s var(--ease-soft) forwards;
}
@keyframes rippleOut{ from{ width:0; height:0; opacity: 0.8; } to{ width: 220px; height: 220px; opacity: 0; } }

/* =============== RESPONSIVE =============== */
@media (max-width: 760px){
  section{ padding: 100px 20px; }
  .hero-cake{ display:none; }
  .hero-content{ padding-top: 70px; }
  .hero-stats{ padding: 20px; gap: 16px 20px; }
  .hstat{ min-width: 70px; }
  .music-panel{ display:none; }
  .music-player.open .music-panel{ display:flex; position: fixed; bottom: 84px; right: 24px; }
}

@media (min-width: 1600px){
  :root{ --container: 1360px; }
}
