/* ============================================================
   AL MAHDY CHEMISTRY — PREMIUM CSS
   ============================================================ */

/* --------- RESET & BASE --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #2563EB;
  --cyan: #06B6D4;
  --green: #10B981;
  --violet: #8B5CF6;
  --amber: #F59E0B;
  --orange: #F97316;
  --red: #EF4444;
  --watermelon: #FF6B8B;
  --bg: #020508;
  --card: rgba(255, 255, 255, 0.55);
  --text: #0F172A;
  --text-s: #475569;
  --border: rgba(148, 163, 184, 0.15);
  --glass: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.6);
  --shadow: 0 8px 32px rgba(37, 99, 235, 0.06);
  --shadow-lg: 0 24px 64px rgba(37, 99, 235, 0.12);
  --radius-card: 24px;
  --radius-btn: 14px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Grad helper sets */
  --grad-blue: linear-gradient(135deg, var(--blue), var(--cyan));
  --grad-green: linear-gradient(135deg, var(--green), var(--cyan));
  --grad-violet: linear-gradient(135deg, var(--violet), var(--watermelon));
  --grad-orange: linear-gradient(135deg, var(--orange), var(--amber));
  --grad-red: linear-gradient(135deg, var(--red), var(--watermelon));
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: #020508;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* --------- CANVAS --------- */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* --------- PRELOADER --------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--text);
  z-index: 9999999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader-atom {
  position: relative;
  width: 80px;
  height: 80px;
}

.nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 20px var(--cyan);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(6, 182, 212, 0.4);
  border-radius: 50%;
}

.orbit-1 {
  width: 50px;
  height: 30px;
  animation: spin 1.5s linear infinite;
}

.orbit-2 {
  width: 70px;
  height: 35px;
  animation: spin 2s linear infinite reverse;
  transform: translate(-50%, -50%) rotate(60deg);
}

.orbit-3 {
  width: 80px;
  height: 28px;
  animation: spin 2.5s linear infinite;
  transform: translate(-50%, -50%) rotate(-60deg);
}

.electron {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

@keyframes spin {
  from {
    transform: translate(-50%, -50%) rotate(var(--start, 0deg));
  }

  to {
    transform: translate(-50%, -50%) rotate(calc(var(--start, 0deg) + 360deg));
  }
}

.orbit-1 {
  --start: 0deg;
}

.orbit-2 {
  --start: 60deg;
}

.orbit-3 {
  --start: -60deg;
}

.preloader-text {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 2s linear infinite;
  background-size: 200% auto;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

/* --------- CONTAINER --------- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------- UTILITY --------- */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 25%, var(--violet) 50%, var(--watermelon) 75%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-text {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-s);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --------- BUTTONS --------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: var(--radius-btn);
  border: none;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.35);
  z-index: 1;
}

.btn-primary .btn-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--violet));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(8px);
}

.btn-primary:hover .btn-glow {
  opacity: 0.7;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.play-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: var(--transition);
}

.btn-secondary:hover .play-circle {
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.btn-ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-s);
  padding: 10px 16px;
  border-radius: 10px;
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.06);
}

.btn-outline-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
}

.btn-outline-large:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.35);
}

/* Magnetic Hover Effect */
.magnetic-btn {
  transition: transform 0.2s ease;
}

