/* ============================================
   FITFINITY FITNESS — Minimal Premium Theme
   Colors: American Sapphire & Dravit Grey
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Core Colors */
  --clr-bg: #050505;
  --clr-bg-alt: #0a0a0a;
  --clr-bg-card: rgba(15, 15, 15, 0.7);
  
  --clr-primary: #0219A4; /* American Sapphire */
  --clr-primary-light: #1630c7;
  --clr-accent: #0219A4; /* American Sapphire */
  --clr-glow: rgba(2, 25, 164, 0.4);
  
  --clr-secondary: #5b5b5b; /* Dravit Grey */
  --clr-secondary-light: #888888;
  
  --clr-text: #ffffff;
  --clr-text-muted: #999999;
  
  /* Borders & Glass */
  --clr-border: rgba(255, 255, 255, 0.1);
  --clr-border-highlight: rgba(255, 26, 26, 0.2);

  /* Fonts */
  --font-heading: 'Zen Dots', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Radii */
  --radius-sm: 0px;
  --radius-md: 4px;
  --radius-lg: 4px;
  
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ======= UTILITIES ======= */
.bg-dark { background-color: var(--clr-bg); }
.bg-darker { background-color: var(--clr-bg-alt); }
.w-100 { width: 100%; }

.position-relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.z-index-2 { z-index: 2; position: relative; }


.text-gradient {
  color: var(--clr-primary);
}
.text-accent {
  color: var(--clr-accent);
}
.dim {
  color: rgba(255, 255, 255, 0.5);
}

/* ======= HERO ANIMATIONS ======= */
/* Handled by GSAP Timeline */
.animate-up { opacity: 0; }

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: 2px; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 600px; margin-inline: auto; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -1px; margin-bottom: 16px; }
.section-header p { color: var(--clr-text-muted); font-size: 1.1rem; line-height: 1.7; }

