:root {
  /* Colors */
  --primary: #004ac6;
  --secondary: #00687a;
  --background: #f8f9ff;
  --surface: #f8f9ff;
  --on-background: #0b1c30;
  --on-surface: #0b1c30;
  --on-surface-variant: #434655;
  --outline-variant: #c3c6d7;
  --surface-container: #e5eeff;
  --surface-container-low: #eff4ff;
  --surface-container-highest: #d3e4fe;
  --primary-container: #2563eb;
  --on-primary-container: #eeefff;

  /* Fonts */
  --font-sora: 'Sora', sans-serif;
  --font-inter: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-section: 80px;
  --spacing-margin-desktop: 40px;
  --spacing-margin-mobile: 16px;
  --spacing-gutter: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  /* For sticky navbar offset */
}

body.app-body {
  background-color: var(--background);
  color: var(--on-background);
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background-color: var(--primary-container);
  color: var(--on-primary-container);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Typography */
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-green {
  color: #206451;
}

/* Material Icons Setup */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.ml-2 {
  margin-left: var(--spacing-sm);
}

.mr-2 {
  margin-right: var(--spacing-sm);
}

/* Components */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-200 {
  transition-delay: 200ms;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  color: white;
  padding: 8px 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--outline-variant);
  color: var(--primary);
  padding: 8px 24px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.8);
}

.btn-whatsapp {
  display: none;
  /* hidden on mobile */
  padding: 8px 16px;
  border-color: #25D366;
  color: #128c7e;
  background: rgba(37, 211, 102, 0.08);
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #25D366 !important;
  color: white !important;
  border-color: #25D366 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

@media (min-width: 1024px) {
  .btn-whatsapp {
    display: inline-flex;
  }
}

.btn-large {
  padding: 16px 32px;
  border-radius: 12px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid var(--outline-variant);
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 12px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid rgba(11, 28, 48, 0.1);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 var(--spacing-margin-mobile);
  max-width: 80rem;
  /* 1280px */
  margin: 0 auto;
  height: 5rem;
}

@media (min-width: 768px) {
  .navbar-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.navbar-brand {
  font-family: var(--font-sora);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  transform: scale(0.95);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 51px;
  width: auto;
  object-fit: contain;
}

.navbar-brand:active {
  transform: scale(0.9);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: var(--spacing-lg);
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.nav-link {
  color: var(--on-surface-variant);
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: var(--spacing-section);
  overflow: hidden;
}

.shader-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  opacity: 0.3;
}

.shader-background canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(0, 74, 198, 0.2);
  width: fit-content;
}

.hero-badge .icon {
  color: var(--primary);
  font-size: 14px;
}

.badge-text {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-sora);
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 48px;
    line-height: 1.1;
  }
}

.dynamic-text {
  display: inline-block;
  border-right: 3px solid var(--primary);
  padding-right: 4px;
  animation: blink-cursor 0.75s step-end infinite;
  white-space: nowrap;
}

@keyframes blink-cursor {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary); }
}

.hero-description {
  font-family: var(--font-inter);
  font-size: 18px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 36rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(11, 28, 48, 0.05);
}

.avatar-group {
  display: flex;
  margin-left: -16px;
}

.avatar-group>* {
  margin-left: -16px;
}

