/* ====================
   GLOBAL VARIABLES
==================== */
:root {
  /* Dark theme (default) */
  --bg-main: #050508;
  --bg-elevated: #111019;
  --bg-elevated-soft: #18151f;
  --bg-hero-overlay: radial-gradient(circle at top left, rgba(255, 0, 64, 0.4), transparent 55%),
                      radial-gradient(circle at bottom right, rgba(255, 196, 0, 0.35), transparent 60%),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 1));
  --border-soft: rgba(255, 255, 255, 0.07);

  --color-text: #f9fafb;
  --color-text-muted: #b0b3c2;
  --color-text-soft: #e5e7eb;

  --color-primary: #e21b3c;     /* Vibrant red */
  --color-primary-soft: rgba(226, 27, 60, 0.2);
  --color-accent: #f5c45b;      /* Gold */
  --color-accent-soft: rgba(245, 196, 91, 0.18);

  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-soft-sm: 0 12px 28px rgba(0, 0, 0, 0.55);

  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.65rem;
  --radius-pill: 999px;

  --transition-fast: 160ms ease-out;
  --transition-med: 220ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* Light theme overrides */
body[data-theme="light"] {
  --bg-main: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-elevated-soft: #fdf3ec;
  --bg-hero-overlay: radial-gradient(circle at top left, rgba(226, 27, 60, 0.18), transparent 55%),
                      radial-gradient(circle at bottom right, rgba(245, 196, 91, 0.2), transparent 60%),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(249, 250, 251, 1));
  --border-soft: rgba(15, 23, 42, 0.08);

  --color-text: #111827;
  --color-text-muted: #6b7280;
  --color-text-soft: #4b5563;

  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.22);
  --shadow-soft-sm: 0 12px 24px rgba(15, 23, 42, 0.18);
}

/* Theme-specific tweaks */
body[data-theme="light"] .top-strip { background: rgba(255, 255, 255, 0.92); }
body[data-theme="light"] .main-nav { background: rgba(255, 255, 255, 0.96); }

body[data-theme="light"] .hero-content {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(249, 250, 251, 1));
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
body[data-theme="light"] .hero-subtitle { color: var(--color-text-soft); }
body[data-theme="light"] .hero-bg img { filter: grayscale(0.15) contrast(1.05) brightness(1.03); }
body[data-theme="light"] .scroll-down { border-color: rgba(15, 23, 42, 0.3); }
body[data-theme="light"] .scroll-down span { background: #111827; }
body[data-theme="light"] .hero-dots button { border-color: rgba(15, 23, 42, 0.5); }

/* Cards & blocks light mode */
body[data-theme="light"] .training-card,
body[data-theme="light"] .guru-card,
body[data-theme="light"] .event-card,
body[data-theme="light"] .contact-form,
body[data-theme="light"] .testimonial-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
body[data-theme="light"] .site-footer { background: #ffffff; }

/* ====================
   RESETS & BASE
==================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--color-text);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

/* ====================
   HEADER & NAV
==================== */
.site-header { position: relative; z-index: 50; }

/* Top Strip */
.top-strip {
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.8rem;
  padding: 0.45rem 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}
.top-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top-strip-left, .top-strip-right { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.divider { opacity: 0.55; margin: 0 0.5rem; }
.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(135deg, var(--color-primary-soft), transparent);
  padding: 0.18rem 0.7rem;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

/* Main Nav */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 49;
  background: rgba(5, 5, 8, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.55rem 0; }

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid var(--color-accent-soft);
}
.brand-title {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}
.brand-subtitle { font-size: 0.7rem; text-transform: uppercase; color: var(--color-text-muted); }

.nav-links { display: flex; align-items: center; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  transition: all var(--transition-fast);
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); }
.nav-link.active {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: #fff;
  box-shadow: 0 10px 25px rgba(226, 27, 60, 0.45);
}
.nav-link-outline { border: 1px solid var(--color-accent); padding-inline: 0.95rem; }

.nav-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-text-soft); }

/* ====================
   HERO CAROUSEL (CLEAN FIX)
==================== */

/* 1. Main Container: Full height on desktop */
.page-banner.home-banner {
  position: relative;
  width: 100%;
  height: 100vh; /* Full screen height */
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: #050508; /* Dark background fallback */
}

/* 2. Wrappers must pass down the height */
.slider-wrapper, 
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 3. The Slide Item */
.hero-carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out, visibility 1s;
  z-index: 1;
}

/* 4. Active State */
.hero-carousel-item.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* 5. The Image - Object Fit Cover */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills screen (crops sides if needed) */
  object-position: center top; /* Focuses on faces/upper body */
}