/* --------- NAVBAR --------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 1000;
  transition: background 0.4s ease, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 2px 32px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-container {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 48px;
  height: 48px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-s);
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --------- HERO SECTION --------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: #EEF2FF;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 1;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center, #2563EB 0%, rgba(37, 99, 235, 0.35) 45%, transparent 75%);
  top: -150px;
  left: -120px;
  animation-delay: 0s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center, #06B6D4 0%, rgba(6, 182, 212, 0.35) 45%, transparent 75%);
  top: 60px;
  right: -100px;
  animation-delay: 2s;
}

.blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle at center, #FF6B8B 0%, rgba(255, 107, 139, 0.35) 45%, transparent 75%);
  bottom: -100px;
  left: 15%;
  animation-delay: 4s;
}

.blob-4 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at center, #10B981 0%, rgba(16, 185, 129, 0.3) 45%, transparent 75%);
  bottom: 20px;
  right: 10%;
  animation-delay: 1s;
}

.blob-5 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle at center, #F97316 0%, rgba(249, 115, 22, 0.3) 45%, transparent 75%);
  top: -80px;
  left: 38%;
  animation-delay: 3s;
  filter: blur(70px);
  animation: blobFloat 10s ease-in-out infinite;
}

@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(25px, -25px) scale(1.05);
  }

  66% {
    transform: translate(-15px, 20px) scale(0.95);
  }
}

.hex-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563EB' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-s);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-item span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--blue);
}

.stat-item small {
  font-size: 0.78rem;
  color: var(--text-s);
  font-weight: 500;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-frame {
  position: relative;
  width: 380px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.teacher-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(255, 107, 139, 0.28) 0%, rgba(139, 92, 246, 0.22) 30%, rgba(6, 182, 212, 0.18) 60%, transparent 80%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

.teacher-avatar {
  position: relative;
  z-index: 2;
  width: 340px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 32px 80px rgba(37, 99, 235, 0.18), 0 0 40px rgba(6, 182, 212, 0.08);
  padding: 24px;
  overflow: hidden;
}

.teacher-svg {
  width: 100%;
  height: auto;
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  z-index: 10;
  animation: floatCard 4s ease-in-out infinite;
}

.fc-icon {
  font-size: 1.4rem;
}

.fc-1 {
  top: 10%;
  left: -15%;
  animation-delay: 0s;
  border: 2.5px solid var(--cyan);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.25);
}

.fc-2 {
  top: 55%;
  left: -20%;
  animation-delay: 1.5s;
  border: 2.5px solid var(--green);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.25);
}

.fc-3 {
  top: 5%;
  right: -18%;
  animation-delay: 1s;
  border: 2.5px solid var(--violet);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.25);
}

.fc-4 {
  top: 70%;
  right: -15%;
  animation-delay: 2.5s;
  border: 2.5px solid var(--orange);
  box-shadow: 0 8px 32px rgba(249, 115, 22, 0.25);
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Molecule SVGs */
.molecule-svg {
  position: absolute;
  z-index: 5;
  opacity: 0.85;
}

.mol-1 {
  width: 80px;
  bottom: 15%;
  left: -8%;
  animation: moleculeFloat 6s ease-in-out infinite;
}

.mol-2 {
  width: 60px;
  top: -5%;
  right: 5%;
  animation: moleculeFloat 5s ease-in-out infinite reverse;
}

@keyframes moleculeFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(15deg);
  }
}

/* Atom Widget */
.atom-widget {
  position: absolute;
  bottom: -5%;
  right: -10%;
  width: 90px;
  height: 90px;
  z-index: 6;
}

.atom-nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.6);
}

.atom-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  border-radius: 50%;
}

.ao-1 {
  width: 50px;
  height: 24px;
  transform: translate(-50%, -50%);
  animation: atomSpin1 2s linear infinite;
}

.ao-2 {
  width: 60px;
  height: 28px;
  transform: translate(-50%, -50%) rotate(60deg);
  animation: atomSpin2 2.5s linear infinite reverse;
}

.ao-3 {
  width: 80px;
  height: 22px;
  transform: translate(-50%, -50%) rotate(-60deg);
  animation: atomSpin3 3s linear infinite;
}

.atom-e {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

@keyframes atomSpin1 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes atomSpin2 {
  from {
    transform: translate(-50%, -50%) rotate(60deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(420deg);
  }
}

@keyframes atomSpin3 {
  from {
    transform: translate(-50%, -50%) rotate(-60deg);
  }

  to {
    transform: translate(-50%, -50%) rotate(300deg);
  }
}

/* Periodic Element Cards */
.element-card {
  position: absolute;
  width: 64px;
  background: white;
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 8;
  animation: elemFloat 5s ease-in-out infinite;
  border: 2px solid transparent;
}

.el-h {
  top: 30%;
  left: -12%;
  animation-delay: 0.5s;
  border-color: var(--blue);
}

.el-c {
  bottom: 30%;
  right: -8%;
  animation-delay: 1.8s;
  border-color: var(--violet);
}

.el-o {
  top: 75%;
  left: -5%;
  animation-delay: 3s;
  border-color: var(--red);
}

.el-num {
  font-size: 0.55rem;
  color: var(--text-s);
  font-weight: 500;
}

.el-sym {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
}

.el-name {
  font-size: 0.48rem;
  color: var(--text-s);
  font-weight: 500;
}

@keyframes elemFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-s);
  z-index: 5;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-s);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(16px);
    opacity: 0;
  }
}