.avatar-group> :first-child {
  margin-left: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.avatar-count {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
  background-color: var(--surface-container-highest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  z-index: 10;
}

.social-proof-text {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

/* 3D Image Animation */
@keyframes float {

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

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

.hero-image-container {
  position: relative;
  height: 480px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: visible;
}

@media (min-width: 1024px) {
  .hero-image-container {
    height: 100%;
    min-height: 500px;
  }
}

.hero-image-glow {
  display: none;
}

.hero-image {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shift image to show more of the right/subject side */
  object-position: 70% center;
  border-radius: 0;
  /* Multi-directional mask: smooth fade on all 4 edges */
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0%,   black 22%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%,   black 10%, black 92%, transparent 100%);
  -webkit-mask-composite: destination-in;
  mask-image:
    linear-gradient(to right,  transparent 0%,   black 22%, black 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0%,   black 10%, black 92%, transparent 100%);
  mask-composite: intersect;
  filter: none;
  opacity: 0.9;
}

/* Stats Section */
.stats-section {
  padding: var(--spacing-section) 0;
  background-color: var(--surface-container-low);
  border-top: 1px solid rgba(11, 28, 48, 0.05);
  border-bottom: 1px solid rgba(11, 28, 48, 0.05);
}

.stats-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-gutter);
}

@media (min-width: 768px) {
  .stats-container {
    padding: 0 var(--spacing-margin-desktop);
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-card .icon {
  font-size: 30px;
  margin-bottom: var(--spacing-sm);
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.stat-number {
  font-family: var(--font-sora);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Features Section */
.features-section {
  padding: var(--spacing-section) 0;
  position: relative;
}

.features-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
}

@media (min-width: 768px) {
  .features-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--spacing-xxl);
}

.section-title {
  font-family: var(--font-sora);
  font-size: 24px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: var(--spacing-md);
}

.section-description {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--on-surface-variant);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-gutter);
  grid-auto-rows: 250px;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
  }
}

.feature-large {
  padding: var(--spacing-xl);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .feature-large {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.feature-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  background-color: rgba(0, 74, 198, 0.1);
  border-radius: 50%;
  filter: blur(3xl);
  transform: translate(50%, -50%);
}

.feature-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: var(--spacing-lg);
}

.icon-primary {
  background-color: rgba(0, 74, 198, 0.1);
  color: var(--primary);
}

.icon-secondary {
  background-color: rgba(0, 104, 122, 0.1);
  color: var(--secondary);
}

.feature-title {
  font-family: var(--font-sora);
  font-size: 24px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: var(--spacing-sm);
}

.feature-text {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--on-surface-variant);
  max-width: 28rem;
}

.feature-image-wrapper {
  margin-top: var(--spacing-xl);
  aspect-ratio: 16/9;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(195, 198, 215, 0.3);
  position: relative;
}

.feature-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}

.feature-small {
  padding: var(--spacing-lg);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-small .feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-md);
}

.feature-title-small {
  font-family: var(--font-inter);
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: var(--spacing-xs);
}

.feature-text-small {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--on-surface-variant);
}

/* Courses Section */
.courses-section {
  padding: var(--spacing-section) 0;
  position: relative;
  background-color: var(--surface-container-low);
  border-top: 1px solid rgba(11, 28, 48, 0.05);
}

.courses-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
}

@media (min-width: 768px) {
  .courses-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.course-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-gutter);
}

@media (min-width: 640px) {
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .course-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.course-card {
  padding: var(--spacing-xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.course-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  position: relative;
}

.course-icon-wrapper::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  filter: blur(8px);
  z-index: -1;
}

.physics-bg {
  background-color: rgba(0, 74, 198, 0.1);
}

.chem-bg {
  background-color: rgba(0, 104, 122, 0.1);
}

.bio-bg {
  background-color: rgba(37, 99, 235, 0.1);
}

.math-bg {
  background-color: rgba(6, 182, 212, 0.1);
}

.course-icon {
  font-size: 32px;
}

.course-title {
  font-family: var(--font-sora);
  font-size: 20px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: var(--spacing-sm);
}

.course-desc {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.course-footer {
  margin-top: var(--spacing-xxl);
  display: flex;
  justify-content: center;
}

.all-subjects-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  border: 1px solid rgba(0, 74, 198, 0.2);
}

.badge-text-lg {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--on-surface);
}

/* Results Section */
.results-section {
  padding: var(--spacing-section) 0;
  position: relative;
  background-color: var(--surface);
}

.results-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
}

@media (min-width: 768px) {
  .results-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-gutter);
}

