/* ═══════════════════════════════════════════════════════════
   Holographic Layer — Yellow · Black · White School Theme
   ═══════════════════════════════════════════════════════════ */

/* ─── Holographic Card Base ─────────────────────────────── */
.holo-card {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: var(--radius-md);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.holo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(255, 193, 7, 0.08) 45%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 193, 7, 0.06) 55%,
    transparent 70%
  );
  background-size: 250% 250%;
  animation: holo-shine 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes holo-shine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.holo-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Glass cards upgrade */
.glass-card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 193, 7, 0.2) !important;
}

.glass-card::before {
  background: linear-gradient(135deg, rgba(255,193,7,0.12) 0%, transparent 60%) !important;
  height: 100% !important;
  transform: none !important;
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover::before { opacity: 1; }

/* Holo button */
.btn-holo {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 193, 7, 0.5);
  color: var(--black);
  position: relative;
  overflow: hidden;
}

.btn-holo:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 193, 7, 0.3);
  color: var(--black);
}

.btn-holo .play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--black);
}

/* ─── Hero V2 — Clean Centered ─────────────────────────── */
.hero-v2 {
  position: relative;
  min-height: calc(100vh - var(--header-height) - var(--topbar-height));
  min-height: calc(100dvh - var(--header-height) - var(--topbar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + var(--topbar-height) + 2rem) 0 4rem;
  overflow: hidden;
  background: var(--white);
  text-align: center;
}

.hero-v2-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.holo-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 193, 7, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(255, 193, 7, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #FFFCF5 0%, #FFFFFF 50%, #FFFFFF 100%);
}

.holo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: orb-float 12s ease-in-out infinite;
}

.holo-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 193, 7, 0.15);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.holo-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 193, 7, 0.08);
  bottom: 10%;
  right: 5%;
  animation-delay: -6s;
}

@keyframes orb-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(20px); }
}

.holo-orb-2 { animation-name: orb-float-2; }
@keyframes orb-float-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.holo-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 193, 7, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 193, 7, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-v2-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.hero-v2-container {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.hero-v2-inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-v2-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sub);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--black);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 193, 7, 0.5);
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(255, 193, 7, 0.2);
}

.hero-v2-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--black);
  letter-spacing: -0.03em;
}

.hero-v2-line { display: block; }

.hero-v2-highlight {
  background: linear-gradient(135deg, var(--yellow-dark) 0%, var(--yellow) 50%, #FFD54F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-v2-desc {
  font-family: var(--font-sub);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 640px;
  margin: 0 auto;
}

.hero-v2-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.hero-v2-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  transition: all 0.3s;
}

.hero-v2-tags span:hover {
  border-color: var(--yellow);
  background: var(--yellow-light);
}

.hero-v2-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

.hero-v2-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  max-width: 900px;
  padding: 0;
  overflow: hidden;
}

.hero-v2-stats .stat-card {
  background: transparent !important;
  border: none !important;
  border-right: 1px solid rgba(255, 193, 7, 0.25) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 1.5rem 1rem;
  transform: none !important;
}

.hero-v2-stats .stat-card:last-child { border-right: none !important; }

.hero-v2-stats .stat-card::before { display: none; }

.hero-v2-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
}

.scroll-indicator {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--yellow), transparent);
  animation: scroll-pulse 2s ease infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* Hero items hidden until GSAP animates */
[data-hero-item] { opacity: 0; }

/* ─── Header Alignment Fixes ────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.site-logo {
  flex-shrink: 0;
  min-width: 0;
}

.main-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.1rem;
}

.nav-list a {
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  letter-spacing: 0.01em;
}

.header-actions {
  flex-shrink: 0;
  gap: 0.75rem;
}

.header-phone {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--black);
  transition: all 0.3s;
}

.header-phone:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.header-phone span { display: none; }

/* ─── Section Alignment System ──────────────────────────── */
.section {
  position: relative;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section-header {
  margin-left: auto;
  margin-right: auto;
}

/* Stagger grids */
[data-stagger] {
  display: grid;
}

/* Page hero holo upgrade */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: none;
  background: linear-gradient(180deg, #FFFCF5 0%, var(--white) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
}

.page-hero-content { position: relative; z-index: 1; }

/* Section divider holo line */
.section::after {
  content: '';
  display: block;
  width: min(200px, 40%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,193,7,0.4), transparent);
  margin: 0 auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
}

.section:last-of-type::after { display: none; }

/* Text reveal clip */
.text-reveal-wrap {
  overflow: hidden;
  display: block;
}

/* Magnetic hover on cards */
.glass-card,
.holo-card {
  will-change: transform;
}

/* Inner page content alignment */
.page-content-section .page-content,
.single-content {
  max-width: 100%;
}

.content-grid,
.overview-grid,
.leadership-grid,
.contact-grid,
.vm-grid {
  align-items: start;
}

/* Fix overview section header duplicate */
.overview-content .section-header {
  text-align: left;
  margin-left: 0;
  margin-bottom: 1.5rem;
}

.overview-content .section-line { margin-left: 0; }

/* Stat cards global */
.stat-card .stat-number { color: var(--black); }
.stat-suffix { color: var(--yellow-dark); }

/* Hide old hero */
.hero-section,
.hero-canvas-wrap,
.hero-light-rays,
.hero-hologram,
.hero-scroll-indicator { display: none !important; }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .header-container {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
  }

  .nav-list a {
    font-size: 0.72rem;
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 960px) {
  .main-nav { display: none; }

  .header-container {
    grid-template-columns: 1fr auto;
  }

  .hero-v2-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-v2-stats .stat-card {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 193, 7, 0.2) !important;
  }

  .hero-v2-stats .stat-card:nth-child(odd) {
    border-right: 1px solid rgba(255, 193, 7, 0.2) !important;
  }

  .hero-v2-stats .stat-card:nth-last-child(-n+2) {
    border-bottom: none !important;
  }
}

@media (max-width: 768px) {
  .hero-v2 {
    padding-top: calc(var(--header-height) + 1.5rem);
    min-height: auto;
  }

  .hero-v2-inner { gap: 1.25rem; }

  .hero-v2-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero-v2-actions .lvgi-btn { width: 100%; justify-content: center; }

  .hero-v2-scroll { display: none; }
}

@media (max-width: 480px) {
  .hero-v2-stats { grid-template-columns: 1fr 1fr; }
  .hero-v2-title { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .holo-card::after,
  .holo-shimmer,
  .holo-orb,
  .scroll-indicator { animation: none; }
  [data-hero-item] { opacity: 1; }
}
