/* ==========================================================================
   MOZ ACADEMY — BESPOKE LANDING PAGE STYLES (css/landing.css)
   MASTERCLASS AESTHETIC - PRECISION & STRUCTURE
   ========================================================================== */

/* ---- Immersive Hero Section ---- */
.hero-wrapper {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-deep);
  /* Crisp Laboratory White */
  overflow: hidden;
  padding-top: 50px;
  padding-bottom: 60px;
}

.hero-chem-bg {
  position: absolute;
  color: rgba(197, 168, 104, 0.18); /* Visible but soft prestige gold */
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(197, 168, 104, 0.03));
}

.hero-chem-bg.chem-1 {
  top: 8%;
  right: 2%; /* Pushed to the far right margin */
  animation: floatChem1 30s linear infinite;
}

.hero-chem-bg.chem-2 {
  bottom: 8%;
  left: 2%; /* Pushed to the far left-bottom margin */
  opacity: 0.85;
  animation: floatChem2 35s linear infinite;
}

@keyframes floatChem1 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

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

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

@keyframes floatChem2 {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(30px);
  }

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

.hero-chem-beaker {
  position: absolute;
  top: 22%;
  left: 2%; /* Pushed to the far left margin */
  color: rgba(197, 168, 104, 0.18); /* Matching Warm Prestige Gold */
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(197, 168, 104, 0.03));
  animation: gentleFloat 8s infinite ease-in-out;
}

@keyframes gentleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
  }

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

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

.bubble {
  animation: floatBubble 4s infinite ease-in-out;
  opacity: 0;
  transform-origin: center;
}

.bubble-1 {
  animation-delay: 0.5s;
  animation-duration: 4.5s;
}

.bubble-2 {
  animation-delay: 1.2s;
  animation-duration: 3.8s;
}

.bubble-3 {
  animation-delay: 0s;
  animation-duration: 5.2s;
}

.bubble-4 {
  animation-delay: 2s;
  animation-duration: 4s;
}

.bubble-5 {
  animation-delay: 1.5s;
  animation-duration: 4.8s;
}

@keyframes floatBubble {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  80% {
    opacity: 0.8;
  }

  100% {
    transform: translateY(-50px) scale(1.2);
    opacity: 0;
  }
}

/* Floating Background Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(197, 168, 104, 0.08); /* Semi-transparent warm gold */
  border-radius: 50%;
  animation: floatUp 15s infinite ease-in-out;
  bottom: -20px;
}

.particle.p-1 { width: 12px; height: 12px; left: 8%; animation-delay: 0s; animation-duration: 18s; }
.particle.p-2 { width: 8px; height: 8px; left: 22%; animation-delay: 3s; animation-duration: 22s; }
.particle.p-3 { width: 16px; height: 16px; left: 42%; animation-delay: 1s; animation-duration: 25s; }
.particle.p-4 { width: 6px; height: 6px; left: 58%; animation-delay: 5s; animation-duration: 16s; }
.particle.p-5 { width: 10px; height: 10px; left: 78%; animation-delay: 2s; animation-duration: 20s; }
.particle.p-6 { width: 14px; height: 14px; left: 88%; animation-delay: 7s; animation-duration: 24s; }

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-105vh) scale(1.5); opacity: 0; }
}

/* Subtle Engineering Grid Background */
.hero-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(to right, var(--border-light) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-light) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

/* Clean, crisp academic badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  /* Refined desktop heading scale */
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

/* Restrained gold accent usage for authority */
.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: var(--text-primary);
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  /* Lower position below baseline for a perfect gap */
  width: 100%;
  height: 3px;
  /* Clean, crisp line weight */
  background: var(--accent-gold);
  /* Muted Gold for institutional prestige */
  z-index: 1;
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Structured Bento Box (Right Side) */
.hero-visual {
  position: relative;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-sm);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 8px 32px 0 rgba(14, 22, 48, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(197, 163, 104, 0.4);
  box-shadow: 0 16px 48px 0 rgba(197, 163, 104, 0.08), 0 0 24px rgba(197, 163, 104, 0.04);
}

.bento-card.primary {
  grid-column: 1 / -1;
  background: rgba(14, 22, 48, 0.85);
  /* Deep royal midnight */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(197, 168, 128, 0.2);
  /* Muted gold border */
  color: #ffffff;
  box-shadow: 0 12px 40px rgba(14, 22, 48, 0.2);
}