@media (min-width: 768px) {
  .results-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.result-card {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.6);
}

.result-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.result-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.result-avatar-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--surface-container-high);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.result-name {
  font-family: var(--font-inter);
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
}

.result-grade {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--on-surface-variant);
}

.result-score {
  font-family: var(--font-sora);
  font-size: 42px;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  line-height: 1;
}

.result-highlight {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

/* Reviews Section */
.reviews-section {
  padding: var(--spacing-section) 0;
  position: relative;
  background-color: var(--surface-container-low);
  border-top: 1px solid rgba(11, 28, 48, 0.05);
  overflow: hidden;
}

.reviews-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto var(--spacing-xxl);
  padding: 0 var(--spacing-margin-mobile);
}

@media (min-width: 768px) {
  .reviews-header {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.reviews-container {
  width: 100%;
  padding: 0 var(--spacing-margin-mobile);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .reviews-container {
    padding: 0 var(--spacing-margin-desktop);
  }

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

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-card {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 28, 48, 0.05);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-stars .material-symbols-outlined {
  font-size: 20px;
}

.review-text {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  flex-grow: 1;
}

.review-author {
  font-family: var(--font-sora);
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface);
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-section) 0;
  position: relative;
  background-color: var(--surface);
  overflow: hidden;
}

.contact-bg-glows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

.glow-circle-1 {
  background-color: var(--primary);
  width: 300px;
  height: 300px;
  top: -50px;
  left: -50px;
}

.glow-circle-2 {
  background-color: var(--secondary);
  width: 400px;
  height: 400px;
  bottom: -100px;
  right: -100px;
  animation-delay: -4s;
}

@keyframes pulse-glow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.12;
  }
  100% {
    transform: translate(30px, 30px) scale(1.15);
    opacity: 0.2;
  }
}

.contact-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .contact-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 104, 122, 0.1);
  border: 1px solid rgba(0, 104, 122, 0.2);
  width: fit-content;
  margin-bottom: var(--spacing-md);
}

.contact-badge .icon {
  color: var(--secondary);
  font-size: 14px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-gutter);
  margin-top: var(--spacing-xl);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* Contact Info Card */
.contact-info-card {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.tutor-profile {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .tutor-profile {
    flex-direction: column;
    align-items: flex-start;
  }
}

.tutor-avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
}

.tutor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2px solid white;
  border-radius: 50%;
}

.tutor-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tutor-name {
  font-family: var(--font-sora);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
}

.tutor-role {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--on-surface-variant);
  font-weight: 500;
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 12px;
  color: #16a34a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.75);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.personal-message {
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-surface-variant);
  font-style: italic;
  position: relative;
  padding-left: var(--spacing-md);
  border-left: 3px solid var(--primary);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(11, 28, 48, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a.contact-method-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 74, 198, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 74, 198, 0.04);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon span {
  font-size: 22px;
}

.whatsapp-icon {
  background-color: rgba(34, 197, 94, 0.1);
  color: #128c7e;
}

.mail-icon {
  background-color: rgba(0, 74, 198, 0.1);
  color: var(--primary);
}

.phone-icon {
  background-color: rgba(0, 104, 122, 0.1);
  color: var(--secondary);
}

.method-details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.method-label {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.method-value {
  font-family: var(--font-inter);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
}

.contact-method-item .arrow {
  color: var(--on-surface-variant);
  font-size: 18px;
  transition: transform 0.3s ease, color 0.3s ease;
}

a.contact-method-item:hover .arrow {
  transform: translateX(4px);
  color: var(--primary);
}

/* Contact Form Card */
.contact-form-card {
  padding: var(--spacing-xl);
  position: relative;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  transition: opacity 0.4s ease;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-xl);
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.form-input {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--on-surface);
  padding: 10px 0;
  border: none;
  border-bottom: 2px solid var(--outline-variant);
  background: transparent;
  outline: none;
  transition: border-color 0.3s ease;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23434655' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0px center;
  padding-right: 24px;
}

