/* ============================================================
   Gauthami's Birthday — design system + layout
   Editorial-warm light theme · coral / marigold / teal / plum
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,450;9..144,560;9..144,680;9..144,780&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --cream: #fff9f1;
  --cream-deep: #fff1de;
  --paper: #ffffff;
  --ink: #2b1b14;
  --ink-soft: #6b5a4e;
  --ink-faint: #9c8b7d;

  --coral: #ff6b57;
  --coral-deep: #e44b3b;
  --marigold: #ffc24b;
  --marigold-deep: #ff9f45;
  --teal: #1f8e7b;
  --teal-deep: #146357;
  --plum: #b06ab3;
  --plum-deep: #7b4397;

  --line: rgba(43, 27, 20, 0.1);
  --shadow-soft: 0 20px 60px -20px rgba(43, 27, 20, 0.25);
  --shadow-card: 0 14px 40px -18px rgba(43, 27, 20, 0.28);

  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --container: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 64px);
}

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

/* subtle paper grain, keeps the light theme from feeling flat/plastic */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ============================== FX CANVAS ============================== */
#fxCanvas {
  position: fixed;
  inset: 0;
  z-index: 999;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ============================== NAV ============================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 64px);
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(255, 249, 241, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo {
  height: 34px;
  width: auto;
}

.nav__brand-text {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.nav__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--coral), var(--marigold-deep));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(228, 75, 59, 0.55);
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.nav__pill .icon {
  width: 17px;
  height: 17px;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.footer__made {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.icon--heart {
  width: 14px;
  height: 14px;
  color: var(--coral-deep);
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -10% -5%;
  z-index: 0;
  background:
    radial-gradient(48% 42% at 82% 12%, rgba(255, 194, 75, 0.35), transparent 70%),
    radial-gradient(40% 38% at 8% 78%, rgba(31, 142, 123, 0.22), transparent 70%),
    radial-gradient(55% 45% at 50% 0%, rgba(255, 107, 87, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  margin-bottom: 18px;
}

.hero__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  line-height: 0.98;
  font-weight: 680;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .accent {
  font-style: italic;
  font-weight: 450;
  background: linear-gradient(100deg, var(--coral-deep), var(--marigold-deep) 55%, var(--plum));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin-top: 26px;
  max-width: 46ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  --btn-fg: #fff;
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 16px 30px;
  border-radius: 999px;
  color: var(--btn-fg);
  background: linear-gradient(120deg, var(--coral), var(--coral-deep));
  box-shadow: 0 16px 32px -14px rgba(228, 75, 59, 0.6);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 40px -16px rgba(228, 75, 59, 0.7);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1.5px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal-deep);
  box-shadow: 0 10px 24px -16px rgba(31, 142, 123, 0.5);
}

.hero__stats {
  margin-top: 50px;
  display: flex;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}

.stat__num {
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 680;
  color: var(--coral-deep);
}

.stat__label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- hero photo ---------- */
.hero__photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.hero__photo-stage {
  position: relative;
  perspective: 1200px;
  width: min(420px, 88%);
  aspect-ratio: 4 / 5;
}

.hero__blob {
  position: absolute;
  border-radius: 61% 39% 48% 52% / 45% 52% 48% 55%;
  animation: blobMorph 9s ease-in-out infinite;
}

.hero__blob--1 {
  inset: -6%;
  background: linear-gradient(135deg, var(--marigold), var(--coral) 65%);
  opacity: 0.9;
  z-index: 0;
}

.hero__blob--2 {
  inset: 6% -4% -4% 6%;
  background: linear-gradient(135deg, var(--teal), var(--plum));
  opacity: 0.35;
  z-index: 0;
  animation-delay: -3s;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 61% 39% 48% 52% / 45% 52% 48% 55%; }
  33% { border-radius: 48% 52% 63% 37% / 55% 41% 59% 45%; }
  66% { border-radius: 40% 60% 45% 55% / 60% 45% 55% 40%; }
}

.hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform 0.4s ease-out;
  will-change: transform;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.hero__photo-caption {
  position: absolute;
  z-index: 2;
  bottom: -6px;
  right: -10px;
  background: var(--paper);
  border-radius: 999px;
  padding: 10px 18px 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-card);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--line);
}