/* 6. Light Overlay (Since text is removed) */
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Very subtle gradient just to make the Top Nav visible */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,   /* Dark top for Logo/Menu */
    rgba(0, 0, 0, 0) 25%,    /* Clear middle */
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}


/* ====================
   SECTIONS & MODULES
==================== */
.section { padding: 4rem 0; }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.6rem; }
.section-kicker { text-transform: uppercase; letter-spacing: 0.25em; font-size: 0.7rem; color: var(--color-text-muted); margin-bottom: 0.4rem; }
.section-header h2 { font-family: "Playfair Display", serif; font-size: 2rem; margin: 0; }
.section-header h2 span { color: var(--color-primary); }

/* About */
.about-section { background: radial-gradient(circle at top left, rgba(245, 196, 91, 0.12), transparent 55%); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.about-text p { color: var(--color-text-soft); margin-bottom: 1rem; }
.about-list { padding-left: 1.2rem; color: var(--color-text-muted); }
.about-list li { margin-bottom: 0.4rem; }
.about-image-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 0.35rem;
  background: radial-gradient(circle at top, rgba(226, 27, 60, 0.2), transparent 60%);
  box-shadow: var(--shadow-soft-sm);
}
.about-image-frame img { border-radius: 1.2rem; }

/* Training */
.training-section { background: linear-gradient(180deg, rgba(226, 27, 60, 0.05), transparent); }
.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.training-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft-sm);
}
.training-card h3 { margin: 0 0 0.5rem; color: var(--color-accent); }
.training-card p { font-size: 0.9rem; color: var(--color-text-soft); }
.training-card ul { padding-left: 1.1rem; color: var(--color-text-muted); font-size: 0.85rem; margin-top: 1rem; }
.training-note { margin-top: 2rem; text-align: center; font-size: 0.9rem; color: var(--color-text-muted); font-style: italic; }

/* Gurus */
.gurus-section {
  background: radial-gradient(circle at bottom right, rgba(245, 196, 91, 0.14), transparent 60%);
}
.gurus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; justify-content: center; }
.guru-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 196, 91, 0.35);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.guru-card:hover { transform: translateY(-5px); }
.guru-image { aspect-ratio: 3/4; overflow: hidden; }
.guru-image img { width: 100%; height: 100%; object-fit: cover; }
.guru-body { padding: 1.5rem; }
.guru-body h3 { font-family: "Playfair Display", serif; margin: 0 0 0.3rem; font-size: 1.25rem; }
.guru-role { font-size: 0.75rem; text-transform: uppercase; color: var(--color-accent); letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.guru-body p { font-size: 0.9rem; color: var(--color-text-soft); }

/* Events */
.events-section { background: var(--bg-main); }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.event-card {
  background: var(--bg-elevated-soft);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft-sm);
}
.event-image img { width: 100%; height: 200px; object-fit: cover; }
.event-body { padding: 1rem 1.2rem; font-size: 0.92rem; color: var(--color-text-soft); }
.events-cta { text-align: center; margin-top: 2rem; }

/* Testimonials (Fixed from HTML) */
.testimonials-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
}
.testimonials-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.testimonial-card {
  background: var(--bg-main); /* Inverted for contrast */
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}
.testimonial-card strong { display: block; margin-top: 1rem; color: var(--color-accent); font-size: 0.85rem; }

/* Contact */
.contact-section { background: radial-gradient(circle at top, rgba(226, 27, 60, 0.14), transparent 60%); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.contact-info p { color: var(--color-text-soft); margin-bottom: 1.2rem; font-size: 0.95rem; }
.contact-info a { color: var(--color-primary); }

.contact-map iframe {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    border: 1px solid var(--border-soft);
}

.contact-form {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft-sm);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 0.1em; }

input, textarea {
  background: var(--bg-elevated-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.8rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(245, 196, 91, 0.2);
}
.btn-block { width: 100%; }
.form-footnote { font-size: 0.75rem; color: var(--color-text-muted); text-align: center; margin-top: 0.8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); border: none; cursor: pointer;
  font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.6rem 1.5rem; font-weight: 500;
  transition: transform 0.2s;
}
.btn-primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: #fff; box-shadow: var(--shadow-soft-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-outline {
  border: 1px solid var(--color-accent); color: var(--color-accent); background: transparent;
}
.btn-outline:hover { background: var(--color-accent-soft); color: #fff; }

/* ====================
   FOOTER
==================== */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-elevated); margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0; }
.footer-col h4 { color: var(--color-text); text-transform: uppercase; font-size: 0.9rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.footer-brand-inner { display: flex; gap: 1rem; align-items: flex-start; }
.footer-logo { width: 50px; height: 50px; border-radius: 999px; }
.footer-brand-inner h3 { font-family: "Playfair Display", serif; font-size: 1.1rem; margin: 0; }
.footer-brand-inner p { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 0.4rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; color: var(--color-text-soft); font-size: 0.9rem; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--border-soft); padding: 1.5rem 0;
  display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--color-text-muted);
}

