/* ========================================
   Happy Independence Day 2026 — CodeMasti
   Clean professional student project styles
   ======================================== */

:root {
  --navy: #dacf94;
  --navy-deep: #050e1c;
  --navy-soft: #caff8e;
  --saffron: #965819;
  --brand-orange: #ae5118;
  --green: #a1eb9a;
  --green-deep: #759e71;
  --green-soft: rgba(153, 255, 144, 0.1);
  --orange-soft: rgba(255, 102, 0, 0.1);
  --white: #ffffff;
  --surface: #368d46;
  --surface-2: #f4fa7d;
  --ink: #122033;
  --muted: #8ab1ff;
  --line: rgba(10, 28, 51, 0.09);
  --card: #dad084;
  --shadow: 0 12px 32px rgba(10, 28, 51, 0.08);
  --shadow-soft: 0 6px 18px rgba(10, 28, 51, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --header-h: 68px;
  --transition: 0.25s ease;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font);
  color: var(--navy-soft);
  background: var(--surface);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color:#e85d00;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 5px solid transparent;
  background: none;
}

.container {
  width: min(var(--max), 90%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-orange);
  color: #fff;
}

.btn-primary:hover {
  background: #e85d00;
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(10, 28, 51, 0.2);
}

.btn-outline:hover {
  border-color: var(--navy);
  background: rgba(10, 28, 51, 0.04);
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(var(--max), 90%);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(260px, 55vw);
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  color: var(--navy-soft);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--orange-soft);
  color: var(--brand-orange);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: calc(100dvh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  background: var(--surface);
  color: var(--navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-tricolor {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 6px;
  flex-shrink: 0;
}

.hero-tricolor .tc.saffron { background: var(--saffron); }
.hero-tricolor .tc.white { background: #fff; }
.hero-tricolor .tc.green { background: var(--green); }

.hero-inner {
  width: min(1120px, 92%);
  margin-inline: auto;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 1.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  min-height: 0;
}

.hero-kicker {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-kicker strong {
  color: var(--brand-orange);
  font-weight: 750;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  margin-bottom: 0.55rem;
  max-width: 11ch;
}

.hero-date {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.4rem;
}

.hero-years {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-story {
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-byline .dot {
  opacity: 0.45;
}

.hero-byline strong {
  color: var(--navy);
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding: 1.25rem 0;
}

.hero-video-frame {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 3 / 4;
  max-height: min(420px, 70%);
  border-radius: 16px;
  overflow: hidden;
  background: #0b1a2a;
  border: 3px solid #fff;
  box-shadow: 0 14px 36px rgba(10, 28, 51, 0.16);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Shared sections ---------- */
.section {
  padding: 4.5rem 0;
}

.section-white {
  background: var(--white);
}

.section-soft {
  background: var(--surface);
}

.section-header {
  text-align: left;
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.55rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 540px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Profile ---------- */
.profile-card,
.hero-card,
.project-card,
.quiz-box,
.message-card,
.dream-card,
.stat-card {
  background: var(--navy-soft);
  border: 7px solid var(--brand-orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.profile-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.profile-photo {
  position: relative;
  width: 170px;
  height: 170px;
  margin-inline: auto;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--brand-orange), var(--shadow-soft);
  background: var(--surface-2);
}

.photo-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.profile-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.profile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.profile-fields li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.profile-fields span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-fields strong {
  font-size: 1rem;
  color: var(--navy);
}

.profile-intro {
  border-left: 3px solid var(--brand-orange);
  padding: 0.95rem 1.1rem;
  background: var(--orange-soft);
  border-radius: 0 12px 12px 0;
  color: var(--navy);
  font-size: 1.02rem;
}

/* ---------- Dream ---------- */
.dream-card {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 2rem;
  max-width: 760px;
}

.dream-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--saffron), #fff 50%, var(--green));
}

.dream-label {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.85rem;
}

.dream-text {
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  font-weight: 650;
  line-height: 1.45;
  color: var(--navy);
  min-height: 3.5rem;
  letter-spacing: -0.01em;
}

.dream-text .cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--brand-orange);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 1; }
}

.dream-hint {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Hero person ---------- */
.hero-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
}

.hero-photo {
  position: relative;
  width: 190px;
  margin-inline: auto;
}

.hero-photo img {
  width: 190px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--green), var(--shadow-soft);
  background: var(--surface-2);
}

.field-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.field-row span,
.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-row strong {
  font-size: 1.35rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.field-label {
  margin-bottom: 0.45rem;
}

.editable-idea {
  background: var(--surface);
  border: 1px dashed rgba(255, 102, 0, 0.35);
  border-radius: 12px;
  padding: 0.9rem;
  font-size: 0.95rem;
  color: var(--navy-soft);
  min-height: 3.2rem;
  margin-bottom: 1.2rem;
}

/* ---------- Quiz ---------- */
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.quiz-box {
  max-width: none;
  padding: 1.75rem;
  min-height: 280px;
}

.facts-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem 1.35rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.facts-eyebrow {
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.4rem;
}

.facts-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  min-height: 190px;
  border-left: 4px solid var(--brand-orange);
}

.fact-card.fact-pop {
  animation: quiz-pop-in 0.3s ease;
}

.fact-label {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.fact-label-hi {
  margin-top: 1rem;
  color: var(--green-deep);
}

.fact-en {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 600;
}

.fact-hi {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--navy-soft);
  font-weight: 600;
}

.fact-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-fact {
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  min-height: auto;
}

.fact-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.quiz-pop {
  animation: quiz-pop-in 0.35s ease;
}

@keyframes quiz-pop-in {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.quiz-progress {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.quiz-progress-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.quiz-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--saffron), var(--green));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quiz-question {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.quiz-options {
  display: grid;
  gap: 0.65rem;
}

.quiz-option {
  text-align: left;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.quiz-option:hover:not(:disabled) {
  border-color: var(--brand-orange);
  background: var(--orange-soft);
  transform: translateX(3px);
}

.quiz-option.correct {
  border-color: var(--green);
  background: var(--green-soft);
}

.quiz-option.wrong {
  border-color: #d64545;
  background: rgba(214, 69, 69, 0.08);
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-result {
  text-align: center;
  padding: 0.75rem 0;
}

.quiz-score {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  animation: score-pop 0.45s ease;
}

@keyframes score-pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.quiz-message {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--navy-soft);
  margin-bottom: 1.35rem;
}

/* ---------- Message ---------- */
.message-card {
  max-width: 720px;
  padding: 2.25rem 2rem;
  text-align: left;
  border-top: 4px solid var(--brand-orange);
}

.message-text {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--navy);
  margin-bottom: 1.4rem;
  min-height: 3.5rem;
  font-weight: 550;
}

/* ---------- Tiranga ---------- */
.tiranga-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  justify-content: start;
}

.tiranga-video-wrap {
  position: relative;
  width: min(220px, 42vw);
  aspect-ratio: 9 / 16;
  height: auto;
  max-height: min(420px, 58vh);
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #0b1a2a;
}

.tiranga-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tiranga-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  min-height: min(420px, 58vh);
  padding: 1.25rem 1.25rem 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(180deg, #e8f2ff 0%, #f7f9fc 55%, #eef6ea 100%);
}

.tiranga-stage.celebrating {
  background:
    linear-gradient(180deg, #fff4e6 0%, #f7fbff 50%, #eef9ef 100%);
}

/* Fullscreen / immersive hosting */
.tiranga-stage.is-hosting-fullscreen,
.tiranga-stage:fullscreen,
.tiranga-stage:-webkit-full-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  max-width: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.25rem, 4vh, 2.5rem) 1.25rem;
  gap: 1.25rem;
  justify-content: center;
  background: #d7e8f8;
  overflow: hidden;
}

.hosting-bg-video {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vh;
  height: 100vw;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) rotate(-90deg);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.tiranga-stage.is-hosting-fullscreen .hosting-bg-video,
.tiranga-stage:fullscreen .hosting-bg-video,
.tiranga-stage:-webkit-full-screen .hosting-bg-video {
  display: block;
}

.tiranga-stage.is-hosting-fullscreen::before,
.tiranga-stage:fullscreen::before,
.tiranga-stage:-webkit-full-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(215, 232, 248, 0.55) 0%, rgba(247, 249, 252, 0.45) 48%, rgba(232, 245, 228, 0.6) 100%);
}