/* ======= BUTTONS ======= */
button, .btn-primary, .btn-secondary, .btn-accent {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 30px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); border: none;
}
.btn-primary {
  background-color: var(--clr-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: #011075;
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn-accent {
  background: linear-gradient(135deg, var(--clr-accent), #0088ff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.btn-accent:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px) scale(1.02);
}

/* ======= PREMIUM MATTE CARDS ======= */
.glass-card, .stat-overlay {
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.glass-card { padding: 40px 30px; }

.glass-card:hover {
  border-color: rgba(2, 25, 164, 0.5);
}

/* ======= NAVIGATION ======= */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 20px 60px; display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
  background: rgba(8, 8, 8, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  padding: 12px 60px; border-bottom: 1px solid var(--clr-border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; letter-spacing: 2px;
}
.nav-logo-img { height: 45px; width: auto; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5)); }

/* PAGE LOADER */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--clr-bg);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  height: 80px;
  width: auto;
  animation: pulseLogo 1.5s infinite ease-in-out;
}
@keyframes pulseLogo {
  0% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
  50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 15px rgba(255,255,255,0.5)); }
  100% { transform: scale(1); opacity: 0.8; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 0.85rem; font-weight: 500; color: var(--clr-text-muted); transition: color 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--clr-text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-btn {
  padding: 10px 20px; font-weight: 600; font-size: 0.85rem; border-radius: var(--radius-sm);
  cursor: pointer; text-transform: uppercase;
}

/* ======= HERO SLIDER ======= */
.hero-container {
  position: relative; width: 100%; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding-top: 80px;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out, transform 8s linear;
  transform: scale(1.05);
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0.4) 0%, rgba(5,5,5,1) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: left; max-width: 1200px; width: 100%; padding: 0 40px; margin: 0 auto;
}
.hero-top-tags {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 30px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 30px; text-transform: uppercase;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-top-tags .dim { color: rgba(255, 255, 255, 0.4); }
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 900; letter-spacing: -2px; line-height: 1.1;
  margin-bottom: 30px; text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #888888);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content h1 .text-accent {
  background: linear-gradient(135deg, var(--clr-accent), #0066ff);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--clr-text-muted); margin-bottom: 45px; max-width: 650px;
  line-height: 1.6; border-left: 2px solid var(--clr-accent); padding-left: 24px;
}
.hero-actions { display: flex; gap: 20px; justify-content: flex-start; }

.hero-stats {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; gap: 40px; width: calc(100% - 80px); max-width: 1200px;
  padding: 30px 50px; 
  background: rgba(15, 15, 15, 0.6); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
  justify-content: space-between; align-items: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.stat-item { text-align: left; }
.stat-item h3 { font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -1px; display: flex; align-items: baseline; gap: 8px; color: #fff;}
.stat-item p { font-size: 0.75rem; color: var(--clr-text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; margin: 0; }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0.6;
}
.mouse-icon {
  width: 24px; height: 36px; border: 2px solid var(--clr-secondary); border-radius: 12px;
  position: relative; display: flex; justify-content: center;
}
.wheel {
  width: 4px; height: 8px; background: var(--clr-secondary); border-radius: 2px; margin-top: 6px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }

/* ======= SECTIONS ======= */
section { padding: 120px 0; }

/* SCROLL-DRIVEN 3D SHOWCASE (ABOUT) */
.showcase-pin-container {
  position: relative; width: 100%; height: 100vh; overflow: hidden;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.1), #050505 80%);
}
.showcase-model-container {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
#aboutCanvas { width: 100%; height: 100%; display: block; }
.showcase-loading {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  color: var(--clr-accent); font-family: var(--font-heading); font-size: 1.5rem; text-shadow: 0 0 15px var(--clr-accent); z-index: 10;
}
.showcase-stages {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
}
.stage-card {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; /* Hidden by default, GSAP will handle */
}
.stage-title {
  font-size: clamp(3rem, 6vw, 6rem); color: #fff; text-shadow: 0 20px 40px rgba(0,0,0,0.8);
  font-family: var(--font-heading); text-align: center; margin-bottom: 40px;
  position: absolute; top: 20%;
}
.showcase-text-box {
  width: 90%; max-width: 500px; padding: 40px;
  background: rgba(17, 17, 17, 0.6); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5); pointer-events: auto;
  position: absolute; bottom: 15%; right: 5%;
}
.showcase-text-box h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--clr-accent); font-family: var(--font-heading); }
.showcase-text-box p { color: #ccc; line-height: 1.6; font-size: 1.05rem; }

.stat-overlay {
  padding: 24px 32px;
  background: rgba(17, 17, 17, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 229, 255, 0.3); border-radius: var(--radius-md);
  box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 20px rgba(0, 229, 255, 0.2); z-index: 5;
}
.stat-overlay h3 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--clr-accent); line-height: 1; margin-bottom: 4px; text-shadow: 0 0 10px var(--clr-accent); }
.stat-overlay p { font-family: var(--font-body); font-weight: 600; color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

.feature-list li {
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; gap: 12px; color: #ccc; font-family: var(--font-body);
}
.feature-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--clr-primary); }

/* PROGRAMS */
.programs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.trainer-img-wrapper {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}
.trainer-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
  filter: grayscale(100%) brightness(0.9);
}
.trainer-card:hover .trainer-img-wrapper img {
  transform: scale(1.05);
  filter: grayscale(0%) brightness(1);
}
.programs-grid h3 { font-size: 1.4rem; margin-bottom: 12px; }
.programs-grid p { color: var(--clr-text-muted); font-size: 0.95rem; }