/* ====================
   FLOATERS (Whatsapp & Scroll)
==================== */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; width: 40px; height: 40px;
  background: var(--color-primary); color: #fff; border: none; border-radius: 50%;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  z-index: 99;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

.whatsapp-float {
  position: fixed; right: 1.5rem; bottom: 5rem; width: 50px; height: 50px;
  background: #25d366; color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 100; transition: transform 0.3s;
  font-size: 24px;
}
.whatsapp-float:hover { transform: translateY(-3px); }
/* Pseudo-element for WhatsApp Icon since HTML lacks it */
.whatsapp-float::after {
  content: "💬"; /* Simple chat bubble fallback */
  font-style: normal;
}

/* ====================
   RESPONSIVE (MEDIA QUERIES)

==================== */
/* ====================
   CAROUSEL RESPONSIVENESS (UPDATED)
==================== */

/* Tablets (iPad, etc.) */
@media (max-width: 992px) {
  .page-banner.home-banner {
    /* On tablets, we still want some height */
    height: 60vh;
    min-height: 400px;
  }
}

/* Mobile Phones (The Fix for Cropping) */
@media (max-width: 768px) {
  .page-banner.home-banner {
    /* 1. Remove fixed heights that force cropping */
    height: auto; 
    min-height: unset;

    /* 2. Force the container to be a perfect 16:9 rectangle */
    /* This matches standard landscape photos so sides aren't cut */
    height: 56.25vw; 
    max-height: 400px; /* Cap it so it doesn't get too big on phablets */
  }

  .hero-bg img {
    /* 3. Ensure we see the center of the group */
    object-position: center center;
  }
  
  /* 4. Make dots smaller and closer to bottom */
  .hero-dots {
    bottom: 0.5rem;
  }
  
  .hero-dots button {
    width: 6px;
    height: 6px;
  }
}
/* 1. Laptop/Desktop Tweaks */
@media (max-width: 1200px) {
  .hero-title { font-size: 2.8rem; }
}

/* 2. Tablets (Max 992px) */
@media (max-width: 992px) {
  .top-strip .container { flex-direction: column; align-items: flex-start; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-elevated);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-links.open { max-height: 400px; padding: 1rem 0; }
  .nav-link { width: 100%; padding: 0.7rem 1.5rem; justify-content: flex-start; }
  
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .training-grid, .gurus-grid, .events-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* 3. Mobile (Max 768px) */
@media (max-width: 768px) {
  .top-strip { display: none; }
  .main-nav { top: 0; }
  .hero-content { margin: 0 1rem; text-align: center; }
  .hero-actions { justify-content: center; }
  
  .training-grid, .gurus-grid, .events-grid, .testimonials-grid { grid-template-columns: 1fr; }
  
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand-inner { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  
  .whatsapp-float { bottom: 4.5rem; right: 1rem; }
  .back-to-top { bottom: 1rem; right: 1rem; }
}

/* --- GALLERY SPECIFIC STYLES --- */

.gallery-hero {
  padding: 6rem 0 3rem;
  text-align: center;
  background: radial-gradient(circle at top, rgba(226, 27, 60, 0.15), transparent 70%);
}

.gallery-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.gallery-subtitle {
  color: var(--color-text-soft);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Ensure grid matches the responsive fixes we made earlier */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1; /* Forces square tiles */
  border: 1px solid var(--border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  z-index: 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}
/* ====================
   LIGHTBOX (POPUP) STYLES
==================== */

.lightbox {
  position: fixed; /* This makes it float on top of the screen */
  inset: 0;        /* This stretches it to cover the full screen (top/bottom/left/right: 0) */
  background: rgba(0, 0, 0, 0.9); /* Dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none; /* Allows clicking through it when hidden */
  z-index: 1000;   /* Ensures it sits on top of everything else */
  transition: opacity 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto; /* Re-enables clicking when visible */
}

.lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  background: transparent;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  z-index: 1001;
}

.lightbox-close:hover {
  color: var(--color-primary); /* Uses your red theme color */
  transform: scale(1.1);
}