.tiranga-stage.is-hosting-fullscreen > *:not(.hosting-bg-video),
.tiranga-stage:fullscreen > *:not(.hosting-bg-video),
.tiranga-stage:-webkit-full-screen > *:not(.hosting-bg-video) {
  position: relative;
  z-index: 2;
}

.tiranga-stage.is-hosting-fullscreen .confetti-layer,
.tiranga-stage:fullscreen .confetti-layer,
.tiranga-stage:-webkit-full-screen .confetti-layer {
  position: absolute;
  z-index: 5;
}

.tiranga-stage.is-hosting-fullscreen .host-overlay,
.tiranga-stage:fullscreen .host-overlay,
.tiranga-stage:-webkit-full-screen .host-overlay {
  position: absolute;
  z-index: 6;
}

.tiranga-stage.is-hosting-fullscreen .flag-ceremony,
.tiranga-stage:fullscreen .flag-ceremony,
.tiranga-stage:-webkit-full-screen .flag-ceremony {
  max-width: min(420px, 88vw);
  height: min(52vh, 420px);
  width: 100%;
  background: transparent;
}

.tiranga-stage.is-hosting-fullscreen .flag-sky,
.tiranga-stage:fullscreen .flag-sky,
.tiranga-stage:-webkit-full-screen .flag-sky {
  display: none;
}