.form-label {
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--on-surface-variant);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Float label animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label,
.form-select:valid ~ .form-label {
  top: -16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.input-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus ~ .input-line {
  left: 0;
  width: 100%;
}

.form-input:focus {
  border-bottom-color: transparent;
}

.btn-submit {
  width: 100%;
  margin-top: var(--spacing-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: skewX(-25deg);
  transition: 0.75s;
  z-index: -1;
}

.btn-submit:hover::after {
  left: 125%;
}

.btn-submit .btn-icon {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translate(3px, -3px);
}

/* Form Success Overlay */
.form-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.form-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  max-width: 380px;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 74, 198, 0.05);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-overlay.active .success-content,
.modal-success-overlay.active .success-content {
  transform: scale(1);
}

.success-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 2px solid rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-xs);
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.15), inset 0 4px 10px rgba(255,255,255,0.8);
  animation: scale-up-bounce 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
  animation-delay: 0.1s;
}

@keyframes scale-up-bounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); }
}

.success-check-icon {
  font-size: 40px;
  color: #22c55e;
  filter: drop-shadow(0 4px 6px rgba(34, 197, 94, 0.3));
}

.success-title {
  font-family: var(--font-sora);
  font-size: 26px;
  font-weight: 700;
  color: var(--on-surface);
  background: linear-gradient(135deg, var(--on-surface) 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-message {
  font-family: var(--font-inter);
  font-size: 15px;
  color: var(--on-surface-variant);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-section) 0;
  position: relative;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  inset: 0;
  background-color: var(--surface-container-highest);
}

.cta-shader {
  opacity: 0.2;
}

.cta-container {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 var(--spacing-margin-mobile);
  text-align: center;
}

@media (min-width: 768px) {
  .cta-container {
    padding: 0 var(--spacing-margin-desktop);
  }
}

.cta-title {
  font-family: var(--font-sora);
  font-size: 36px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: var(--spacing-lg);
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 48px;
  }
}

.cta-description {
  font-family: var(--font-inter);
  font-size: 18px;
  color: var(--on-surface-variant);
  margin-bottom: var(--spacing-xl);
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

.cta-buttons .btn {
  width: 100%;
}

@media (min-width: 640px) {
  .cta-buttons .btn {
    width: auto;
  }
}

.cta-buttons .btn-outline {
  background-color: white;
}

/* Footer */
.footer {
  background-color: var(--surface);
  width: 100%;
  padding: var(--spacing-xxl) 0 0 0;
  border-top: 1px solid rgba(11, 28, 48, 0.05);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-gutter);
  padding: 0 var(--spacing-margin-desktop);
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 3fr;
  }
}

.footer-brand-col {
  grid-column: span 1;
}

.footer-brand {
  font-family: var(--font-sora);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-md);
}

.footer-copyright {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-top: var(--spacing-sm);
}

.footer-powered {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--on-surface-variant);
  margin-top: 6px;
  opacity: 0.9;
}

.footer-powered .powered-highlight {
  font-weight: 600;
  color: var(--primary);
}

.footer-links-col {
  grid-column: span 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .footer-links-col {
    grid-column: span 3;
    justify-content: flex-end;
  }
}

.footer-link {
  font-family: var(--font-inter);
  font-size: 16px;
  color: var(--on-surface-variant);
  opacity: 0.8;
  transition: transform 0.2s, opacity 0.2s, color 0.2s;
}

.footer-link:hover {
  color: var(--primary);
  opacity: 1;
  transform: translateX(4px);
}

.developer-credit-bar {
  background-color: var(--surface);
  color: var(--on-surface-variant);
  text-align: center;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-inter);
  margin-top: var(--spacing-xxl);
  border-top: 1px solid rgba(11, 28, 48, 0.05);
}