.hero__photo-caption .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 142, 123, 0.18);
}

.float-deco {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 14px 26px -10px rgba(43, 27, 20, 0.45), 0 0 0 5px rgba(255, 255, 255, 0.7);
}

.float-deco svg {
  width: 26px;
  height: 26px;
}

.float-deco--coral { background: linear-gradient(135deg, var(--coral), var(--coral-deep)); }
.float-deco--marigold { background: linear-gradient(135deg, var(--marigold), var(--marigold-deep)); }
.float-deco--plum { background: linear-gradient(135deg, var(--plum), var(--plum-deep)); }
.float-deco--teal { background: linear-gradient(135deg, var(--teal), var(--teal-deep)); }

.float-deco--1 { top: -4%; left: -8%; }
.float-deco--2 { bottom: 12%; left: -10%; width: 46px; height: 46px; }
.float-deco--2 svg { width: 20px; height: 20px; }
.float-deco--3 { top: 22%; right: -9%; }
.float-deco--4 { bottom: -2%; right: 6%; width: 48px; height: 48px; }
.float-deco--4 svg { width: 22px; height: 22px; }

/* ============================== MARQUEE ============================== */
.marquee {
  position: relative;
  z-index: 1;
  transform: rotate(-1.4deg);
  margin: clamp(10px, 3vw, 20px) 0;
  background: linear-gradient(100deg, var(--teal-deep), var(--teal) 60%, var(--plum-deep));
  overflow: hidden;
  padding: 16px 0;
  box-shadow: 0 18px 40px -22px rgba(20, 99, 87, 0.6);
}

.marquee__track {
  display: inline-block;
  white-space: nowrap;
  font-family: "Fraunces", serif;
  font-weight: 560;
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  color: #fff9f1;
  opacity: 0.95;
  animation: marqueeScroll 26s linear infinite;
  padding-left: 100%;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================== SECTION HEADING ============================== */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(36px, 6vw, 64px);
}

.section-heading__eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--coral-deep);
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 680;
}

.section-heading p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ============================== WISHES ============================== */
.wishes {
  position: relative;
  padding: clamp(50px, 8vw, 100px) 0;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 34px);
}

.wish-card {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3.4vw, 44px) clamp(28px, 3vw, 40px) clamp(28px, 3vw, 36px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.wish-card:nth-child(6n+1) { background: linear-gradient(165deg, #fff, #fff6ea); }
.wish-card:nth-child(6n+3) { background: linear-gradient(165deg, #fff, #fef1f0); }
.wish-card:nth-child(6n+5) { background: linear-gradient(165deg, #fff, #f0f8f6); }

.wish-card:hover {
  transform: translateY(-8px) rotate(-0.3deg);
  box-shadow: 0 26px 48px -18px rgba(43, 27, 20, 0.32);
  border-color: rgba(255, 107, 87, 0.35);
}

.wish-card__quote {
  position: absolute;
  top: 10px;
  right: 30px;
  font-family: "Fraunces", serif;
  font-size: 5.4rem;
  color: var(--marigold);
  opacity: 0.35;
  line-height: 1;
  pointer-events: none;
}

.wish-card__top {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  flex: none;
  overflow: hidden;
  box-shadow: 0 10px 22px -10px rgba(43, 27, 20, 0.45);
}

.avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.wish-card__name {
  font-size: 1.32rem;
  font-weight: 560;
}

.wish-card__text {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1.08rem;
}

/* ============================== FOOTER CTA ============================== */
.footer {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 40px;
  overflow: hidden;
}

.footer__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 194, 75, 0.16));
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.footer__inner h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 20ch;
}

.footer__inner p {
  color: var(--ink-soft);
  max-width: 50ch;
  line-height: 1.6;
}

.footer__bottom {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}

.footer__brand img {
  height: 22px;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__photo-wrap {
    order: -1;
    min-height: 320px;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__eyebrow,
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title,
  .hero__eyebrow,
  .hero__subtitle {
    text-align: center;
  }

}

@media (max-width: 860px) {
  .wishes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav__brand-text {
    display: none;
  }

  .float-deco {
    display: none;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

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