/* ═══════════════════════════════════════════
   ACTION SCHOOL — MAIN STYLESHEET
   Theme: Aviation Blue + White
   ═══════════════════════════════════════════ */

:root {
  --blue-900: #0a1628;
  --blue-800: #0d2045;
  --blue-700: #103265;
  --blue-600: #1a4a8a;
  --blue-500: #1e6fc0;
  --blue-400: #3b8fe8;
  --blue-300: #6fb0f5;
  --blue-200: #b3d5fa;
  --blue-100: #e8f3fd;

  --orange:   #f4802a;
  --orange-light: #ffa557;

  --white:    #ffffff;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.15);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.20);

  --transition: 0.28s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-500);
  color: var(--white);
  border-color: var(--blue-500);
}
.btn-primary:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,111,192,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.3);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.6);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ─── Section Helpers ────────────────────────── */
.section { padding: 100px 0; }

.section-tag {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p  { color: var(--gray-500); font-size: 1.05rem; }

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  letter-spacing: -.02em;
}
h3 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); }

/* ─── Reveal Animations ──────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 12px 0;
}
#site-header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--white);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.25rem;
  color: var(--orange);
}
.logo-text strong { color: var(--orange); }

#main-nav {
  flex: 1;
  min-width: 0;           /* allow shrinking */
}
#main-nav ul {
  display: flex;
  gap: 0;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
#main-nav a {
  display: block;
  color: rgba(255,255,255,.8);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
  line-height: 1.2;
}
#main-nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.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;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-900);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    var(--blue-900) 0%,
    var(--blue-800) 30%,
    var(--blue-700) 55%,
    #1a6fa8 75%,
    #2596d9 100%
  );
}

.hero-clouds {
  position: absolute;
  inset: 0;
}
.cloud {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.06);
}
.cloud-1 { width: 400px; height: 100px; top: 20%; left: -100px; animation: drift 18s linear infinite; }
.cloud-2 { width: 280px; height: 70px;  top: 40%; left: -80px;  animation: drift 24s linear infinite 6s; }
.cloud-3 { width: 320px; height: 80px;  top: 60%; left: -120px; animation: drift 20s linear infinite 12s; }

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 400px)); }
}

.hero-aircraft {
  position: absolute;
  font-size: 3rem;
  color: rgba(255,255,255,.12);
  top: 35%;
  animation: flyAcross 16s ease-in-out infinite alternate;
}
@keyframes flyAcross {
  from { left: 10%; transform: rotate(-5deg) scale(1); }
  to   { left: 80%; transform: rotate(5deg) scale(1.1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,22,40,.2) 0%,
    rgba(10,22,40,.5) 60%,
    rgba(10,22,40,.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 100px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeDown .8s ease;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
  animation: fadeUp .9s ease .1s both;
}
.hero-headline .accent { color: var(--orange); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.78);
  max-width: 620px;
  margin: 0 auto 40px;
  animation: fadeUp .9s ease .2s both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp .9s ease .3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px 40px;
  animation: fadeUp .9s ease .4s both;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.15);
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}
.scroll-indicator span::after {
  content: '';
  position: absolute;
  width: 4px; height: 8px;
  background: rgba(255,255,255,.5);
  border-radius: 2px;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollBob 2s ease infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: .3; }
}