/* EVENTS */
.event-hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 500px;
}
.event-hero-card img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); transition: transform 0.8s; }
.event-hero-card:hover img { transform: scale(1.03); }
.event-content {
  position: absolute; inset: 0; padding: 60px;
  background: linear-gradient(to top, rgba(8,8,8,0.9), transparent);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.badge { align-self: flex-start; padding: 6px 12px; background: var(--clr-primary); color: #fff; font-size: 0.8rem; border-radius: 4px; margin-bottom: 16px; font-weight: 600; }
.event-content h3 { font-size: 2.5rem; margin-bottom: 12px; }
.event-content p { color: var(--clr-text-muted); max-width: 500px; font-size: 1.1rem; }

/* SCHEDULE */
.schedule-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.schedule-title-area { max-width: 500px; }
.schedule-title-area h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-top: 8px; line-height: 1.1; }
.schedule-desc-area { max-width: 400px; color: var(--clr-text-muted); font-size: 1.05rem; }

.small-caps { font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }

.schedule-tabs { display: flex; border-bottom: 1px solid var(--clr-border); margin-bottom: 30px; overflow-x: auto; scrollbar-width: none; }
.schedule-tabs::-webkit-scrollbar { display: none; }
.tab-btn { background: transparent; color: var(--clr-text-muted); border: none; padding: 16px 24px; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: 0.2s; }
.tab-btn:hover { color: var(--clr-text); }
.tab-btn.active { color: var(--clr-bg); background: var(--clr-accent); border-color: var(--clr-accent); }

.schedule-filters { display: flex; gap: 16px; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; color: var(--clr-secondary-light); text-transform: uppercase; }
.filter-btn { background: transparent; border: none; color: var(--clr-text-muted); font-size: 0.9rem; cursor: pointer; padding: 6px 12px; border-radius: 4px; transition: 0.2s; }
.filter-btn.active { background: rgba(255,255,255,0.1); color: var(--clr-text); }
.filter-btn:hover { color: var(--clr-text); }

.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.schedule-card { background: rgba(18, 18, 18, 0.6); border: 1px solid var(--clr-border); padding: 30px; border-radius: var(--radius-md); display: flex; flex-direction: column; transition: 0.3s; }
.schedule-card:hover { border-color: rgba(255,255,255,0.2); background: rgba(25, 25, 25, 0.8); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; font-size: 0.85rem; font-weight: 600; }
.time { display: flex; align-items: center; gap: 8px; color: var(--clr-text); }
.time svg { width: 16px; height: 16px; color: var(--clr-accent); }
.duration { color: var(--clr-text-muted); font-weight: 400; }
.load-badge { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; letter-spacing: 1px; color: var(--clr-text-muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.extreme { background-color: #ff3366; }
.dot.high { background-color: #ffcc00; }
.dot.moderate { background-color: #00e5ff; }

.schedule-card h3 { font-size: 1.3rem; margin-bottom: 16px; line-height: 1.3; }
.schedule-card p { color: var(--clr-text-muted); font-size: 0.95rem; margin-bottom: 30px; flex-grow: 1; }
.card-footer { border-top: 1px solid var(--clr-border); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.card-footer p { margin-bottom: 0; font-size: 0.85rem; color: var(--clr-secondary-light); display: flex; align-items: center; gap: 10px; }
.card-footer svg { width: 16px; height: 16px; opacity: 0.6; }

/* PRICING */
.pricing-wrapper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; z-index: 2; position: relative; }
.pricing-glow-bg { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(2, 25, 164, 0.15) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; filter: blur(50px); }
.pricing-card { position: relative; padding: 40px 30px; display: flex; flex-direction: column; background: rgba(10, 10, 10, 0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius-lg); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s; overflow: visible; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.15); }
.pricing-card h4 { font-size: 1.4rem; color: #fff; margin-bottom: 8px; font-weight: 600; letter-spacing: 1px; }
.tier-desc { font-size: 0.9rem; color: var(--clr-secondary-light); margin-bottom: 24px; min-height: 40px; line-height: 1.4; }
.price { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; margin-bottom: 30px; color: #fff; }
.price span { font-size: 1.2rem; vertical-align: super; color: var(--clr-secondary-light); margin-right: 4px; }
.price .period { font-size: 1rem; color: var(--clr-text-muted); vertical-align: baseline; font-weight: 400; }
.pricing-card .feature-list { margin-bottom: 40px; flex-grow: 1; }
.pricing-card .feature-list li { border: none; padding: 10px 0; font-size: 0.95rem; color: #ccc; display: flex; align-items: center; gap: 12px; }
.pricing-card .feature-list li::before { content: none; }
.pricing-card .feature-list li svg { width: 18px; height: 18px; color: var(--clr-accent); flex-shrink: 0; }
.pricing-card .feature-list li.disabled { color: #555; }
.pricing-card .feature-list li.disabled svg { color: #555; }
.featured-banner { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--clr-accent); color: #fff; font-size: 0.75rem; font-weight: 800; padding: 6px 20px; border-radius: 20px; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }

.pricing-card.featured {
  border-color: rgba(2, 25, 164, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  background: linear-gradient(145deg, rgba(20,20,20,0.9), rgba(8,8,8,0.9));
  transform: scale(1.05);
  z-index: 3;
}
.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}
.pricing-card.featured::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(45deg, var(--clr-primary), var(--clr-accent), var(--clr-primary));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
  animation: borderGlow 4s ease infinite;
}
@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* FOOTER */
.minimal-footer { border-top: 1px solid var(--clr-border); padding: 60px 0 30px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--clr-text-muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--clr-text); }
.footer-bottom { border-top: 1px solid var(--clr-border); padding-top: 30px; text-align: center; color: var(--clr-secondary-light); font-size: 0.85rem; }

/* REVEAL ANIMATIONS */
/* Handled by GSAP ScrollTrigger */
.reveal { opacity: 0; }

/* ======= HAMBURGER MENU ======= */
.hamburger {
  display: none; flex-direction: column; gap: 6px;
  cursor: pointer; background: transparent; border: none;
  z-index: 1001; padding: 10px;
}
.hamburger span {
  display: block; width: 28px; height: 2px;
  background-color: var(--clr-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-wrapper { gap: 20px; }
  .hero-content h1 { font-size: clamp(3.5rem, 7vw, 5.5rem); }
}

@media (max-width: 768px) {
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-header { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 30px; }
  section { padding: 80px 0; }
  .navbar { padding: 16px 30px; }
  .navbar.scrolled { padding: 12px 30px; }
  
  .hamburger { display: flex; }
  
  /* Mobile Menu Overlay */
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(8, 8, 8, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center; gap: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.5rem; font-weight: 500; }
  .nav-actions { display: none; }
  
  .about-grid, .pricing-wrapper { grid-template-columns: 1fr; }
  .about-image-wrapper { max-width: 500px; margin: 0 auto 40px; }
  
  .event-hero-card { height: 400px; }
  .event-content { padding: 40px 30px; }
  .event-content h3 { font-size: 2rem; }
  
  .footer-top { flex-direction: column; gap: 30px; text-align: center; }
  .footer-links { flex-direction: column; gap: 16px; align-items: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; border-top: none; padding-top: 0; padding-bottom: 20px; }
  .programs-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 3rem; }
  .hero-tagline { font-size: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions a { width: 100%; }
  .stat-overlay { right: 0; left: 0; bottom: -30px; text-align: center; }
  .pricing-card { padding: 40px 24px; }
  .container { padding: 0 24px; }
}
/* GLASS CARD ENHANCEMENT */
.glass-card {
  position: relative;
  overflow: hidden;
}
.glass-card::after {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.7s;
}
.glass-card:hover::after {
  left: 150%;
}



/* NOISE OVERLAY */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* CONTACT SECTION */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.contact-form form input:focus, .contact-form form textarea:focus { border-color: var(--clr-accent) !important; outline: none; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* SERVICES GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 50px 40px;
  border-radius: 12px;
  transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 229, 255, 0.3);
}
.service-icon .accent-line {
  width: 40px;
  height: 3px;
  background: var(--clr-accent);
  margin-bottom: 25px;
  transition: width 0.4s ease;
}
.service-card:hover .accent-line {
  width: 80px;
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.service-card p {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.7;
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* NEW PRICING CUSTOM GRID */
.pricing-grid-custom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}
.pricing-card-custom {
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 50px 40px;
  text-align: center;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.pricing-card-custom:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.3);
}
.pricing-card-custom.featured {
  border: 1px solid var(--clr-accent);
  background: rgba(0, 229, 255, 0.02);
  transform: scale(1.05);
  z-index: 1;
  padding-top: 60px;
}
.pricing-card-custom.featured:hover {
  transform: scale(1.05) translateY(-5px);
}
.pricing-card-custom .featured-banner {
  position: absolute;
  top: 0; 
  left: 50%; 
  transform: translate(-50%, -50%);
  background: var(--clr-accent);
  color: #000;
  font-family: var(--font-heading);
  padding: 8px 24px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.icon-box {
  width: 50px;
  height: 50px;
  background: rgba(0,229,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-box svg {
  width: 24px;
  height: 24px;
}
.pricing-card-custom .icon-box {
  margin: 0 auto 20px;
}
.pricing-card-custom h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.pricing-card-custom .tier-desc {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 25px;
  min-height: 40px;
}
.pricing-card-custom .price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 30px;
}
.pricing-card-custom .price .period {
  font-size: 1rem;
  color: #888;
  font-family: var(--font-body);
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 30px;
  text-align: left;
  display: inline-block;
}
.feature-list li {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--clr-accent);
}

/* FAMILY PLAN CARD */
.family-plan-card {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(10, 10, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  position: relative;
  padding: 40px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.family-plan-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
}
.family-banner {
  position: absolute;
  top: 0; right: 40px;
  background: var(--clr-accent);
  color: #000;
  font-family: var(--font-heading);
  padding: 8px 20px;
  text-transform: uppercase;
  font-size: 0.8rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}
.family-content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.family-left {
  flex: 1;
  min-width: 280px;
}
.family-left h4 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  display: inline-block;
  margin-right: 10px;
}
.family-left .sub-badge {
  background: rgba(255,255,255,0.1);
  color: #ddd;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 20px;
  vertical-align: middle;
}
.family-left .family-desc {
  color: #aaa;
  margin-top: 15px;
  line-height: 1.6;
}
.family-middle {
  flex: 2;
  min-width: 300px;
}
.family-middle .feature-list li {
  margin-bottom: 0;
  font-size: 0.95rem;
}
.family-right {
  flex: 1;
  min-width: 250px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.family-right .note {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

@media (max-width: 900px) {
  .family-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
  .family-right {
    text-align: left;
    width: 100%;
  }
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.3s ease;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
}
.modal-close:hover {
  color: var(--clr-accent);
}

/* =========================================
   RESPONSIVE LAYOUTS (Mobile & Tablet)
   ========================================= */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 2000;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid-custom { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  /* Navbar */
  .navbar, .navbar.scrolled { padding: 15px 20px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1500;
  }
  .nav-links.active { transform: translateX(0); right: auto; }
  .nav-btn { display: none; }
  
  /* Hero */
  .hero-content {
    padding: 0 20px;
    text-align: center;
  }
  .hero-content h1 { 
    font-size: clamp(1.8rem, 8vw, 2.5rem); 
  }
  .hero-stats { 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    position: relative;
    transform: none;
    left: auto; bottom: auto;
    width: 100%;
    margin-top: 40px;
  }
  
  .hero-actions { flex-direction: column; width: 100%; gap: 15px; }
  .hero-actions a { width: 100%; text-align: center; margin: 0; }
  
  /* Grids */
  .services-grid, .programs-grid, .pricing-grid-custom, .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid, .footer-top { grid-template-columns: 1fr; }
  .contact-info { padding-right: 0 !important; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .pricing-card-custom, .glass-card { padding: 30px 20px; }
}
