/* ============================================================
   PURIX ACADEMY - MOBILE-FIRST ADAPTIVE GLASSMORPHISM
   ============================================================ */

:root {
  --bg-deep: #050a18;
  --bg-glass: rgba(14, 25, 54, 0.65);
  --bg-glass-card: rgba(14, 25, 54, 0.85);
  --neon-cyan: #00d4ff;
  --neon-purple: #8a2be2;
  --neon-blue: #0066ff;
  --border-glass: rgba(0, 212, 255, 0.22);
  --border-glow: rgba(0, 212, 255, 0.65);
  --border-purple: rgba(138, 43, 226, 0.45);
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #cbd5e1;
  --blur-filter: blur(16px);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(0, 102, 255, 0.18) 0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-white);
  line-height: 1.5;
  padding-bottom: 90px;
  overflow-x: hidden;
}

section {
  scroll-margin-top: 75px;
  margin-bottom: 30px;
}

/* ================= TOP NAVBAR ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 10, 24, 0.88);
  backdrop-filter: var(--blur-filter);
  -webkit-backdrop-filter: var(--blur-filter);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-corner-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--neon-cyan);
}

.brand-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-sub {
  color: var(--neon-cyan);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: block;
  line-height: 1;
}

.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--neon-cyan);
}

.nav-actions-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-action {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  width: 100%;
  height: 2.5px;
  background: var(--neon-cyan);
  border-radius: 4px;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 310px;
  height: 100vh;
  background: rgba(5, 11, 28, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-glass);
  z-index: 1050;
  padding: 75px 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-drawer.open {
  right: 0;
}

.drawer-link {
  color: var(--text-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================= HERO SECTION & H1 ================= */
.hero {
  text-align: center;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-large-logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--neon-cyan);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.45);
  margin-bottom: 12px;
}

.hero-tagline-text {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 8px;
}

.hero-main-h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 12px;
  max-width: 600px;
}

.hero-main-h1 span {
  background: linear-gradient(90deg, var(--neon-cyan), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 500px;
  margin: 0 auto 20px;
}

.hero-btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

.btn-glow-primary {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue));
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: none;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  cursor: pointer;
  text-align: center;
}

.btn-glow-secondary {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Feature 4 Tiles Matrix */
.feature-matrix {
  padding: 0 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-tile {
  background: var(--bg-glass);
  backdrop-filter: var(--blur-filter);
  -webkit-backdrop-filter: var(--blur-filter);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tile-svg-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--neon-cyan);
  stroke-width: 2;
}

.tile-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-white);
}

/* ================= CARDS & COURSES ================= */
.badge-glow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 212, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.section-title span {
  color: var(--neon-cyan);
}

.course-hero-banner {
  background: linear-gradient(135deg, rgba(14, 24, 52, 0.9), rgba(6, 11, 25, 0.98));
  border: 1.5px solid var(--neon-cyan);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
  margin-bottom: 18px;
}

.banner-title {
  font-size: 0.72rem;
  color: var(--neon-cyan);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.banner-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin: 4px 0;
}

.banner-price span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.banner-features {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.card-container-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.cyber-card, .district-card {
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur-filter);
  -webkit-backdrop-filter: var(--blur-filter);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.cyber-card.revealed, .district-card.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.badge-batch, .district-badge {
  background: rgba(138, 43, 226, 0.2);
  border: 1px solid var(--border-purple);
  color: #d8b4fe;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
}

.district-badge {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--border-glass);
  color: var(--neon-cyan);
  display: inline-block;
  margin-bottom: 8px;
}

.price-pill {
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-title, .district-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}

.card-desc, .district-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
}

.feature-list {
  list-style: none;
  margin-bottom: 16px;
}

.feature-list li {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.feature-list li::before {
  content: "✦";
  color: var(--neon-cyan);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-card-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* District Area Chips */
.areas-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.area-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.area-chip {
  background: rgba(6, 12, 28, 0.85);
  border: 1px solid var(--border-glass);
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}

/* ================= FAQ SECTION (SEO ACCORDION) ================= */
.faq-container {
  padding: 0 16px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 16px;
}

.faq-question {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  outline: none;
  list-style: none;
  position: relative;
  padding-right: 24px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--neon-cyan);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Comparison Boxes */
.compare-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.comp-box {
  padding: 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
}

.comp-old {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.comp-new {
  background: rgba(0, 212, 255, 0.09);
  border: 1px solid var(--border-glass);
  color: #bae6fd;
}

.comp-heading {
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

/* ================= CONTACT & FORM ================= */
.contact-layout-grid {
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.modal-form-group {
  margin-bottom: 10px;
  text-align: left;
}

.modal-form-group label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.modal-input, .modal-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(6, 12, 28, 0.9);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.modal-input:focus, .modal-select:focus {
  border-color: var(--neon-cyan);
}

.modal-submit-btn {
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  color: #fff;
  font-weight: 800;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}

/* Social Grid */
.social-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 12px 0;
}

.social-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 10px;
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.social-icon-svg {
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
}

.social-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
}

.social-handle {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.direct-reach-box {
  background: rgba(14, 25, 54, 0.8);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 14px;
  padding: 14px;
}

.reach-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--neon-cyan);
  margin-bottom: 4px;
}

.reach-text {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ================= FIXED BOTTOM ACTION BAR ================= */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 16px;
  background: rgba(5, 10, 24, 0.94);
  backdrop-filter: var(--blur-filter);
  -webkit-backdrop-filter: var(--blur-filter);
  border-top: 1px solid rgba(0, 212, 255, 0.25);
  display: flex;
  gap: 10px;
  z-index: 999;
}

.btn-wa-action {
  flex: 1;
  background: rgba(37, 211, 102, 0.15);
  border: 1.5px solid #25D366;
  color: #25D366;
  border-radius: 12px;
  padding: 11px;
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
}

.btn-demo-action {
  flex: 1.3;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  border: none;
  color: #ffffff;
  border-radius: 12px;
  padding: 11px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

/* ================= POPUP MODAL ================= */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 20, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-window {
  background: rgba(14, 25, 54, 0.98);
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  padding: 22px 18px;
  width: 100%;
  max-width: 380px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}

.modal-heading {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.modal-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ================= DESKTOP BREAKPOINTS (768px+) ================= */
@media (min-width: 768px) {
  .desktop-nav-links {
    display: flex;
  }
  .hamburger-btn, .mobile-nav-drawer {
    display: none;
  }
  .hero-main-h1 {
    font-size: 2.6rem;
  }
  .hero-btn-group {
    flex-direction: row;
    max-width: 440px;
  }
  .feature-matrix {
    grid-template-columns: repeat(4, 1fr);
  }
  .card-container-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .compare-container {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .bottom-bar {
    max-width: 440px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 20px;
    bottom: 14px;
  }
}