.tiranga-stage.is-hosting-fullscreen .flag-ground,
.tiranga-stage:fullscreen .flag-ground,
.tiranga-stage:-webkit-full-screen .flag-ground {
  background: linear-gradient(180deg, rgba(124, 188, 90, 0.85), rgba(79, 154, 58, 0.9));
  box-shadow: none;
}

.tiranga-stage.is-hosting-fullscreen .interactive-flag,
.tiranga-stage:fullscreen .interactive-flag,
.tiranga-stage:-webkit-full-screen .interactive-flag {
  width: min(148px, 40vw);
  border-radius: 2px 4px 4px 2px;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.18);
}

.tiranga-stage.is-hosting-fullscreen .flag-mast,
.tiranga-stage:fullscreen .flag-mast,
.tiranga-stage:-webkit-full-screen .flag-mast {
  height: calc(100% - 20px);
  width: min(220px, 70%);
}

.tiranga-stage.is-hosting-fullscreen .if-stripe,
.tiranga-stage:fullscreen .if-stripe,
.tiranga-stage:-webkit-full-screen .if-stripe {
  height: 34px;
}

/* Taller fullscreen flag (3×34px) needs a matching hoist stop */
.tiranga-stage.is-hosting-fullscreen .flag-hoist.hoisting,
.tiranga-stage.is-hosting-fullscreen .flag-hoist.hoisted,
.tiranga-stage:fullscreen .flag-hoist.hoisting,
.tiranga-stage:fullscreen .flag-hoist.hoisted,
.tiranga-stage:-webkit-full-screen .flag-hoist.hoisting,
.tiranga-stage:-webkit-full-screen .flag-hoist.hoisted {
  bottom: calc(100% - 112px);
}

.tiranga-stage.is-hosting-fullscreen .tiranga-hint,
.tiranga-stage:fullscreen .tiranga-hint,
.tiranga-stage:-webkit-full-screen .tiranga-hint {
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
}