/* Modal Popup Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: var(--spacing-md);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 580px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
  padding: var(--spacing-xl);
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 28, 48, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  transition: all 0.3s ease;
  z-index: 5;
}

.modal-close-btn:hover {
  background: rgba(11, 28, 48, 0.1);
  color: var(--on-surface);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(0, 74, 198, 0.1);
  border: 1px solid rgba(0, 74, 198, 0.2);
  width: fit-content;
  margin-bottom: var(--spacing-sm);
}

.modal-badge .icon {
  color: var(--primary);
  font-size: 14px;
}

.modal-badge .badge-text {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.modal-title {
  font-family: var(--font-sora);
  font-size: 26px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: var(--spacing-xs);
}

.modal-description {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

/* Custom scrollbar for legal content */
.legal-content-scroll::-webkit-scrollbar {
  width: 6px;
}

.legal-content-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.legal-content-scroll::-webkit-scrollbar-thumb {
  background: rgba(0, 74, 198, 0.2);
  border-radius: 4px;
}

.legal-content-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 74, 198, 0.4);
}

.legal-content-scroll h4 {
  color: var(--on-surface);
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  font-size: 16px;
}

.legal-content-scroll h5 {
  color: var(--on-surface);
  margin-top: var(--spacing-sm);
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

.legal-content-scroll p {
  margin-bottom: var(--spacing-sm);
}

.legal-content-scroll ul {
  margin-bottom: var(--spacing-sm);
  padding-left: 20px;
}

.legal-content-scroll li {
  margin-bottom: 4px;
  position: relative;
  list-style-type: disc;
}

.legal-content-scroll li::marker {
  color: var(--primary);
}

/* Subjects checkbox layout */
.checkbox-group-title {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: var(--spacing-xs);
  display: block;
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

@media (min-width: 480px) {
  .subjects-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.subject-checkbox-label {
  cursor: pointer;
  position: relative;
}

.subject-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.subject-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-sm);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--outline-variant);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.subject-tile .icon {
  font-size: 20px;
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
}

.subject-tile .tile-text {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  transition: color 0.3s ease;
}

/* Hover and Checked state */
.subject-checkbox-label:hover .subject-tile {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.subject-checkbox:checked + .subject-tile {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 74, 198, 0.2);
}

.subject-checkbox:checked + .subject-tile .icon,
.subject-checkbox:checked + .subject-tile .tile-text {
  color: white;
}

/* Success modal overlay */
.modal-success-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 10;
}

.modal-success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Prevent page scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Hide floating mobile CTA when any modal or drawer is open */
body.modal-open .floating-mobile-cta {
  display: none !important;
}

/* ========================================
   MOBILE HAMBURGER MENU & NAVIGATION DRAWER
   ======================================== */

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 74, 198, 0.08);
  color: var(--primary);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle:active {
  transform: scale(0.9);
  background: rgba(0, 74, 198, 0.15);
}

@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 48, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100%;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  padding: env(safe-area-inset-top, 0) var(--spacing-lg) env(safe-area-inset-bottom, 0);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-overlay.active .mobile-nav-drawer {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(11, 28, 48, 0.08);
  flex-shrink: 0;
}

.mobile-nav-header .navbar-brand {
  font-size: 20px;
  gap: 8px;
}

.mobile-nav-header .navbar-logo {
  height: 36px;
}

.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(11, 28, 48, 0.06);
  color: var(--on-surface-variant);
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-close:active {
  transform: scale(0.9);
}

/* Mobile Nav Links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-lg) 0;
  flex-grow: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  font-family: var(--font-inter);
  font-size: 16px;
  font-weight: 500;
  color: var(--on-surface);
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-link .material-symbols-outlined {
  font-size: 22px;
  color: var(--primary);
  opacity: 0.7;
}

.mobile-nav-link:active {
  background: rgba(0, 74, 198, 0.08);
  transform: scale(0.98);
}

/* Mobile Nav Actions */
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(11, 28, 48, 0.08);
  flex-shrink: 0;
}

