:root {
  --bg: #0a0f1c;
  --bg-alt: #0e1430;
  --bg-soft: #111a33;
  --card: #10182f;
  --accent: #ff9800;
  --text: #eaeaf0;
  --muted: #9aa4bf;
}

/* RESET */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family:'Inter','Segoe UI',sans-serif;
  background: radial-gradient(circle at top,#111a33,var(--bg));
  color: var(--text);
  line-height:1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width:90%; max-width:1100px; margin:auto; position: relative; z-index: 2; }

/* ---------- NAVBAR ---------- */
.navbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 5%;
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(10,15,28,0.85);
  backdrop-filter: blur(12px);
}
.navbar-logo { font-weight:700; font-size:1.5rem; color:var(--accent); }
.navbar-links { display:flex; gap:20px; align-items:center; }
.navbar-links a.btn-primary { margin-left: 15px; }
.navbar-toggle { display:none; flex-direction:column; cursor:pointer; gap:5px; }
.navbar-toggle span { width:25px; height:3px; background:var(--accent); border-radius:2px; }

/* Mobile navbar toggle */
.navbar-toggle {
  display: none; /* hide by default */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.navbar-toggle span {
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Mobile adjustments */
@media(max-width:1024px) {
  .navbar-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .navbar-links.active {
    transform: translateX(0);
  }

  .navbar-toggle {
    display: flex;
  }
}

/* Full-screen mobile menu */
@media(max-width:1024px) {
  .navbar-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(10px);
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .navbar-links.active {
    transform: translateX(0);
  }
  

  .navbar-toggle {
    display: flex;
    z-index: 1001; /* above menu */
  }

  .navbar-links a {
    font-size: 1.5rem;
  }
}

/* Hamburger toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001; /* above menu */
  width: 30px;
}
.navbar-toggle span {
  display: block;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* When menu is active, transform spans into X */
.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}
.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile adjustments */
@media(max-width:1024px) {
  .navbar-links {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .navbar-links.active {
    transform: translateX(0);
  }

  .navbar-toggle {
    display: flex;
  }
}
/* Mobile menu links animation */
@media(max-width:1024px) {
  .navbar-links a {
    opacity: 0;
    transform: translateY(-20px);
    transition: transform 0.4s ease, opacity 0.4s ease;
  }

  .navbar-links.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger effect using nth-child */
  .navbar-links.active a:nth-child(1) { transition-delay: 0.05s; }
  .navbar-links.active a:nth-child(2) { transition-delay: 0.1s; }
  .navbar-links.active a:nth-child(3) { transition-delay: 0.15s; }
  .navbar-links.active a:nth-child(4) { transition-delay: 0.2s; }
  .navbar-links.active a:nth-child(5) { transition-delay: 0.25s; }
  .navbar-links.active a:nth-child(6) { transition-delay: 0.3s; }
}
/* ---------- SECTIONS ---------- */
.section { position: relative; padding: 7rem 0; overflow: hidden; }
.section.dark { background: var(--bg); }
.section.soft { background: var(--bg-soft); }
.section.alt { background: var(--bg-alt); }

/* ---------- HERO (PARALLAX IMAGE) ---------- */
/* ---------- HERO (RESPONSIVE PARALLAX) ---------- */
.hero.hero-image {
  min-height: 100vh; /* full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Hero background layer */
.hero.hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/images/cbt/teacher_dashboard.png");
  background-size: cover;           /* maintain aspect ratio */
  background-position: center center;
  background-attachment: fixed;     /* parallax effect */
  z-index: 0;
  opacity: 0.25;
}

/* Overlay (optional) */
.hero.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10,15,28,0.5); /* dark overlay to improve text contrast */
  z-index: 1;
}

/* Hero content */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Mobile fallback */
@media(max-width:1024px){
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  
  .hero.hero-image::before {
    background-attachment: scroll; /* disable fixed on mobile */
    background-size: cover;         /* fill mobile viewport without distortion */
  }
}

/* ---------- CARD GRID ---------- */
.card {
  background: linear-gradient(180deg, var(--card), #0d1328);
  border-radius: 14px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateY(40px);
  transition: all .6s ease;
  position: relative;
  z-index: 2;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- BUTTONS ---------- */
.btn {
  display:inline-block;
  padding:14px 30px;
  border-radius:8px;
  font-weight:600;
  min-height:44px;
  font-size:1rem;
  transition:transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background:linear-gradient(135deg,var(--accent),#ffc107); color:#000; }
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 10px 25px rgba(255,152,0,0.35); }
.btn-outline { border:1px solid var(--accent); }
.btn-outline:hover { transform:translateY(-2px); box-shadow:0 10px 25px rgba(255,152,0,0.35); }

/* ---------- FADE ANIMATION ---------- */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}

/* ---------- VIDEO DEMO ---------- */
.video-demo {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.video-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.youtube-lazy iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,15,28,0.65), rgba(10,15,28,0.85));
  z-index: 1;
}
.video-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text);
}
.video-content h2 { font-size: 2.6rem; margin-bottom: 1rem; }
.video-content p { max-width: 650px; margin: auto; color: var(--muted); }

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-weight: 600;
  z-index: 2;
}

/* ---------- MOBILE ---------- */
@media(max-width:1024px){
  .hero-grid { grid-template-columns:1fr; text-align:center; }
  .card-grid { grid-template-columns:1fr; }
  .section.parallax::before { background-attachment: scroll; }
}
@media(max-width:600px){
  .hero h1 { font-size:2rem; }
  .hero p { font-size:1rem; }
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 2rem 0;
  text-align: center;
  background: var(--bg-alt);
}
/* Carousel container */
.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  justify-content: center; /* center images */
}

/* Hide scrollbar nicely */
.carousel::-webkit-scrollbar {
  height: 6px;
}
.carousel::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

/* ---------- SCREENSHOT SHOWCASE (ONE PER ROW) ---------- */
.carousel.screenshots {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  overflow: visible;
}

.carousel.screenshots img {
  width: 100%;
  max-width: 900px;      /* controls size on desktop */
  margin: 0 auto;       /* center */
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel.screenshots img:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
}

/* Mobile */
@media (max-width: 768px) {
  .carousel.screenshots img {
    max-width: 100%;
  }
}
/* Tablet/mobile adjustments */
@media(max-width:1024px) {
  .carousel img {
    max-width: 90%;      /* fit nicely in smaller screens */
    border-radius: 8px;
  }
}

/* ---------- LIGHTBOX ---------- */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,15,28,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

#lightbox img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item strong {
  display: block;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

/* FORM */
.contact-form h2 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d1328;
  color: var(--text);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* MOBILE */
@media(max-width:1024px){
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* ---------- MOBILE CTA ---------- */
.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: none;
  gap: 10px;
  padding: 12px;
  background: rgba(10,15,28,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.08);
  z-index: 999;
}
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
}
.cta-primary { background: linear-gradient(135deg,var(--accent),#ffc107); color:#000; }
.cta-whatsapp { background:#25D366; color:#000; }

/* SUCCESS MESSAGE */
.form-success {
  background: rgba(0, 200, 120, 0.15);
  border: 1px solid rgba(0, 200, 120, 0.4);
  color: #7dffcb;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* SELECT FIELD */
.form-group select {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0d1328;
  color: var(--text);
}

/* WHATSAPP BUTTON */
.whatsapp-btn {
  display: block;
  margin-top: 1rem;
  text-align: center;
  border: 1px solid #25D366;
  color: #25D366;
}

.whatsapp-btn:hover {
  background: #25D366;
  color: #000;
}