/* --------- STATS SECTION --------- */
.stats-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05), transparent 60%), #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  padding: 36px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.08), 0 0 30px rgba(6, 182, 212, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(255, 255, 255, 0.75);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--c, #2563EB), var(--c2, #06B6D4));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--c, #2563EB) 20%, transparent);
}

.stat-content {
  flex: 1;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat-number span:last-child {
  font-size: 1.5rem;
  color: var(--blue);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-s);
  font-weight: 600;
  margin-top: 4px;
}

.stat-bg-num {
  position: absolute;
  right: 16px;
  bottom: 8px;
  font-size: 4.5rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* --------- WHY SECTION --------- */
.why-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08), transparent 45%), radial-gradient(circle at 90% 80%, rgba(255, 107, 139, 0.08), transparent 45%), #F8FAFC;
  overflow: hidden;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  position: relative;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: var(--transition);
  cursor: default;
}

.why-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent, var(--blue));
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06), 0 0 40px color-mix(in srgb, var(--accent, var(--blue)) 20%, transparent);
}

.why-card:hover .why-card-glow {
  opacity: 1;
}

.why-card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--blue)) 10%, transparent), color-mix(in srgb, var(--accent2, var(--cyan)) 10%, transparent));
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--blue)) 15%, white), color-mix(in srgb, var(--accent2, var(--cyan)) 10%, white));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent, var(--blue));
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, var(--accent, var(--blue)), var(--accent2, var(--cyan)));
  color: white;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent, var(--blue)) 25%, transparent);
}

.why-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.why-card p {
  font-size: 0.92rem;
  color: var(--text-s);
  line-height: 1.7;
}

/* --------- SUBJECTS SECTION --------- */
.subjects-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08), transparent 45%), radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08), transparent 45%), #FFFFFF;
  overflow: hidden;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.subject-card {
  position: relative;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
  overflow: hidden;
  cursor: default;
}

.subject-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--blue)) 15%, transparent), transparent);
  transition: var(--transition);
}

.subject-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px color-mix(in srgb, var(--c, var(--blue)) 12%, transparent), 0 0 30px color-mix(in srgb, var(--c, var(--blue)) 15%, transparent);
  border-color: var(--c, var(--blue));
  background: rgba(255, 255, 255, 0.6);
}

.subject-card:hover::before {
  transform: scale(1.6);
}

.subj-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.subject-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.subject-card p {
  font-size: 0.88rem;
  color: var(--text-s);
  line-height: 1.6;
  margin-bottom: 18px;
}

.subj-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--c, var(--blue)), var(--c2, var(--cyan)));
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--c, var(--blue)) 30%, transparent);
}

/* --------- COURSES SECTION --------- */
.courses-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.08), transparent 45%), radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.08), transparent 45%), #F8FAFC;
  overflow: hidden;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.course-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: var(--transition);
  position: relative;
}

.course-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(37, 99, 235, 0.12), 0 0 30px rgba(6, 182, 212, 0.1);
  border-color: rgba(37, 99, 235, 0.4);
}

.course-image {
  height: 200px;
  background: var(--bg, linear-gradient(135deg, var(--blue), var(--cyan)));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.course-img-icon {
  font-size: 4rem;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.course-badge-overlay {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 100px;
  z-index: 3;
}

.course-badge-overlay.new {
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.course-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px, 30px 30px;
}

.course-body {
  padding: 24px;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.course-grade {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}

.course-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
}

.stars {
  color: var(--amber);
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.88rem;
  color: var(--text-s);
  line-height: 1.6;
  margin-bottom: 16px;
}

.course-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.course-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-s);
  font-weight: 500;
}

.course-stats svg {
  color: var(--blue);
}

.btn-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--btn-c, var(--blue)), var(--cyan));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 12px;
  transition: var(--transition);
  width: 100%;
}

.btn-course:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  opacity: 0.95;
}

.courses-cta {
  text-align: center;
}

/* --------- TEACHER SECTION --------- */
.teacher-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.06), transparent 45%), radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.06), transparent 45%), #FFFFFF;
  overflow: hidden;
}

.teacher-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(139, 92, 246, 0.04));
  pointer-events: none;
}