.mobile-nav-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 15px;
  border-radius: 12px;
}

.mobile-wa-btn {
  border-color: #25D366 !important;
  color: #128c7e !important;
  background: rgba(37, 211, 102, 0.08) !important;
}

/* ========================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS
   ======================================== */

/* === EXTRA SMALL PHONES (320px - 374px) === */
@media (max-width: 374px) {
  :root {
    --spacing-section: 48px;
    --spacing-margin-mobile: 12px;
    --spacing-gutter: 12px;
  }

  .navbar-container {
    height: 3.75rem;
    padding: 0 12px;
  }

  .navbar-brand {
    font-size: 18px;
    gap: 6px;
  }

  .navbar-logo {
    height: 32px;
  }

  .navbar-actions .btn-primary {
    padding: 6px 12px;
    font-size: 12px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .hero-content {
    gap: var(--spacing-lg);
  }

  .hero-title {
    font-size: 26px;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-badge {
    padding: 3px 10px;
  }

  .badge-text {
    font-size: 10px;
  }

  .hero-buttons {
    gap: var(--spacing-sm);
  }

  .btn-large {
    padding: 12px 20px;
    font-size: 13px;
    border-radius: 10px;
  }

  .hero-image-container {
    height: 280px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-description {
    font-size: 14px;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 10px;
  }

  .stat-card .icon {
    font-size: 24px;
  }

  .stat-card {
    padding: var(--spacing-md);
  }

  .feature-title {
    font-size: 18px;
  }

  .feature-text {
    font-size: 14px;
  }

  .course-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .course-title {
    font-size: 16px;
  }

  .course-desc {
    font-size: 13px;
  }

  .course-icon-wrapper {
    width: 52px;
    height: 52px;
  }

  .course-icon {
    font-size: 26px;
  }

  .all-subjects-badge {
    padding: var(--spacing-sm) var(--spacing-md);
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  .badge-text-lg {
    font-size: 13px;
  }

  .result-card {
    padding: var(--spacing-lg);
  }

  .result-score {
    font-size: 32px;
  }

  .result-name {
    font-size: 16px;
  }

  .result-highlight {
    font-size: 13px;
  }

  .review-card {
    padding: var(--spacing-md);
  }

  .review-text {
    font-size: 13px;
  }

  .contact-info-card {
    padding: var(--spacing-lg);
    gap: var(--spacing-lg);
  }

  .contact-form-card {
    padding: var(--spacing-lg);
  }

  .tutor-avatar-wrapper {
    width: 56px;
    height: 56px;
  }

  .tutor-name {
    font-size: 17px;
  }

  .personal-message {
    font-size: 14px;
  }

  .method-icon {
    width: 38px;
    height: 38px;
  }

  .method-icon span {
    font-size: 18px;
  }

  .method-value {
    font-size: 13px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 15px;
  }

  .footer-container {
    padding: 0 12px;
  }

  .footer-brand {
    font-size: 20px;
    gap: 8px;
  }

  .footer-brand .navbar-logo {
    height: 32px;
  }

  .footer-copyright {
    font-size: 13px;
  }

  .footer-powered {
    font-size: 12px;
  }

  .footer-link {
    font-size: 13px;
  }

  .modal-content {
    padding: var(--spacing-lg);
    border-radius: 16px;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 20px;
  }

  .modal-description {
    font-size: 13px;
  }

  .success-content {
    padding: 24px 20px;
  }

  .success-title {
    font-size: 22px;
  }

  .success-message {
    font-size: 13px;
  }

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

  .subject-tile {
    padding: var(--spacing-sm) var(--spacing-xs);
  }

  .subject-tile .icon {
    font-size: 18px;
  }

  .subject-tile .tile-text {
    font-size: 10px;
  }
}

/* === SMALL PHONES (375px - 479px) === */
@media (min-width: 375px) and (max-width: 479px) {
  :root {
    --spacing-section: 56px;
    --spacing-margin-mobile: 16px;
  }

  .navbar-container {
    height: 4rem;
  }

  .navbar-brand {
    font-size: 20px;
    gap: 8px;
  }

  .navbar-logo {
    height: 36px;
  }

  .navbar-actions .btn-primary {
    padding: 7px 14px;
    font-size: 13px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-image-container {
    height: 320px;
  }

  .section-title {
    font-size: 22px;
  }

  .stat-number {
    font-size: 26px;
  }

  .stat-card {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .course-card {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .result-score {
    font-size: 36px;
  }

  .cta-title {
    font-size: 26px;
  }

  .modal-content {
    padding: var(--spacing-lg);
    border-radius: 16px;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 22px;
  }
}

/* === MEDIUM PHONES & PHABLETS (480px - 639px) === */
@media (min-width: 480px) and (max-width: 639px) {
  .navbar-container {
    height: 4.25rem;
  }

  .navbar-brand {
    font-size: 22px;
    gap: 10px;
  }

  .navbar-logo {
    height: 40px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-image-container {
    height: 380px;
  }

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

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

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

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

  .cta-title {
    font-size: 30px;
  }
}

/* === SMALL TABLETS (640px - 767px) === */
@media (min-width: 640px) and (max-width: 767px) {
  .navbar-container {
    height: 4.5rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 3.5rem;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-image-container {
    height: 420px;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

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

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

  .cta-title {
    font-size: 34px;
  }
}

/* Hide floating mobile CTA globally, show only on mobile */
.floating-mobile-cta {
  display: none;
}

/* Pricing Table Styles */
.pricing-modal-content {
  max-width: 800px;
  width: 95%;
}

.pricing-table-container {
  width: 100%;
  overflow-x: auto;
  margin: var(--spacing-lg) 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-family: var(--font-inter);
}

.pricing-table th,
.pricing-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pricing-table th {
  font-family: var(--font-sora);
  font-weight: 700;
  color: var(--on-surface);
  background: rgba(0, 74, 198, 0.05);
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
}

.pricing-table th:first-child {
  text-align: left;
  background: transparent;
}

.pricing-table td {
  color: var(--on-surface-variant);
  font-size: 15px;
  text-align: center;
  white-space: nowrap;
}

.pricing-table td:first-child {
  text-align: left;
  color: var(--on-surface);
  font-weight: 500;
}

.pricing-table .highlight-row td {
  background: rgba(0, 74, 198, 0.08);
  font-weight: 700;
  color: var(--primary);
}

.pricing-table .check-icon {
  font-size: 20px;
  font-weight: bold;
}

.pricing-footer-note {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--on-surface-variant);
  background: rgba(255,255,255,0.6);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.modal-footer-actions {
  margin-top: var(--spacing-lg);
  display: flex;
  justify-content: center;
}

/* === MOBILE GENERAL (max-width: 767px) — App-like feel === */
@media (max-width: 767px) {
  /* Hide desktop nav links on mobile */
  .navbar-links {
    display: none !important;
  }

  /* Hide WhatsApp button on navbar (it's in the mobile menu) */
  .btn-whatsapp {
    display: none !important;
  }

  /* Hide navbar Book Demo button on mobile */
  .navbar-actions .btn-trigger-demo {
    display: none !important;
  }

  /* Show floating mobile CTA */
  .floating-mobile-cta {
    display: block;
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    z-index: 100;
  }

  .floating-mobile-cta .btn {
    width: 100%;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 74, 198, 0.4);
    animation: slideUpFloat 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  @keyframes slideUpFloat {
    from {
      transform: translateY(100px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Hero section app feel */
  .hero-section {
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-container {
    gap: var(--spacing-xl);
  }

  .hero-content {
    gap: var(--spacing-lg);
    text-align: left;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-social-proof {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .avatar-count {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  /* Bento Grid - stack on mobile */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .feature-large {
    grid-column: span 1;
    grid-row: span 1;
    min-height: auto;
    padding: var(--spacing-lg);
  }

  .feature-small {
    min-height: auto;
  }

  .feature-image-wrapper {
    margin-top: var(--spacing-md);
  }

  /* Course grid */
  .course-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .course-footer {
    margin-top: var(--spacing-xl);
  }

  /* Results */
  .results-grid {
    gap: var(--spacing-md);
  }

  .result-avatar-wrapper {
    width: 48px;
    height: 48px;
  }

  .result-avatar-wrapper span {
    font-size: 26px !important;
  }

  /* Reviews */
  .reviews-grid {
    gap: var(--spacing-md);
  }

  /* Contact */
  .contact-grid {
    gap: var(--spacing-md);
  }

  .contact-method-item {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  /* CTA */
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer {
    padding: var(--spacing-xl) 0 0 0;
  }
  
  .developer-credit-bar {
    padding-bottom: calc(16px + 80px);
    margin-top: var(--spacing-xl);
  }

  .footer-container {
    padding: 0 var(--spacing-margin-mobile);
    gap: var(--spacing-lg);
  }

  .footer-links-col {
    gap: var(--spacing-md);
    flex-direction: column;
  }

  .footer-link {
    font-size: 14px;
    padding: 4px 0;
  }

  /* Modal - full screen feel on mobile */
  .modal-overlay {
    padding: var(--spacing-sm);
    align-items: flex-end;
  }

  .modal-content {
    max-height: 92vh;
    border-radius: 20px 20px 8px 8px;
    padding: var(--spacing-lg);
  }

  .modal-header {
    margin-bottom: var(--spacing-md);
  }

  /* Subjects grid in modal */
  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === TABLETS (768px - 1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-menu-toggle {
    display: none;
  }

  .navbar-container {
    height: 4.5rem;
  }

  .hero-section {
    min-height: auto;
    padding-top: 4rem;
  }

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

  .hero-content {
    align-items: center;
  }

  .hero-description {
    margin: 0 auto;
  }

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

  .hero-social-proof {
    justify-content: center;
  }

  .hero-image-container {
    height: 400px;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
  }

  .feature-large {
    grid-column: span 2;
    grid-row: span 2;
  }

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

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

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

  .contact-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-title {
    font-size: 40px;
  }

  .footer-container {
    grid-template-columns: 1fr 3fr;
  }

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

/* === DESKTOPS (1024px+) === */
@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }

  .mobile-nav-overlay {
    display: none !important;
  }

  .hero-section {
    min-height: 90vh;
  }

  .hero-container {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

/* === LARGE DESKTOPS (1440px+) === */
@media (min-width: 1440px) {
  .hero-title {
    font-size: 56px;
  }

  .hero-description {
    font-size: 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-description {
    font-size: 18px;
  }

  .cta-title {
    font-size: 54px;
  }
}

/* ========================================
   TOUCH & INTERACTION IMPROVEMENTS
   ======================================== */

/* Ensure all interactive elements have good tap targets */
@media (hover: none) and (pointer: coarse) {
  .nav-link,
  .footer-link,
  .contact-method-item,
  .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* Remove hover effects on touch devices */
  .course-card:hover,
  .result-card:hover,
  .review-card:hover {
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  }

  /* Add active states instead */
  .course-card:active,
  .result-card:active,
  .review-card:active {
    transform: scale(0.98);
    transition: transform 0.15s ease;
  }

  .btn-primary:hover {
    transform: none;
  }

  .btn-primary:active {
    transform: scale(0.96);
  }
}

/* Safe area support for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .developer-credit-bar {
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .mobile-nav-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .modal-overlay {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Smooth scrolling on iOS */
body.app-body {
  -webkit-overflow-scrolling: touch;
}

/* Prevent text resize on orientation change in iOS */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}