.tiranga-stage.is-hosting-fullscreen .celebrate-message,
.tiranga-stage:fullscreen .celebrate-message,
.tiranga-stage:-webkit-full-screen .celebrate-message {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.tiranga-stage.is-hosting-fullscreen .host-overlay-text,
.tiranga-stage:fullscreen .host-overlay-text,
.tiranga-stage:-webkit-full-screen .host-overlay-text {
  font-size: clamp(1.2rem, 3.4vw, 1.7rem);
}

.tiranga-stage.is-hosting-fullscreen .host-overlay-stand,
.tiranga-stage:fullscreen .host-overlay-stand,
.tiranga-stage:-webkit-full-screen .host-overlay-stand {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
}

.tiranga-stage.is-hosting-fullscreen .host-countdown,
.tiranga-stage:fullscreen .host-countdown,
.tiranga-stage:-webkit-full-screen .host-countdown {
  font-size: clamp(4rem, 16vw, 7rem);
}

.tiranga-hint {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
}

.host-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  z-index: 4;
}

.host-choice[hidden] {
  display: none !important;
}

.host-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(2px);
}

.host-overlay[hidden] {
  display: none !important;
}

.host-overlay-text {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 750;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.host-overlay-stand {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.host-overlay-stand[hidden],
.host-overlay-text[hidden] {
  display: none !important;
}

.host-countdown {
  margin: 0;
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--navy);
}

.host-countdown.countdown-pop {
  animation: quiz-pop-in 0.35s ease;
}

.flag-ceremony {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 280px;
  margin: 0 auto;
}

.flag-sky {
  position: absolute;
  inset: 0 0 28px 0;
  border-radius: 14px 14px 0 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 200, 80, 0.25), transparent 40%),
    linear-gradient(180deg, #cfe6ff, #eef5ff 70%);
}

.flag-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #7cbc5a, #4f9a3a);
  box-shadow: inset 0 4px 0 rgba(255, 255, 255, 0.15);
}

.flag-mast {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 180px;
  height: 240px;
}

.flag-finial {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #d4a017);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.flag-pole-tall {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: calc(100% - 18px);
  border-radius: 4px;
  background: linear-gradient(90deg, #c5ccd4, #8a939e 45%, #6b7380);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.15);
  z-index: 1;
}

.flag-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 14px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #9aa3af, #5c6570);
  z-index: 2;
}