.teacher-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

/* ── Teacher photo wrap: clean floating card ── */
.teacher-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Remove the old blurry glow bg entirely */
.teacher-photo-bg {
  display: none !important;
}

/* Outer card shell */
.teacher-photo {
  position: relative;
  width: 340px;
  max-width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
  border-radius: 28px;
  box-shadow:
    0 4px 6px rgba(0,0,0,.04),
    0 12px 28px rgba(37, 99, 235, .10),
    0 32px 64px rgba(37, 99, 235, .08);
  border: 1.5px solid rgba(37, 99, 235, .10);
  overflow: visible;
  z-index: 2;
  transition: transform 0.45s cubic-bezier(.16,1,.3,1), box-shadow 0.45s cubic-bezier(.16,1,.3,1);
  animation: teacherCardFloat 6s ease-in-out infinite;
}

.teacher-photo:hover {
  transform: translateY(-8px);
  box-shadow:
    0 8px 12px rgba(0,0,0,.05),
    0 20px 40px rgba(37, 99, 235, .14),
    0 48px 80px rgba(37, 99, 235, .12);
}

@keyframes teacherCardFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

/* The actual <img> inside .teacher-photo */
.teacher-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
  object-fit: cover;
  object-position: top center;
}

/* Decorative accent ring behind the card */
.teacher-photo-wrap::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 38px;
  background: linear-gradient(135deg,
    rgba(37, 99, 235, .12) 0%,
    rgba(6, 182, 212, .10) 50%,
    rgba(139, 92, 246, .08) 100%);
  z-index: 0;
  pointer-events: none;
  filter: blur(2px);
}

/* Decorative dots accent */
.teacher-photo-wrap::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(37,99,235,.18) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  z-index: 0;
  pointer-events: none;
}

/* Cert badge — bottom-right of the card */
.teacher-cert-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10B981 0%, #06B6D4 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .40), 0 2px 6px rgba(0,0,0,.12);
  z-index: 5;
  border: 2px solid rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  letter-spacing: .02em;
}

.teacher-right .section-badge {
  margin-bottom: 12px;
}

.teacher-right .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.teacher-bio {
  font-size: 1.05rem;
  color: var(--text-s);
  line-height: 1.8;
  margin-bottom: 32px;
}

.teacher-bio strong {
  color: var(--text);
}

.teacher-achievements {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ach-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--c, var(--blue)) 12%, white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c, var(--blue));
  flex-shrink: 0;
}

.achievement-item div:last-child {
  display: flex;
  flex-direction: column;
}

.achievement-item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.achievement-item span {
  font-size: 0.8rem;
  color: var(--text-s);
}

/* Timeline */
.teacher-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}

.tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: white;
  flex-shrink: 0;
  transition: var(--transition);
}

.timeline-item.active .tl-dot,
.timeline-item:hover .tl-dot {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.tl-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tl-content p {
  font-size: 0.82rem;
  color: var(--text-s);
  line-height: 1.5;
}

/* --------- FEATURES SECTION --------- */
.features-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  background: transparent;
  overflow: hidden;
}

.features-bg {
  display: none;
}

.features-section .section-header {
  position: relative;
  z-index: 1;
}

.features-section .section-badge {
  background: rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.4);
  color: #93C5FD;
}

.features-section .section-title {
  color: white;
}

.features-section .section-sub {
  color: #94A3B8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: color-mix(in srgb, var(--c, var(--blue)) 50%, transparent);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px color-mix(in srgb, var(--c, var(--blue)) 30%, transparent);
}

.feat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c, var(--blue)) 30%, transparent), color-mix(in srgb, var(--c, var(--blue)) 15%, transparent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c, var(--blue));
  margin: 0 auto 16px;
  transition: var(--transition);
}

.feature-card:hover .feat-icon {
  background: linear-gradient(135deg, var(--c, var(--blue)), color-mix(in srgb, var(--c, var(--blue)) 70%, var(--cyan)));
  color: white;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.6;
}

