/* ==========================================================================
   CSS Variables & Tokens
   ========================================================================== */
   :root {
    --primary-color: #0b1c3c; /* Deep Judo Blue */
    --accent-color: #da291c; /* Japan/USA Judo Red */
    --text-color: #1d1d1f; /* Apple-esque dark gray for readability */
    --text-light: #86868b;
    --bg-color: #ffffff;
    --bg-light: #f5f5f7; /* Very subtle light gray */
    --bg-dark: #000000;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
  }
  
  /* ==========================================================================
     Reset & Global
     ========================================================================== */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
  }
  
  body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    padding-bottom: 40px; /* Space for the bottom banner */
  }
  
  h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 0.5em;
  }
  
  p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section {
    padding: 100px 0;
  }
  
  .text-center { text-align: center; }
  .m-light { color: #f5f5f7 !important; }
  
  .bg-light { background-color: var(--bg-light); }
  .bg-dark { background-color: var(--primary-color); color: #fff; }
  
  /* ==========================================================================
     Construction Banner
     ========================================================================== */
  .construction-banner {
    background-color: #ffe500;
    color: #000;
    text-align: center;
    padding: 10px 0;
    font-weight: 600;
    font-size: 0.9rem;
    position: fixed;
    left: 0;
    width: 100%;
    z-index: 10000;
    height: 40px;
  }
  .banner-top {
    top: 0;
  }
  .banner-bottom {
    bottom: 0;
  }
  .construction-banner p {
    margin: 0;
    color: #000;
  }
  
  /* ==========================================================================
     Navigation
     ========================================================================== */
  .navbar {
    position: fixed;
    top: 40px; /* Always below top banner */
    width: 100%;
    background: rgba(255, 255, 255, 0.98); /* Solid enough to prevent iOS z-index issues */
    z-index: 999;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0,0,0,0.08); /* Clean solid border */
  }
  
  .navbar.scrolled {
    top: 40px; /* Stay below the banner */
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
  }
  
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 5%;
  }
  
  .logo {
    height: 50px;
    object-fit: contain;
  }
  
  .nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
  
  .menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000;
  }
  
  .menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition-smooth);
    border-radius: 2px;
  }
  
  .nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover {
    color: var(--accent-color);
  }
  
  /* Buttons */
  .btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
  }
  
  .btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
  }
  
  .btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
  }
  
  .btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
  }
  
  .btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
  }
  
  .btn-secondary {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
  }
  
  .btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
  }
  
  /* ==========================================================================
     Intro Splash
     ========================================================================== */
  .intro-splash {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: #fff;
    position: relative;
    z-index: 50; /* Beneath navbar */
    overflow: hidden;
  }

  .splash-text {
    font-size: clamp(3rem, 12vw, 15rem);
    font-weight: 800;
    font-family: var(--font-heading);
    line-height: 0.9;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    letter-spacing: -2px;
  }

  .word-group {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-in-text {
    height: clamp(3rem, 12vw, 15rem);
    width: auto;
    object-fit: contain;
    margin-left: 2px;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.1));
    transform-origin: center;
  }

  /* ==========================================================================
     Hero Section
     ========================================================================== */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
  
  .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05); /* For GSAP effect */
  }
  
  .hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 28, 60, 0.4), rgba(0, 0, 0, 0.8));
  }
  
  .hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
    z-index: 10;
  }
  
  .hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  }
  
  .hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
  }
  
  /* ==========================================================================
     Layouts
     ========================================================================== */
  .grids {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  
  .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
  }
  
  /* ==========================================================================
     About Section
     ========================================================================== */
  .about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  }
  
  /* ==========================================================================
     Classes Section
     ========================================================================== */
  .class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
  }
  
  .class-card {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
  }
  
  .class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  }
  
  .card-img {
    height: 250px;
    overflow: hidden;
  }
  
  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }
  
  .class-card:hover .card-img img {
    transform: scale(1.05);
  }
  
  .card-content {
    padding: 30px;
  }
  
  .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  /* ==========================================================================
     Instructors Section
     ========================================================================== */
  .instructor-profile {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: var(--border-radius-lg);
    padding: 40px;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  }
  
  .instructor-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-color);
  }
  
  .instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .instructor-info .belt {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 15px;
  }
  
  .badge {
    height: 40px;
    margin-top: 15px;
  }
  
  /* ==========================================================================
     Schedule Table
     ========================================================================== */
  .schedule-table-container {
    overflow-x: auto;
    margin-top: 40px;
    background: #fff;
    border-radius: var(--border-radius-md);
    padding: 20px;
  }
  
  .schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
  }
  
  .schedule-table th, .schedule-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
  }
  
  .schedule-table th {
    background: var(--bg-light);
    color: var(--primary-color);
    font-weight: 700;
  }
  
  .schedule-table td {color: var(--text-color);}
  
  /* ==========================================================================
     FAQ Section
     ========================================================================== */
  .faq-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
  }
  
  .lang-btn {
    padding: 8px 20px;
    border: 1px solid var(--text-light);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition-smooth);
  }
  
  .lang-btn.active, .lang-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
  }
  
  .faq-container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .faq-item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 10px;
  }
  
  .faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
  }
  
  .faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
  }
  
  .faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-color);
  }
  
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .faq-answer p {
    padding-bottom: 20px;
  }
  
  /* ==========================================================================
     Footer
     ========================================================================== */
  .footer {
    padding: 80px 0 40px;
  }
  
  .footer-logo {
    filter: brightness(0) invert(1);
    height: 60px;
    margin-bottom: 20px;
  }
  
  .footer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    flex-direction: column;
  }
  
  .social-links a {
    color: var(--text-light);
    transition: color 0.3s;
  }
  
  .social-links a:hover {
    color: #fff;
  }
  
  .footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  
  /* ==========================================================================
     Achievements & Medals
     ========================================================================== */
  .medals-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
  }
  
  .medal-card {
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-width: 250px;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }
  
  .medal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }
  
  .medal-count {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin: 15px 0 5px;
    color: var(--text-color);
  }
  
  .medal-label {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .medal-icon {
    font-size: 4.5rem;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
  }
  
  /* Shiny gradient effects for the cards */
  .medal-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      to right, 
      rgba(255,255,255,0) 0%, 
      rgba(255,255,255,0.8) 50%, 
      rgba(255,255,255,0) 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
    pointer-events: none;
  }
  
  @keyframes shine {
    0% { transform: translateX(-150%) rotate(45deg); }
    100% { transform: translateX(150%) rotate(45deg); }
  }
  
  .medal-gold {
    border: 3px solid #D4AF37;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
  }
  .medal-gold .medal-label { color: #D4AF37; }
  
  .medal-silver {
    border: 3px solid #B0C4DE;
    background: linear-gradient(135deg, #f0f4f8 0%, #fff 100%);
  }
  .medal-silver .medal-label { color: #8c9bb3; }
  
  .medal-bronze {
    border: 3px solid #CD7F32;
    background: linear-gradient(135deg, #faebd7 0%, #fff 100%);
  }
  .medal-bronze .medal-label { color: #A0522D; }

  /* ==========================================================================
     Responsive
     ========================================================================== */
  @media (max-width: 992px) {
    .grids {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .menu-toggle {
      display: flex;
    }
    
    .nav-links {
      display: flex;
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: -100%; /* Hidden by default to the left to prevent iOS horizontal swipe void */
      width: 100%;
      height: 100vh; /* Fill screen height */
      background: #ffffff;
      padding: 3rem 0;
      box-shadow: 0 10px 20px rgba(0,0,0,0.1);
      transition: left 0.4s ease;
      align-items: center;
      gap: 2rem;
      border-top: 1px solid #eee;
    }
    
    .nav-links a {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--primary-color);
    }
    
    .nav-links.active {
      left: 0;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
      opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    
    .hero-buttons {
      flex-direction: column;
    }
    
    .instructor-profile {
      flex-direction: column;
      text-align: center;
    }
  }
  
  /* GSAP initial states */
  .reveal-text, .reveal-text-delay, .reveal-text-delay-2, 
  .scroll-fade-up, .scroll-fade-left, .scroll-scale-up {
    visibility: hidden;
  }