.flag-hoist {
  position: absolute;
  left: calc(50% + 4px);
  bottom: 18px;
  z-index: 2;
  transition: bottom 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.flag-hoist.hoisting,
.flag-hoist.hoisted {
  /* Keep top of flag just under the finial (flag ≈ 84px tall) */
  bottom: calc(100% - 92px);
}

.interactive-flag {
  width: 118px;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  transform-origin: left center;
}

.flag-hoist.hoisted .interactive-flag {
  animation: flag-wave 2.8s ease-in-out infinite;
}

.if-stripe {
  height: 28px;
}

.if-stripe.saffron { background: var(--saffron); }
.if-stripe.white {
  background: #fff;
  display: grid;
  place-items: center;
}
.if-stripe.green { background: var(--green); }

@keyframes flag-wave {
  0%, 100% { transform: perspective(500px) rotateY(-6deg) skewY(0.4deg); }
  50% { transform: perspective(500px) rotateY(6deg) skewY(-0.4deg); }
}

.ashoka-chakra {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #000080;
  animation: spin-slow 14s linear infinite;
  background:
    radial-gradient(circle, #000080 8%, transparent 9%),
    repeating-conic-gradient(from 0deg, #000080 0deg 2deg, transparent 2deg 15deg);
}

.ashoka-chakra.large {
  width: 22px;
  height: 22px;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.celebrate-message {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  text-align: center;
  animation: quiz-pop-in 0.4s ease;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.flower-petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 16px;
  border-radius: 80% 0 80% 0;
  opacity: 0.95;
  animation: flower-fall linear forwards;
  transform-origin: center;
}

.flower-petal.petal-round {
  border-radius: 50% 50% 50% 0;
}

@keyframes flower-fall {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(640deg) translateX(40px);
    opacity: 0.85;
  }
}

/* ---------- Counters ---------- */
.counter-hero {
  text-align: left;
  margin-bottom: 1.75rem;
}

.big-year {
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--navy);
}

.counter-sub {
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 600;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.stat-card {
  text-align: left;
  padding: 1.25rem 1.1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: -0.02em;
}

/* ---------- Project ---------- */
.project-card {
  padding: 1.75rem;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.meta-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

.meta-block-wide {
  grid-column: 1 / -1;
}

.meta-block span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.meta-block strong {
  font-size: 1.02rem;
  color: var(--navy);
}

.project-media {
  border: 1.5px dashed rgba(10, 28, 51, 0.16);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-height: 210px;
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  padding: 1.4rem;
  text-align: center;
}

.project-media img {
  max-height: 150px;
  margin-inline: auto;
  opacity: 0.9;
}

.media-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

/* ---------- Final ---------- */
.final-section {
  background: var(--white);
  text-align: left;
  padding: 4.5rem 0 5rem;
  position: relative;
}

.final-tricolor {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 6px;
  margin-bottom: 2.5rem;
}

.final-tricolor span:nth-child(1) { background: var(--saffron); }
.final-tricolor span:nth-child(2) { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.final-tricolor span:nth-child(3) { background: var(--green); }

.final-brand {
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.final-headline {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.final-text {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.final-motto {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--green-deep);
  margin-bottom: 0.75rem;
}

.final-wish {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 153, 51, 0.12), transparent 45%),
    radial-gradient(ellipse at 80% 100%, rgba(19, 136, 8, 0.12), transparent 40%),
    var(--navy-deep);
  color: rgba(255, 255, 255, 0.8);
  padding: 0 0 1.75rem;
}

.footer-tricolor {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  height: 8px;
  margin-bottom: 2.25rem;
}

.footer-tricolor .ft.saffron { background: var(--saffron); }
.footer-tricolor .ft.white { background: #fff; }
.footer-tricolor .ft.green { background: var(--green); }

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  gap: 1.75rem;
  align-items: center;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffc278;
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

.footer-brand-tag {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.7rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 300px;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}

.btn-footer {
  background: var(--brand-orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
}

.btn-footer:hover {
  background: #e85d00;
  color: #fff;
}

.footer-flag-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.footer-mini-flag {
  width: 72px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-mini-flag span {
  display: block;
  height: 16px;
}

.footer-mini-flag .f-saffron { background: var(--saffron); }
.footer-mini-flag .f-white {
  background: #fff;
  display: grid;
  place-items: center;
}
.footer-mini-flag .f-green { background: var(--green); }

.f-chakra {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #000080;
  display: block;
}

.footer-jai {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.footer-right {
  text-align: right;
}

.footer-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 194, 120, 0.85);
  margin-bottom: 0.35rem;
}

.footer-date {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}

.footer-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-made {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.footer-made strong {
  color: #ffc278;
}

.footer-wish {
  font-weight: 750;
  font-size: 0.98rem;
  color: #ffc278;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    width: min(1120px, 92%);
    padding: 1.25rem 0 1.75rem;
  }

  .hero {
    height: auto;
    max-height: none;
  }

  .hero-content {
    order: 2;
    padding: 0.5rem 0 0.75rem;
  }

  .hero-title {
    max-width: none;
  }

  .hero-media {
    order: 1;
    height: auto;
    padding: 0.5rem 0 0;
  }

  .hero-video-frame {
    width: min(220px, 70vw);
    max-height: 300px;
  }

  .profile-card,
  .hero-card,
  .tiranga-layout,
  .quiz-layout {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .facts-panel {
    position: static;
  }

  .tiranga-video-wrap {
    width: min(200px, 58vw);
    max-height: 360px;
  }

  .tiranga-stage {
    width: 100%;
    min-height: 280px;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-desc {
    margin-inline: auto;
  }

  .footer-right {
    text-align: center;
  }

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

  .section-header {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.2rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 0.9rem 1rem;
    font-size: 1.05rem;
  }

  .section {
    padding: 3.25rem 0;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 48px;
  }
}

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .big-year {
    font-size: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .interactive-flag,
  .ashoka-chakra,
  .flower-petal {
    animation: none !important;
  }

  .flag-hoist {
    transition: none !important;
  }
}
