/* BASE STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: #333; line-height: 1.6; scroll-behavior: smooth; }
h1, h2, h3 { color: #1e3a5f; }
a { text-decoration: none; color: #ffffff; }

/* HEADER */
#header {
  position: fixed; top:0; width:100%; background: rgba(30,58,95,0.85); z-index: 10;
  padding: 10px 20px; backdrop-filter: blur(8px);
}
#header .container { display:flex; justify-content:space-between; align-items:center; }
#header nav ul { display:flex; list-style:none; gap:20px; }
#header nav ul li a { color:#fff; font-weight:500; transition:0.3s; }
#header nav ul li a:hover { color:#a8d0e6; }
#logo img { height:50px; }
body { padding-top:70px; }

/* HERO */
#hero { position: relative; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
#hero video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.3); z-index:2; }
.hero-content { position: relative; z-index:3; color: #fff; max-width: 800px; padding: 20px; }
.hero-content h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 20px; }
.cta-button { background: #1e3a5f; color: #fff; padding: 12px 30px; border-radius: 25px; transition: 0.3s; }
.cta-button:hover { background: #3e5f8f; }
#hero-3d { position: absolute; top:0; left:0; width:100%; height:100%; z-index:2; pointer-events:none; }

/* SECTIONS */
section { padding:80px 20px; text-align:center; }
.classes-container, .testimonial-container, .instructor-profile { display:flex; justify-content:center; flex-wrap:wrap; gap:40px; margin-top:40px; }
.class-card, .testimonial-card { background:#fff; padding:20px; border-radius:15px; box-shadow:0 5px 15px rgba(0,0,0,0.1); width:250px; transition: transform 0.3s; }
.class-card:hover, .testimonial-card:hover { transform: translateY(-10px); }
.class-card img, .testimonial-card img { width:212px; margin-bottom:15px; border-radius:10px; }
.instructor-profile img { width:250px; border-radius:15px; }
.instructor-info { max-width:500px; text-align:left; }
.contact-form { max-width:500px; margin:0 auto; display:flex; flex-direction:column; gap:15px; }
.contact-form input, .contact-form select, .contact-form button { padding:12px; border-radius:8px; border:1px solid #ccc; width:100%; font-size:1rem; }
.contact-form button { background:#1e3a5f; color:#fff; border:none; cursor:pointer; transition:0.3s; }
.contact-form button:hover { background:#3e5f8f; }
.privacy-policy { font-size:0.8rem; color:#555; margin-top:5px; }
footer { padding:20px; background:#1e3a5f; color:#fff; text-align:center; }
footer a { color:#fff; }

/* PARALLAX LAYERS */
.parallax-layer { transition: transform 0.2s ease-out; will-change: transform; position: relative; }

/* Gallery Section */
#gallery {
  padding: 100px 20px;
  background: #f5f9f6;
  text-align: center;
  overflow: hidden;
}

#gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.gallery-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 20px;
  animation: scrollGallery 50s linear infinite;
}

.gallery-carousel:hover .gallery-track {
  animation-play-state: paused;
}


.gallery-item {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Infinite scroll keyframes */
@keyframes scrollGallery {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(-50%); }
  55%  { transform: translateX(-50%); } /* small pause */
  100% { transform: translateX(0); }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.lightbox .close:hover {
  color: #f39c12;
}

/* Reels Section */
#reels {
  padding: 100px 20px;
  background: #eef7f3;
  text-align: center;
  overflow: hidden;
}

#reels h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #2c3e50;
}

.reels-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.reels-track {
  display: flex;
  gap: 20px;
  animation: scrollReels 60s ease-in-out infinite;
}

.reel-item {
  width: 250px;
  height: 450px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reel-item:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

/* Alternate scrolling keyframes */
@keyframes scrollReels {
  0%   { transform: translateX(0); }
  45%  { transform: translateX(-50%); }
  55%  { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.reels-carousel:hover .reels-track {
  animation-play-state: paused;
}
.reel-item:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 28px rgba(0,0,0,0.25);
  border: 2px solid #6abf69; /* subtle green border when active */
}
.reel-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
}

.reel-container .reel-item {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.sound-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.5);
  color: white;
  font-size: 18px;
  padding: 6px 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sound-toggle:hover {
  background: rgba(106, 191, 105, 0.8); /* green highlight */
}

.pricing {
  padding: 80px 20px;
  text-align: center;
  background: #f5f8f6;
}

.pricing .section-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #2d3e35;
}

.pricing .section-subtitle {
  color: #666;
  margin-bottom: 40px;
}

.pricing-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  width: 300px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.15);
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2d3e35;
}

.pricing-card .price {
  font-size: 1.2rem;
  color: #6abf69;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  text-align: left;
}

.pricing-card ul li {
  margin-bottom: 10px;
  color: #444;
}

.pricing-card .btn {
  background: #6abf69;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.pricing-card .btn:hover {
  background: #579c57;
}

/* Highlight Intermediate Plan */
.pricing-card.featured {
  border: 2px solid #6abf69;
  transform: scale(1.05);
}


/* Toggle */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  font-weight: bold;
  color: #2d3e35;
}
.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; border-radius: 26px; transition: .4s;
}
.slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px;
  background-color: white; border-radius: 50%; transition: .4s;
}
input:checked + .slider { background-color: #6abf69; }
input:checked + .slider:before { transform: translateX(24px); }

/* Pricing values */
.pricing-values {
  margin: 15px 0;
  text-align: center;
}
.pricing-values .session-price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #2d3e35;
  margin-bottom: 5px;
}
.pricing-values .monthly-price {
  font-size: 1rem;
  color: #4a6d5d;
}

/* Buttons */
.btn-group { display:flex; gap:10px; justify-content:center; margin-top:12px; }
.select-plan { background:#6abf69; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; }

/* Reveal (scroll) */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }


/* Lightbox reuse (already exists in gallery) */



/* RESPONSIVE */
@media(max-width:768px){
  .classes-container, .testimonial-container, .instructor-profile { flex-direction:column; align-items:center; }
  .hero-content h1 { font-size:2.2rem; }
}
@media(max-width:480px){
  #header nav ul { flex-direction:column; gap:10px; }
  .hero-content h1 { font-size:1.8rem; }
  .class-card, .testimonial-card { width:100%; }
}