@keyframes fadeUp   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════ */
.about-section { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ── Card Stack + Shuffle Animation ── */
.about-card-stack {
  position: relative;
  height: 420px;
}
.about-img-card {
  position: absolute;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  1s cubic-bezier(0.4, 0, 0.2, 1),
              z-index  0s 0.5s;
  will-change: transform, opacity;
  cursor: pointer;
}
/* ── Default (rest) positions ── */
.card-1 {
  width: 70%; height: 260px;
  top: 0; left: 0;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  z-index: 1;
}
.card-2 {
  width: 62%; height: 200px;
  bottom: 40px; right: 0;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-300));
  z-index: 1;
}
.card-3 {
  width: 42%; height: 150px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  z-index: 2;
}
/* ── Shuffle states (JS adds these classes) ── */
.card-shuffle-out {
  transform: translateX(120%) rotate(15deg) !important;
  opacity: 0 !important;
  z-index: 10 !important;
}
.card-shuffle-in {
  transform: translate(-50%, -50%) scale(1) !important;
  opacity: 1 !important;
  z-index: 2 !important;
}
.card-shuffle-back {
  transform: translateY(8px) scale(0.95) !important;
  z-index: 1 !important;
}
.img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.plane-icon { font-size: 2.2rem; }
.img-placeholder p {
  color: rgba(255,255,255,.8);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.location-badge {
  position: absolute;
  bottom: 8px; left: 0;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  box-shadow: var(--shadow-md);
  z-index: 3;
}

.about-content .section-tag { margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p  {
  color: var(--gray-500);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.about-content p strong { color: var(--blue-500); }

.about-pillars {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pillar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

/* ═══════════════════════════════════════════════
   ACTIVITIES
═══════════════════════════════════════════════ */
.activities-section {
  background: var(--gray-50);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.activity-icon-wrap {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.activity-icon-wrap.ultra { background: linear-gradient(135deg, var(--blue-800), var(--blue-600)); }
.activity-icon-wrap.para  { background: linear-gradient(135deg, #1a7fa0, #2ab9e0); }
.activity-icon-wrap.gyro  { background: linear-gradient(135deg, var(--orange), #f5b942); }
.activity-icon { font-size: 3.5rem; }

.activity-content { padding: 24px; }
.activity-badge {
  display: inline-block;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.activity-content h3 { margin-bottom: 10px; }
.activity-content p  { color: var(--gray-500); font-size: 0.93rem; margin-bottom: 16px; }

.activity-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.activity-tags span {
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.activities-cta { text-align: center; }

/* ═══════════════════════════════════════════════
   YOUTH
═══════════════════════════════════════════════ */
.youth-section {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: var(--white);
}
.youth-section .section-tag {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
}
.youth-section h2 { color: var(--white); }

.youth-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.youth-text p { color: rgba(255,255,255,.75); margin-bottom: 28px; font-size: 1.05rem; }

.youth-benefits { margin-bottom: 36px; }
.youth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: rgba(255,255,255,.8);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.youth-benefits li:last-child { border-bottom: none; }
.check {
  width: 22px; height: 22px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.youth-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sky-circle {
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.15);
}
.orbit-1 { width: 100%; height: 100%; animation: spin 12s linear infinite; }
.orbit-2 { width: 72%; height: 72%; animation: spin 18s linear infinite reverse; }
.orbit-3 { width: 44%; height: 44%; animation: spin 8s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.orbit-dot {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 28px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sky-center {
  position: absolute;
  text-align: center;
  z-index: 2;
}
.sky-text {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: .08em;
}
.sky-sub, .sky-sub2 {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════
   PARTNERS
═══════════════════════════════════════════════ */
.partners-section { background: var(--white); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.partner-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.featured-partner {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-color: var(--blue-500);
  color: var(--white);
}
.featured-partner h3 { color: var(--white); }
.featured-partner p  { color: rgba(255,255,255,.75); }

.partner-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.partner-icon { font-size: 2.8rem; margin-bottom: 16px; }
.partner-card h3 { margin-bottom: 12px; }
.partner-card p  { color: var(--gray-500); font-size: 0.93rem; line-height: 1.6; }

/* ═══════════════════════════════════════════════
   AERO PARKS
═══════════════════════════════════════════════ */
.aero-section { background: var(--gray-50); }

.aero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.aero-text {
  text-align: left;
}
.aero-text .section-tag { display: inline-block; }
.aero-text h2 { margin-bottom: 20px; }
.aero-text p  { color: var(--gray-500); margin-bottom: 28px; font-size: 1.02rem; }

.aero-notice {
  display: flex;
  gap: 12px;
  background: var(--blue-100);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.aero-notice p {
  color: var(--blue-700);
  font-size: 0.9rem;
  margin: 0;
}

.aero-locations {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.location-chip.future {
  opacity: .6;
  border-style: dashed;
}

.aero-map {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

/* ── Kerala SVG Map ── */
.kerala-map-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.kerala-svg {
  width: 220px;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 8px 28px rgba(30,111,192,0.22));
}

.kerala-state {
  stroke: #93c5fd;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.kerala-ghats {
  fill: none;
  stroke: #6ea8d0;
  stroke-width: 0.8;
  stroke-dasharray: 3 3;
  opacity: 0.5;
}

.kerala-coast {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 1;
  opacity: 0.6;
}

/* City dots */
.city-dot {
  fill: #3b82f6;
  stroke: white;
  stroke-width: 1.5;
  cursor: default;
}
.city-dot.major {
  fill: #1d4ed8;
}
.city-dot.active-city {
  fill: #f97316;
  stroke: white;
  stroke-width: 2;
}

/* City labels (SVG text) */
.city-label {
  font-size: 8.5px;
  font-family: 'Inter', 'Outfit', system-ui, sans-serif;
  fill: #1e3a5f;
  font-weight: 600;
}
.city-label.major-label {
  font-size: 9.5px;
  fill: #1e40af;
  font-weight: 700;
}
.city-label.anchor-end {
  text-anchor: end;
}
.city-label.active-city-label {
  font-size: 10px;
  fill: #c2410c;
  font-weight: 800;
}
.city-label.active-city-sub {
  font-size: 8px;
  fill: #f97316;
  font-weight: 700;
}

/* Caption below map */
.map-caption {
  text-align: center;
  line-height: 1.4;
}
.map-caption-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-700);
}
.map-caption-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ═══════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p  { color: var(--gray-500); margin-bottom: 36px; font-size: 1.02rem; }

.contact-details { margin-bottom: 36px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon { font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }
.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray-500);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--gray-900);
}
.contact-link:hover { color: var(--blue-500); }

.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.social-btn:hover {
  background: var(--blue-500);
  color: var(--white);
  transform: translateY(-2px);
}

/* Form */
.contact-form {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-form h3 { margin-bottom: 28px; font-size: 1.3rem; }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(59,143,232,.15);
}
.form-group textarea { resize: vertical; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  background: var(--blue-900);
  color: rgba(255,255,255,.7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 64px 24px 48px;
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.footer-links ul li { margin-bottom: 12px; }
.footer-links a,
.footer-contact a {
  font-size: 0.9rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.82rem; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .about-grid,
  .youth-inner,
  .aero-inner { gap: 48px; }
}

@media (max-width: 900px) {
  .activities-grid,
  .partners-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile nav — hide desktop links, show hamburger at 960px */
@media (max-width: 960px) {
  #main-nav { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn-primary { display: none; }

  #main-nav.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,.97);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
  }
  #main-nav.open ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  #main-nav.open a {
    font-size: 1.2rem;
    padding: 14px 32px;
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Hero */
  .hero-content { padding: 0 20px; text-align: center; }
  .hero-headline { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 20px;
    gap: 0;
  }
  .stat { padding: 8px 20px; }

  /* Section headers */
  .section-header { padding: 0 16px; }
  .section-header h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .about-card-stack { height: 280px; margin: 0 auto; }
  .about-text { padding: 0 8px; }

  /* Activities */
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .activity-card { padding: 24px 16px; }

  /* Youth */
  .youth-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .youth-visual { order: -1; }
  .sky-circle { width: 220px; height: 220px; }
  .youth-features { align-items: center; }

  /* Aero */
  .aero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .aero-map { order: -1; display: flex; justify-content: center; }
  .kerala-svg { width: 160px; }

  /* Partners */
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { text-align: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-social { justify-content: center; }
}

@media (max-width: 600px) {
  .activities-grid,
  .partners-grid { grid-template-columns: 1fr; }

  .hero-stats { display: none; }

  .hero-cta { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta .btn { text-align: center; width: 100%; }

  .contact-form { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .section { padding: 56px 0; }

  .hero-headline { font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.2; }
  .hero-badge { font-size: 0.7rem; padding: 6px 14px; }

  .section-header h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }
  .section-header p { font-size: 0.9rem; }
  .section-tag { font-size: 0.65rem; }

  /* About cards smaller */
  .about-card-stack { height: 240px; }
  .about-img-card { padding: 16px; }

  /* Activity cards */
  .activities-grid { grid-template-columns: 1fr; gap: 12px; }
  .activity-card { padding: 20px 16px; }
  .activity-icon { font-size: 2rem; }

  /* Aero map compact */
  .kerala-svg { width: 140px; }

  /* Partners compact */
  .partners-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .partner-card { padding: 16px 12px; }

  /* Contact */
  .contact-form { padding: 20px 14px; }
  .contact-form input,
  .contact-form select,
  .contact-form textarea { font-size: 0.88rem; padding: 10px 14px; }

  /* Footer compact */
  .footer-bottom p { font-size: 0.75rem; }
}

/* ═══════════════════════════════════════════════
   HERO — VIDEO BACKGROUND
═══════════════════════════════════════════════ */

/* Remove old animated bg when video is present */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

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


/* When video loads successfully, fade it in over the image */
.hero-video.loaded {
  animation: videoFadeIn 1s ease forwards;
}
@keyframes videoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Make overlay slightly darker for better text contrast over real footage */
.hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(5, 15, 30, 0.35) 0%,
    rgba(5, 15, 30, 0.55) 50%,
    rgba(5, 15, 30, 0.80) 100%
  );
  z-index: 1;
}

/* Hero content must be above overlay */
.hero-content { z-index: 2; }
.scroll-indicator { z-index: 2; }

/* Sound toggle button */
.video-sound-btn {
  position: absolute;
  bottom: 36px;
  right: 32px;
  z-index: 5;
  width: 44px; height: 44px;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}
.video-sound-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.08);
}

/* ═══════════════════════════════════════════════
   GALLERY / VIDEO SHOWCASE
═══════════════════════════════════════════════ */
.gallery-section {
  background: var(--gray-900);
  padding: 100px 0;
}

.gallery-section .section-tag {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
}
.gallery-section h2 { color: var(--white); }
.gallery-section .section-header p { color: rgba(255,255,255,.55); }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.gallery-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

/* Both video cards side by side */
.gallery-main  { grid-column: 1; }
.gallery-short { grid-column: 2; }

/* Video wrapper */
.video-wrap {
  position: relative;
  width: 100%;
  background: #000;
}

/* Both videos same landscape ratio */
.gallery-main .video-wrap,
.video-wrap.video-shorts {
  aspect-ratio: 16/9;
  max-height: none;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery captions */
.gallery-caption {
  padding: 20px 22px;
}

.gallery-badge {
  display: inline-block;
  background: var(--blue-500);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.gallery-badge.shorts-badge { background: var(--orange); }

.gallery-caption h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 6px;
}
.gallery-caption p {
  color: rgba(255,255,255,.55);
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0;
}

/* ═══════════════════════════════════════════════
   MOBILE GALLERY — video alignment fixes
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 20px;
  }

  /* Reset explicit column placement so items flow into separate rows */
  .gallery-main,
  .gallery-short {
    grid-column: auto;
    grid-row: auto;
  }

  /* Ensure video wrapper fills width and keeps 16:9 */
  .gallery-main .video-wrap,
  .video-wrap.video-shorts {
    aspect-ratio: 16 / 9;
    width: 100%;
    min-height: unset;
  }

  .gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .gallery-caption {
    padding: 16px 18px;
  }

  .gallery-caption h3 { font-size: 0.95rem; }
  .gallery-caption p  { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .gallery-section { padding: 56px 0; }

  .gallery-main .video-wrap,
  .video-wrap.video-shorts {
    aspect-ratio: 16 / 9;
    width: 100%;
  }

  .gallery-caption { padding: 14px 16px; }
  .gallery-caption h3 { font-size: 0.9rem; }
  .gallery-badge { font-size: 0.62rem; padding: 3px 8px; }
}

/* Form success message */
.form-success {
  margin-top: 12px;
  text-align: center;
  color: #16a34a;
  font-size: 0.9rem;
  font-weight: 600;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
}

@media (max-width: 768px) {
  .video-sound-btn {
    bottom: 88px;
    right: 20px;
  }
  .gallery-section { padding: 72px 0; }
}
