/* ============================================================
   Dazio — Happy Birthday, Dhanadi
   ============================================================ */

:root {
  --bg: #FBF5F7;
  --ink: #1A1114;
  --ink-soft: #5C4E53;

  --pink: #E8125F;
  --pink-deep: #B80E4C;
  --pink-bright: #FF3D82;

  --gold: #CBA135;
  --gold-light: #F1D27E;
  --gold-deep: #9C7A2E;

  --black: #120A0D;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-s: 200ms;
  --dur-m: 450ms;

  --container: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; border: none; background: none; cursor: pointer; }

::selection { background: var(--pink); color: #fff; }

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

/* ---------- Logo mark ---------- */
.logo-mark {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}
.logo-i { position: relative; display: inline-block; line-height: 1; }
.logo-dot {
  position: absolute;
  top: -0.42em;
  left: 50%;
  transform: translateX(-50%);
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  font-style: normal;
}

/* ---------- Birthday overlay ---------- */
body.birthday-lock { overflow: hidden; }

.birthday-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(232,18,95,0.35), transparent 58%),
    radial-gradient(circle at 12% 88%, rgba(203,161,53,0.22), transparent 55%),
    var(--black);
  overflow: hidden;
  opacity: 1;
  transition: opacity 700ms var(--ease);
}
.birthday-overlay.bd-hide {
  opacity: 0;
  pointer-events: none;
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.birthday-skip {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 2;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E7C9D5;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  transition: color var(--dur-s) var(--ease), background var(--dur-s) var(--ease);
}
.birthday-skip:hover { color: #fff; background: rgba(255,255,255,0.08); }

.balloons {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.balloon {
  position: absolute;
  bottom: -220px;
  width: 60px;
  height: 74px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  animation: balloonRise 9s ease-in infinite;
  opacity: 0.92;
}
.balloon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.25);
  transform: translateX(-50%);
}
.bln-1 { left: 8%;  background: var(--gold);        animation-delay: 0s;   }
.bln-2 { left: 24%; background: var(--pink);        animation-delay: 1.6s; width: 50px; height: 62px; }
.bln-3 { left: 48%; background: #fff;                animation-delay: 3.1s; }
.bln-4 { left: 68%; background: var(--gold-deep);   animation-delay: 0.9s; width: 46px; height: 58px; }
.bln-5 { left: 86%; background: var(--pink-bright); animation-delay: 2.3s; }

@keyframes balloonRise {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(18px, -28vh) rotate(4deg); }
  50%  { transform: translate(-16px, -56vh) rotate(-3deg); }
  75%  { transform: translate(14px, -84vh) rotate(3deg); }
  100% { transform: translate(-10px, -118vh) rotate(-2deg); }
}

.birthday-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 32px;
}
.birthday-eyebrow {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.birthday-title { line-height: 1.05; }
.bd-line { display: block; font-family: var(--font-display); }
.bd-shimmer {
  font-size: clamp(30px, 6vw, 56px);
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--pink-bright) 20%, var(--gold-light) 40%, #FFF3D6 50%, var(--gold-light) 60%, var(--pink-bright) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bdShimmer 3.6s linear infinite;
}
.bd-name {
  font-size: clamp(48px, 10vw, 104px);
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}
@keyframes bdShimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: -220% 0%; }
}
.birthday-role {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #E7C9D5;
  font-weight: 600;
}
.birthday-enter {
  margin-top: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--pink), var(--pink-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease);
}
.birthday-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -14px rgba(232,18,95,0.6);
}

.bd-in {
  opacity: 0;
  transform: translateY(18px);
  animation: bdIn 800ms var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes bdIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .balloon { animation: none; display: none; }
  .bd-shimmer { animation: none; background-position: 0% 0%; }
}

@media (max-width: 560px) {
  .birthday-skip { top: 18px; right: 18px; }
}

/* ---------- Custom cursor (desktop / fine pointer only) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--dur-s) var(--ease);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid var(--pink);
  opacity: 0;
  transition: opacity var(--dur-s) var(--ease), width var(--dur-m) var(--ease), height var(--dur-m) var(--ease), background var(--dur-m) var(--ease);
}
body.cursor-ready .cursor-dot,
body.cursor-ready .cursor-ring { opacity: 1; }
.cursor-ring.hovering {
  width: 56px; height: 56px;
  background: rgba(232, 18, 95, 0.1);
}
@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: var(--black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}
.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  transition: border-color var(--dur-s) var(--ease), background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.nav-icon:hover { background: var(--pink); color: #fff; border-color: var(--pink); transform: translateY(-2px); }

/* ---------- Hero / Celebration ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 100px;
  overflow: hidden;
  background: var(--black);
  color: #fff;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.65;
  z-index: 0;
  mix-blend-mode: screen;
  will-change: transform;
}
.blob-a { width: 480px; height: 480px; background: radial-gradient(circle, var(--pink), transparent 70%); top: -140px; left: -100px; }
.blob-b { width: 460px; height: 460px; background: radial-gradient(circle, var(--gold), transparent 70%); bottom: -160px; right: -100px; }
.blob-c { width: 340px; height: 340px; background: radial-gradient(circle, var(--pink-bright), transparent 70%); top: 42%; left: 55%; }
.hero-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  text-align: center;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.08;
  font-weight: 600;
  color: #fff;
}
.hero-title .scramble { display: block; }
.text-shimmer {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--pink-bright) 15%, var(--gold-light) 40%, #fff 50%, var(--gold-light) 60%, var(--pink-bright) 85%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroShimmer 5s linear infinite;
}
@keyframes heroShimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: -240% 0%; }
}
.hero-desc {
  display: block;
  max-width: 560px;
  margin: 28px auto 0;
  font-size: 18px;
  color: #C9BCC1;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform var(--dur-s) var(--ease), box-shadow var(--dur-s) var(--ease), background var(--dur-s) var(--ease), color var(--dur-s) var(--ease);
  overflow: hidden;
}
.btn span { position: relative; z-index: 1; }
.btn-primary {
  background: var(--pink);
  color: #fff;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold));
  transform: translateY(100%);
  transition: transform var(--dur-m) var(--ease);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(232,18,95,0.5); }
.btn-primary:hover span { color: var(--black); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }

/* Magnetic buttons get their transform driven by JS via --mx/--my */
.magnetic {
  transform: translate(var(--mx, 0), var(--my, 0));
}
.magnetic:hover,
.magnetic:active { transition: transform 120ms var(--ease); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #fff; padding: 48px 32px 26px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-inner-center { justify-content: center; gap: 20px; }
.footer-brand .brand-sub { color: #9C8A90; }
.footer-social {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background var(--dur-s) var(--ease), transform var(--dur-s) var(--ease);
}
.footer-social:hover { background: var(--pink); transform: translateY(-2px); border-color: var(--pink); }
.footer-bottom { max-width: var(--container); margin: 0 auto; padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 13px; color: #7A6B70; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Scramble text (hero) ---------- */
.scramble {
  display: block;
  font-variant-ligatures: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { padding-top: 120px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