/* --------- TESTIMONIALS SECTION --------- */
.testimonials-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 107, 139, 0.08), transparent 45%), radial-gradient(circle at 30% 80%, rgba(139, 92, 246, 0.08), transparent 45%), #F8FAFC;
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  min-width: calc(33.333% - 16px);
  flex-shrink: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--violet), var(--watermelon));
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(139, 92, 246, 0.1), 0 0 30px rgba(255, 107, 139, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.testi-quote {
  font-size: 4rem;
  color: var(--blue);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: -8px;
}

.testi-text {
  font-size: 0.95rem;
  color: var(--text-s);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c, var(--blue)), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testi-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.testi-info span {
  font-size: 0.8rem;
  color: var(--text-s);
}

.testi-stars {
  color: var(--amber);
  font-size: 0.9rem;
  margin-top: 2px;
}

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.carousel-btn:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--blue);
  width: 24px;
  border-radius: 4px;
}

/* --------- FAQ SECTION --------- */
.faq-section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
  background: radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.08), transparent 45%), radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08), transparent 45%), #FFFFFF;
  overflow: hidden;
}

.faq-container .section-header {
  text-align: center;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.faq-icon {
  color: var(--blue);
  flex-shrink: 0;
}

.faq-arrow {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-s);
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] {
  color: var(--blue);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer.open {
  grid-template-rows: 1fr;
}

.faq-answer p {
  overflow: hidden;
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: var(--text-s);
  line-height: 1.7;
}

/* --------- CTA BAND --------- */
.cta-band {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 50%, var(--violet) 100%);
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}

.cta-b1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, white, transparent);
  top: -200px;
  left: -100px;
}

.cta-b2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan), transparent);
  bottom: -100px;
  right: -50px;
}

.cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.cta-left h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.cta-left p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: var(--blue);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.btn-cta-outline:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* --------- FOOTER --------- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--text);
  color: white;
}

.footer-top {
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
}

.footer-brand .logo-name {
  color: white;
}

.footer-logo-link .logo-sub {
  color: var(--cyan);
}

.footer-tagline {
  font-size: 0.88rem;
  color: #94A3B8;
  line-height: 1.7;
  margin: 16px 0 24px;
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--sc, var(--blue));
  border-color: var(--sc, var(--blue));
  color: white;
  transform: translateY(-3px);
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: #94A3B8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
  display: inline-block;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #94A3B8;
}

.footer-contact-list svg {
  color: var(--cyan);
  flex-shrink: 0;
}

.newsletter p {
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 12px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: white;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input::placeholder {
  color: #64748B;
}

.newsletter-form input:focus {
  border-color: var(--blue);
  background: rgba(37, 99, 235, 0.1);
}

.newsletter-form button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom-inner p {
  font-size: 0.82rem;
  color: #64748B;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: #64748B;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--cyan);
}

/* --------- BACK TO TOP --------- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(37, 99, 235, 0.5);
}

/* --------- AOS ANIMATIONS --------- */
[data-aos] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos="fade-up"] {
  transform: translateY(40px);
}

[data-aos="fade-right"] {
  transform: translateX(-40px);
}

[data-aos="fade-left"] {
  transform: translateX(40px);
}