.bento-card.primary:hover {
  background: rgba(14, 22, 48, 0.95);
  border-color: rgba(197, 168, 128, 0.45);
  box-shadow: 0 16px 48px rgba(14, 22, 48, 0.3);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  /* Refined stat value font size */
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.bento-card.primary .stat-value {
  color: var(--accent-gold);
}

.bento-card:not(.primary) .stat-value {
  color: var(--text-primary);
}

.stat-label {
  font-family: var(--font-heading);
  /* Geometric labels */
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bento-card.primary .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- Syllabus Hub (Bespoke Staggered Layout) ---- */
.syllabus-section {
  padding: 140px 0;
  background-color: #FFFFFF;
  position: relative;
  border-top: 1px solid var(--border-light);
}

.syllabus-timeline {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 60px;
  position: relative;
}

.syllabus-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 260px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--border-light), var(--accent-gold), var(--border-light));
  z-index: 1;
}

.chapter-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.chapter-number-display {
  font-family: var(--font-heading);
  font-size: 5rem;
  /* Refined chapter size */
  font-weight: 800;
  color: rgba(10, 25, 47, 0.03);
  /* Faint Oxford Blue */
  line-height: 0.8;
  letter-spacing: -0.05em;
  position: relative;
}

.chapter-number-display::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -25px;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent-gold);
  z-index: 3;
  transition: all var(--t-fast);
}

.chapter-block:hover .chapter-number-display::before {
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
}

.chapter-number-display span {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.chapter-content-card {
  background: rgba(250, 249, 246, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--r-sm);
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 32px 0 rgba(14, 22, 48, 0.03);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chapter-content-card:hover {
  transform: translateX(8px) translateY(-2px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 40px rgba(197, 163, 104, 0.12), 0 0 20px rgba(197, 163, 104, 0.03);
}

.chapter-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  /* Elegant title size */
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.topic-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 22, 48, 0.06);
  border-radius: var(--r-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  cursor: default;
}

.topic-pill:hover {
  background: #ffffff;
  border-color: rgba(197, 163, 104, 0.4);
  color: var(--accent-gold);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 4px 12px rgba(197, 163, 104, 0.08);
}

/* ---- Premium Breakout Gateway ---- */
.premium-breakout {
  margin: 80px 0;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(14, 22, 48, 0.95) 0%, rgba(27, 38, 79, 0.9) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(197, 168, 128, 0.25);
  /* Muted gold border */
  color: #ffffff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(14, 22, 48, 0.3);
}

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

.breakout-subtitle {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  border-bottom: 2px solid var(--accent-gold);
  padding-bottom: 4px;
}

.breakout-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.premium-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.premium-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-gold);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.feature-text h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-text p {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---- Responsive Overrides ---- */
@media (max-width: 1024px) {
  .hero-wrapper {
    min-height: auto;
    padding: 80px 0 60px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 40px;
  }

  .hero-content {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

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

  .bento-grid {
    margin-top: 20px;
  }

  .chapter-block {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .chapter-number-display {
    font-size: 4rem;
  }

  .chapter-number-display span {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: block;
    margin-bottom: 8px;
  }

  .breakout-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

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

  .bento-card {
    padding: 28px 20px;
  }

  .stat-value {
    font-size: 2.2rem;
  }

  .breakout-title {
    font-size: 1.8rem;
  }

  .premium-breakout {
    padding: 60px 20px;
  }
}

/* Subboard switcher styling */
.sub-tab-btn.active {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-medium) !important;
}

.sub-tab-btn:hover {
  color: var(--text-primary) !important;
}

@media (min-width: 1025px) {
  .contact-form-col {
    margin-top: 154px;
  }
}

/* Ambient backdrop glow blobs */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.ambient-glow-orb.orb-gold {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(197, 163, 104, 0.12) 0%, transparent 70%);
  top: -100px;
  left: 20%;
  animation: driftGold 28s ease-in-out infinite alternate;
}

.ambient-glow-orb.orb-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  bottom: -200px;
  right: 10%;
  animation: driftCyan 36s ease-in-out infinite alternate;
}

.ambient-glow-orb.orb-indigo {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(27, 38, 79, 0.22) 0%, transparent 70%);
  top: 30%;
  right: -100px;
  animation: driftIndigo 32s ease-in-out infinite alternate;
}

@keyframes driftGold {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(60px, 40px) scale(1.1);
  }
}

@keyframes driftCyan {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-80px, -60px) scale(1.15);
  }
}

@keyframes driftIndigo {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(-40px, 80px) scale(1.05);
  }
}

/* Beautiful Urdu Subtitles Styling */
.chapter-title span {
  font-family: var(--font-urdu) !important;
  font-size: 1.15rem !important;
  color: var(--accent-gold) !important;
  font-weight: 600 !important;
  direction: rtl;
  display: inline-block;
  margin-left: 16px;
  vertical-align: middle;
}

/* Button hover micro-interactions */
.btn-primary:hover span:last-child {
  transform: translateX(4px);
}

.btn-primary span:last-child {
  transition: transform var(--t-fast);
}

.btn-secondary:hover span:last-child {
  transform: translateX(4px);
}

.btn-secondary span:last-child {
  transition: transform var(--t-fast);
}