/* Aldiyar — Tugan Kun invitation template
   Style concept: soft watercolor nursery scene (hot-air balloons, gold stars,
   dusty-blue arch, "1st birthday" racecar illustration) kept alive with a
   slow breathing background and gently floating gold star cutouts. */

@font-face {
  font-family: 'Xolonium';
  src: url('assets/fonts/Xolonium.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #33302B;
  --ink-soft: #5b564d;
  --gold: #C99A45;
  --gold-deep: #A87B2E;
  --gold-label: #8a6a2e;
  --blue-deep: #7E9DBE;
  --blue-text: #3d4a58;
  --cream: #FAF8F4;
  --card-bg: rgba(255, 253, 248, 0.86);
  --card-border: rgba(201, 154, 69, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: var(--cream);
  padding-bottom: 160px;
  overflow-x: hidden;
}

a { color: var(--gold-deep); }
a:hover { color: var(--gold); }

/* ---------- Fixed background (required by platform contract) ---------- */

.fixed-background {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.fixed-background .bg-photo {
  position: absolute;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center top;
  animation: bgBreathe 22s ease-in-out infinite alternate;
  will-change: transform;
}

.fixed-background .overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 248, 244, 0.15) 0%, rgba(250, 248, 244, 0.55) 55%, rgba(250, 248, 244, 0.92) 100%);
}

@media (min-width: 600px) {
  .fixed-background .bg-photo { object-position: center 18%; }
}

@keyframes bgBreathe {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.045) translate(-0.6%, -0.4%); }
  100% { transform: scale(1) translate(0, 0); }
}

@keyframes floatBob {
  0%   { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%  { transform: translateY(-16px) rotate(calc(var(--rot, 0deg) + 3deg)); }
  100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-photo, .floaty { animation: none !important; }
}

/* ---------- Layout ---------- */

.content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */

.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 8px 24px;
  position: relative;
}

.hero-eyebrow {
  font-weight: 800;
  letter-spacing: 0.32em;
  font-size: 13px;
  color: var(--gold-label);
  text-transform: uppercase;
}

.hero-name {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  margin-top: 14px;
  color: #2c2a26;
}

.hero-numeral {
  font-family: 'Xolonium', 'Nunito', sans-serif;
  font-size: 104px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 3px 0 rgba(168, 123, 46, 0.35), 0 10px 18px rgba(168, 123, 46, 0.25);
  margin-top: 10px;
}

.hero-sub {
  font-weight: 700;
  font-size: 19px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px auto 18px;
  width: 100%;
  max-width: 280px;
}
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider-line.right { background: linear-gradient(90deg, var(--gold), transparent); }
.divider-star { width: 22px; height: 22px; object-fit: contain; }

.date-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  font-family: 'Xolonium', 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--blue-text);
}
.date-time .sep { color: var(--gold); }

/* ---------- Shared card ---------- */

.card {
  background: var(--card-bg);
  backdrop-filter: blur(6px);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 32px 26px;
  margin-bottom: 24px;
  box-shadow: 0 18px 40px rgba(90, 80, 60, 0.1);
}

.card-heading {
  font-weight: 800;
  font-size: 20px;
  text-align: center;
  margin-bottom: 22px;
  color: #2c2a26;
}

/* ---------- Invitation ---------- */

.invitation-text {
  font-size: 17px;
  line-height: 1.7;
  color: #4a4640;
  margin: 0;
  text-align: center;
}
.invitation-text strong { color: #2c2a26; }

/* ---------- Hosts ---------- */

.hosts {
  text-align: center;
  margin-bottom: 28px;
}
.hosts-label {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-label);
}
.hosts-names {
  font-weight: 800;
  font-size: 22px;
  margin-top: 8px;
  color: #2c2a26;
}

/* ---------- Program / timeline ---------- */

.timeline { position: relative; padding-left: 8px; }
.timeline-line {
  position: absolute;
  left: 29px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, rgba(201, 154, 69, 0.5), rgba(169, 194, 218, 0.5));
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 0;
  position: relative;
}
.timeline-time {
  flex-shrink: 0;
  width: 60px;
  text-align: right;
  font-family: 'Xolonium', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-deep);
  padding-top: 2px;
}
.timeline-dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 6px;
  box-shadow: 0 0 0 4px rgba(255, 253, 248, 0.9);
}
.timeline-title {
  font-size: 15.5px;
  color: #4a4640;
  padding-top: 2px;
  line-height: 1.4;
}

/* ---------- Photo section ---------- */

.photo-section { text-align: center; margin-bottom: 28px; position: relative; }
.photo-heading { font-weight: 800; font-size: 20px; margin-bottom: 20px; color: #2c2a26; }
.photo-frame-outer {
  position: relative;
  display: inline-block;
  max-width: 300px;
  width: 100%;
}
.photo-star-decor {
  --rot: 8deg;
  position: absolute;
  top: -28px;
  right: -24px;
  width: 56px;
  z-index: 2;
  animation: floatBob 6s ease-in-out infinite;
}
.photo-frame {
  background: #fff;
  padding: 14px 14px 22px;
  border-radius: 200px 200px 20px 20px;
  box-shadow: 0 22px 44px rgba(90, 80, 60, 0.16);
  border: 1px solid rgba(201, 154, 69, 0.25);
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 180px 180px 12px 12px;
  display: block;
}

/* ---------- Venue ---------- */

.venue { text-align: center; }
.venue-hall { font-weight: 700; font-size: 17px; color: var(--blue-text); }
.venue-street, .venue-city { font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.venue-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(201, 154, 69, 0.35);
}
.venue-btn:hover { background: var(--gold-deep); color: #fff; }

/* ---------- Footer ---------- */

.footer { text-align: center; padding: 8px 0 40px; }
.footer-star { width: 30px; opacity: 0.85; }

.hidden { display: none !important; }