[data-aos="zoom-in"] {
  transform: scale(0.85);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

/* --------- RESPONSIVE --------- */
@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 2;
  }

  .hero-visual {
    order: 1;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .teacher-left {
    display: flex;
    justify-content: center;
  }

  .teacher-right .section-title {
    text-align: center;
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-left h2 {
    font-size: 1.8rem;
  }

  .float-card {
    display: none;
  }

  .el-h,
  .el-c,
  .el-o,
  .atom-widget {
    display: none;
  }

  .mol-1,
  .mol-2 {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(248, 250, 252, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    border-radius: 10px;
  }

  .hamburger {
    display: flex;
  }

  .btn-ghost,
  .btn-primary-sm span {
    display: none;
  }

  .btn-primary-sm {
    padding: 10px;
    border-radius: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .courses-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-track {
    flex-direction: column;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .teacher-photo {
    width: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-right {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-white,
  .btn-cta-outline {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================================
   SEO & ACCESSIBILITY UTILITIES
   ============================================================ */

/* Screen-reader only — visible to crawlers, hidden visually */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Core Web Vitals — reduce CLS */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* All images lazy-load by default */
img:not([loading]) {
  loading: lazy;
  /* CSS fallback hint */
}

/* Prevent invisible text during webfont load (avoid FID / LCP penalty) */
@font-face {
  font-display: swap;
}

/* Focus visible for keyboard navigation (Core Web Vitals accessibility) */
:focus-visible {
  outline: 3px solid #FF7A00;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Smooth scroll — improves UX signals */
html {
  scroll-behavior: smooth;
}

/* Prefers reduced motion — accessibility */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print styles — clean indexed content */
@media print {

  .navbar,
  .back-to-top,
  .hero-visual,
  .social-links,
  .newsletter {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  .footer-tagline,
  .hero-title,
  .hero-subtitle {
    color: #000 !important;
  }
}
/* ════════════════════════════════════════════════════════
   ELMAHDY CHEMISTRY — GANG BANNER & DEV CREDIT ADDITIONS
   ════════════════════════════════════════════════════════ */

/* Responsive adjustments for gang banner */
@media (max-width: 768px) {
  .gang-line-2 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .gang-line-3 { font-size: clamp(2.4rem, 11vw, 4rem); }
  .gang-welcome-wrap { min-height: 260px; }
}

@media (max-width: 480px) {
  .gang-line-1 { font-size: 1.3rem; }
  .gang-line-2 { font-size: 2rem; }
  .gang-line-3 { font-size: 2.2rem; }
}

/* Developer glow — footer */
.footer-dev-credit {
  font-size: .78rem;
  opacity: .85;
  margin-top: .3rem;
  text-align: center;
  width: 100%;
}
.dev-name-link { text-decoration: none; }
.dev-name-glow {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(90deg, #06B6D4 0%, #8B5CF6 50%, #06B6D4 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: devGlow 3s ease-in-out infinite, devShine 4s linear infinite;
}
@keyframes devGlow {
  0%,100% { filter: drop-shadow(0 0 4px rgba(6,182,212,.3)); }
  50%      { filter: drop-shadow(0 0 14px rgba(139,92,246,.65)); }
}
@keyframes devShine {
  to { background-position: 200% center; }
}

/* ════════════════════════════════════════════════════════
   OFFICIAL SOCIAL LINKS WITH BRAND COLORS & GLOW
   ════════════════════════════════════════════════════════ */
.social-link {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-link.social-fb {
  background: rgba(24, 119, 242, 0.12);
  border-color: rgba(24, 119, 242, 0.35);
  color: #1877F2;
}
.social-link.social-fb:hover {
  background: #1877F2;
  border-color: #1877F2;
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.55);
}

.social-link.social-yt {
  background: rgba(255, 0, 0, 0.12);
  border-color: rgba(255, 0, 0, 0.35);
  color: #FF0000;
}
.social-link.social-yt:hover {
  background: #FF0000;
  border-color: #FF0000;
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(255, 0, 0, 0.55);
}

.social-link.social-tt {
  background: rgba(0, 0, 0, 0.45);
  border-color: rgba(6, 182, 212, 0.4);
  color: #00F2FE;
}
.social-link.social-tt:hover {
  background: #010101;
  border-color: #FE2C55;
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.45), 0 0 15px rgba(0, 242, 254, 0.4);
}

.social-link.social-wa {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.38);
  color: #25D366;
}
.social-link.social-wa:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* ════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON (FIXED ON LEFT)
   ════════════════════════════════════════════════════════ */
.floating-whatsapp-widget {
  position: fixed !important;
  bottom: 28px !important;
  left: 24px !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  font-family: inherit !important;
}

.floating-whatsapp-btn {
  position: relative !important;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  outline: none !important;
  text-decoration: none !important;
}

.floating-whatsapp-btn svg {
  width: 32px !important;
  height: 32px !important;
  fill: #ffffff !important;
  transition: transform 0.3s ease !important;
}

.floating-whatsapp-pulse {
  position: absolute !important;
  inset: -6px !important;
  border-radius: 50% !important;
  background: rgba(37, 211, 102, 0.45) !important;
  animation: waPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.floating-whatsapp-pulse-2 {
  position: absolute !important;
  inset: -14px !important;
  border-radius: 50% !important;
  background: rgba(37, 211, 102, 0.22) !important;
  animation: waPulseRing 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite 0.7s !important;
  pointer-events: none !important;
  z-index: -2 !important;
}

@keyframes waPulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.floating-whatsapp-btn:hover {
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 14px 35px rgba(37, 211, 102, 0.75), 0 0 25px rgba(37, 211, 102, 0.5) !important;
  background: linear-gradient(135deg, #28e16f 0%, #10a392 100%) !important;
}

.floating-whatsapp-btn:hover svg {
  transform: scale(1.12) rotate(-5deg) !important;
}

.floating-whatsapp-tooltip {
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  color: #ffffff !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  border: 1.5px solid rgba(37, 211, 102, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 15px rgba(37, 211, 102, 0.2) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(10px) !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  direction: rtl !important;
  font-family: 'Tajawal', 'Inter', sans-serif !important;
}

.floating-whatsapp-widget:hover .floating-whatsapp-tooltip {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
}

@media (max-width: 768px) {
  .floating-whatsapp-widget {
    bottom: 20px !important;
    left: 16px !important;
  }
  .floating-whatsapp-btn {
    width: 54px !important;
    height: 54px !important;
  }
  .floating-whatsapp-btn svg {
    width: 28px !important;
    height: 28px !important;
  }
  .floating-whatsapp-tooltip {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   PWA INSTALL BANNER / PROMPT
   ════════════════════════════════════════════════════════ */

/* ── Overlay wrapper ── */
.pwa-install-banner-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto;
  z-index: 100005;
  width: 440px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ── Visible state (added by JS) ── */
.pwa-install-banner-wrap.pwa-show {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto !important;
}

/* ── Card ── */
.pwa-install-card {
  position: relative;
  width: 100%;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(6, 182, 212, 0.35);
  border-radius: 22px;
  padding: 18px 20px 16px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.15);
  color: #ffffff;
  overflow: hidden;
}

.pwa-install-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #06B6D4, #2563EB, #8B5CF6, #06B6D4);
  background-size: 200% auto;
  animation: pwaBarGlow 3s linear infinite;
}

@keyframes pwaBarGlow {
  to { background-position: 200% center; }
}

/* Light mode card */
html.light-mode .pwa-install-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18), 0 2px 12px rgba(37, 99, 235, 0.1);
  color: #0f172a;
}

/* ── Close button ── */
.pwa-close-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
}

.pwa-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

html.light-mode .pwa-close-btn {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(100, 116, 139, 0.08);
  color: #64748b;
}

/* ── Header row: icon + text ── */
.pwa-install-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pwa-install-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(6, 182, 212, 0.3);
  border: 2px solid rgba(6, 182, 212, 0.4);
  background: #020508;
}

.pwa-install-info {
  flex: 1;
  min-width: 0;
  padding-left: 24px;
}

.pwa-install-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  font-weight: 800;
  font-size: 0.96rem;
  color: #f1f5f9;
  line-height: 1.3;
}

html.light-mode .pwa-install-title {
  color: #0f172a;
}

/* Badge */
.pwa-install-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(6,182,212,0.25), rgba(37,99,235,0.25));
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.35);
  white-space: nowrap;
}

html.light-mode .pwa-install-badge {
  color: #2563eb;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(6,182,212,0.12));
  border-color: rgba(37, 99, 235, 0.2);
}

.pwa-install-desc {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0;
}

html.light-mode .pwa-install-desc {
  color: #475569;
}

/* ── Action buttons ── */
.pwa-install-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Install button */
.pwa-btn-install {
  flex: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #06B6D4 0%, #2563EB 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.38);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  white-space: nowrap;
}

.pwa-btn-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5);
  background: linear-gradient(135deg, #22D3EE 0%, #3B82F6 100%);
}

.pwa-btn-install:active {
  transform: translateY(0);
}

/* Dismiss button */
.pwa-btn-dismiss {
  flex: 0.8;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-align: center;
}

.pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

html.light-mode .pwa-btn-dismiss {
  border-color: rgba(100, 116, 139, 0.25);
  background: transparent;
  color: #64748b;
}

html.light-mode .pwa-btn-dismiss:hover {
  background: rgba(100, 116, 139, 0.08);
  color: #1e293b;
}

/* ── Responsive (mobile & tablet) ── */
@media (max-width: 600px) {
  .pwa-install-banner-wrap {
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }

  .pwa-install-card {
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .pwa-install-title {
    font-size: 0.88rem;
  }

  .pwa-install-desc {
    font-size: 0.75rem;
  }

  .pwa-btn-install {
    font-size: 0.82rem;
    padding: 10px 12px;
  }

  .pwa-btn-dismiss {
    font-size: 0.78rem;
    padding: 10px 10px;
  }
}
