/**
 * Index Page Specific Styles for Mr Mohrr7am
 */

/* Math-themed Color Variables */
:root {
  --math-primary: rgb(58, 146, 98);
  --math-secondary: rgb(0, 176, 80);
  --math-accent: #f59e0b;
  --math-gradient: linear-gradient(
    135deg,
    var(--math-primary),
    var(--math-secondary)
  );
  --math-text: #1f2937;
  --math-text-light: #6b7280;
  --math-bg: #ffffff;
  --math-surface: #f8fafc;
  --math-border: #e5e7eb;
}

.dark-theme {
  --math-text: #f9fafb;
  --math-text-light: #d1d5db;
  --math-bg: #111827;
  --math-surface: #1f2937;
  --math-border: #374151;
  --math-primary: rgb(0, 176, 80);
  --math-secondary: rgb(58, 146, 98);
  --math-accent: #fbbf24;
}

/* Theme Toggle - Updated to match unified system */
.theme-toggle {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.light-theme .theme-toggle {
  background: linear-gradient(
    135deg,
    rgba(30, 41, 59, 0.1),
    rgba(30, 41, 59, 0.05)
  );
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.15);
  border: 1px solid rgba(30, 41, 59, 0.1);
}

.dark-theme .theme-toggle {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.05)
  );
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.light-theme .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(30, 41, 59, 0.2);
}

.dark-theme .theme-toggle:hover {
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Icons - Use same system as theme-toggle.css */
.theme-toggle .light-icon,
.theme-toggle .dark-icon {
  font-size: 18px;
  transition: all 0.3s ease;
  position: absolute;
  display: none !important;
}

/* Light theme shows moon icon (to switch to dark) */
.light-theme .theme-toggle .dark-icon {
  display: inline-block !important;
  color: #1e293b;
  opacity: 1;
  transform: scale(1);
}

/* Dark theme shows sun icon (to switch to light) */
.dark-theme .theme-toggle .light-icon {
  display: inline-block !important;
  color: #facc15;
  opacity: 1;
  transform: scale(1);
}

/* High priority override for index page specifically */
body.light-theme .theme-toggle .dark-icon,
.hero-section-new .light-theme .theme-toggle .dark-icon {
  display: inline-block !important;
  color: #1e293b !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

body.dark-theme .theme-toggle .light-icon,
.hero-section-new .dark-theme .theme-toggle .light-icon {
  display: inline-block !important;
  color: #facc15 !important;
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Remove old data-theme selectors that conflict */
/* [data-theme="dark"] selectors removed to prevent conflicts */

/* Floating Math Elements */
.floating-math-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.math-element {
  position: absolute;
  font-size: 24px;
  font-weight: bold;
  color: var(--math-primary);
  opacity: 0.1;
  animation: floatMath 20s infinite linear;
}

@keyframes floatMath {
  0% {
    transform: translateX(-100px) translateY(100vh) rotate(0deg);
  }
  100% {
    transform: translateX(100vw) translateY(-100px) rotate(360deg);
  }
}

/* Hero Section - Completely New */
.hero-section-new {
  min-height: 100vh;
  position: relative;
  background: var(--math-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-particles-system {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.hero-content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-badge-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 146, 98, 0.1);
  border: 1px solid rgba(58, 146, 98, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.badge-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

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

.badge-text {
  color: var(--math-primary);
  font-weight: 600;
  font-size: 14px;
}

.hero-title-new {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--math-text);
}

.title-line {
  display: block;
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(30px);
}

.title-line:nth-child(1) {
  animation-delay: 0.2s;
}
.title-line:nth-child(2) {
  animation-delay: 0.4s;
}
.title-line:nth-child(3) {
  animation-delay: 0.6s;
}

.math-gradient {
  background: var(--math-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description-new {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--math-text-light);
  margin-bottom: 40px;
  max-width: 500px;
  animation: fadeIn 1s ease-out 0.8s forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-highlights {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  animation: slideInUp 0.8s ease-out 1s forwards;
  opacity: 0;
  transform: translateY(30px);
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(58, 146, 98, 0.1);
  border: 1px solid rgba(58, 146, 98, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.highlight-item:hover {
  background: rgba(58, 146, 98, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.2);
}

.dark-theme .highlight-item {
  background: rgba(0, 176, 80, 0.1);
  border: 1px solid rgba(0, 176, 80, 0.2);
}

.dark-theme .highlight-item:hover {
  background: rgba(0, 176, 80, 0.15);
  box-shadow: 0 8px 20px rgba(0, 176, 80, 0.2);
}

.highlight-icon {
  font-size: 1.5rem;
  color: var(--math-primary);
  background: rgba(58, 146, 98, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-theme .highlight-icon {
  background: rgba(0, 176, 80, 0.1);
}

.highlight-content {
  display: flex;
  flex-direction: column;
}

.highlight-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--math-text);
  margin-bottom: 2px;
}

.highlight-desc {
  font-size: 0.75rem;
  color: var(--math-text-light);
}

.hero-cta-new {
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideInUp 0.8s ease-out 1.2s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.btn-primary-new,
.btn-secondary-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary-new {
  background: var(--math-gradient);
  color: white;
  box-shadow: 0 8px 25px rgba(58, 146, 98, 0.3);
}

.btn-primary-new:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(58, 146, 98, 0.4);
  color: white;
}

.btn-secondary-new {
  background: transparent;
  color: var(--math-text);
  border: 2px solid var(--math-border);
}

.btn-secondary-new:hover {
  background: var(--math-surface);
  transform: translateY(-2px);
  color: var(--math-text);
}

.btn-glow-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-primary-new:hover .btn-glow-effect {
  left: 100%;
}

.hero-visual-container {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Teacher Portrait Container */
.teacher-portrait-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  z-index: 2;
}

.teacher-portrait-frame {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--math-gradient);
  padding: 8px;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 0 15px rgba(58, 146, 98, 0.1),
    0 0 0 30px rgba(58, 146, 98, 0.05);
  animation: teacher-portrait-pulse 4s ease-in-out infinite;
  transition: all 0.5s ease;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.teacher-portrait-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1);
  transition: transform 0.5s ease;
  animation: teacher-portrait-float 6s ease-in-out infinite;
}

.teacher-portrait-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.teacher-portrait-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--math-gradient);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(58, 146, 98, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  white-space: nowrap;
}

.teacher-portrait-badge i {
  font-size: 1rem;
}

@keyframes teacher-portrait-pulse {
  0%, 100% {
    box-shadow: 
      0 10px 30px rgba(0, 0, 0, 0.2),
      0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 0 15px rgba(58, 146, 98, 0.1),
      0 0 0 30px rgba(58, 146, 98, 0.05);
  }
  50% {
    box-shadow: 
      0 15px 40px rgba(0, 0, 0, 0.3),
      0 0 0 4px rgba(255, 255, 255, 0.2),
      0 0 0 20px rgba(58, 146, 98, 0.15),
      0 0 0 40px rgba(58, 146, 98, 0.08);
  }
}

@keyframes teacher-portrait-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(3deg);
  }
  50% {
    transform: translateY(0) rotate(0deg);
  }
  75% {
    transform: translateY(8px) rotate(-3deg);
  }
}

.hero-visual-container:hover .teacher-portrait-frame {
  transform: scale(1.05);
}

.hero-visual-container:hover .teacher-portrait-image {
  transform: scale(1.1);
}

.floating-equations-new {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.equation-item {
  position: absolute;
  font-size: 18px;
  font-weight: 600;
  color: var(--math-primary);
  opacity: 0;
  animation: floatEquation 4s infinite ease-in-out;
  animation-delay: var(--delay);
}

.equation-item:nth-child(1) {
  top: 10%;
  left: 20%;
}
.equation-item:nth-child(2) {
  top: 20%;
  right: 15%;
}
.equation-item:nth-child(3) {
  bottom: 30%;
  left: 10%;
}
.equation-item:nth-child(4) {
  bottom: 20%;
  right: 20%;
}
.equation-item:nth-child(5) {
  top: 50%;
  left: 5%;
}

@keyframes floatEquation {
  0%,
  100% {
    opacity: 0;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.7;
    transform: translateY(-20px);
  }
}

.hero-glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(58, 146, 98, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.8;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--math-text-light);
  animation: bounce 2s infinite;
}

.scroll-text {
  font-size: 14px;
  margin-bottom: 8px;
}

.scroll-arrow {
  font-size: 20px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Interactive Learning Hub Section */
.learning-hub-section {
  padding: 120px 0;
  background: var(--math-surface);
  position: relative;
  overflow: hidden;
}

.section-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
      circle at 25% 25%,
      rgba(30, 64, 175, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 75% 75%,
      rgba(5, 150, 105, 0.05) 0%,
      transparent 50%
    );
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(58, 146, 98, 0.1);
  border: 1px solid rgba(58, 146, 98, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  margin-bottom: 16px;
  color: var(--math-primary);
  font-weight: 600;
  font-size: 14px;
}

.section-title-new {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--math-text);
  margin-bottom: 16px;
}

.section-subtitle-new {
  font-size: 1.125rem;
  color: var(--math-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.learning-hub-container {
  margin-top: 60px;
}

.interactive-demo-panel {
  background: var(--math-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--math-border);
  transition: all 0.3s ease;
}

.interactive-demo-panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.control-group {
  margin-bottom: 30px;
}

.control-label {
  display: block;
  font-weight: 600;
  color: var(--math-text);
  margin-bottom: 12px;
}

.concept-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.concept-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--math-border);
  border-radius: 50px;
  background: var(--math-bg);
  color: var(--math-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.concept-btn:hover,
.concept-btn.active {
  border-color: var(--math-primary);
  background: var(--math-primary);
  color: white;
  transform: translateY(-2px);
}

.parameter-controls {
  margin-bottom: 30px;
}

.slider-control {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.slider-control label {
  min-width: 120px;
  font-weight: 500;
  color: var(--math-text);
}

.math-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--math-border);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.math-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--math-gradient);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.slider-value {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--math-primary);
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid var(--math-border);
  border-radius: 50px;
  background: var(--math-bg);
  color: var(--math-text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.action-btn:hover {
  border-color: var(--math-secondary);
  background: var(--math-secondary);
  color: white;
  transform: translateY(-2px);
}

.interactive-canvas-container {
  position: relative;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--math-bg);
  border: 1px solid var(--math-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.math-visualization {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.visualization-header {
  text-align: center;
  margin-bottom: 20px;
}

.visualization-header h3 {
  color: var(--math-text);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.visualization-header p {
  color: var(--math-text-light);
  font-size: 0.9rem;
}

.visualization-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.math-object {
  width: 120px;
  height: 120px;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate3D 8s infinite linear;
  margin-bottom: 30px;
}

.object-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
}

.cube-face {
  position: absolute;
  width: 120px;
  height: 120px;
  background: linear-gradient(
    135deg,
    var(--math-primary),
    var(--math-secondary)
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cube-face.front {
  transform: translateZ(60px);
}
.cube-face.back {
  transform: translateZ(-60px) rotateY(180deg);
}
.cube-face.right {
  transform: translateX(60px) rotateY(90deg);
}
.cube-face.left {
  transform: translateX(-60px) rotateY(-90deg);
}
.cube-face.top {
  transform: translateY(-60px) rotateX(90deg);
}
.cube-face.bottom {
  transform: translateY(60px) rotateX(-90deg);
}

@keyframes rotate3D {
  0% {
    transform: rotateX(0deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg);
  }
}

.equation-display {
  background: rgba(58, 146, 98, 0.9);
  color: white;
  padding: 12px 20px;
  border-radius: 50px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.equation-label {
  font-size: 12px;
  opacity: 0.8;
}

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

.interaction-hint {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Features Grid Section */
.features-grid-section {
  padding: 120px 0;
  background: var(--math-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card-new {
  background: var(--math-surface);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--math-border);
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-card-new:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon-new {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--math-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: white;
  position: relative;
  z-index: 2;
}

.feature-title-new {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--math-text);
  margin-bottom: 16px;
}

.feature-desc-new {
  color: var(--math-text-light);
  line-height: 1.6;
}

.feature-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(58, 146, 98, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card-new:hover .feature-glow {
  opacity: 1;
}

/* Success Stories Section */
.success-stories-section {
  padding: 120px 0;
  background: var(--math-surface);
}

.testimonials-carousel-new {
  position: relative;
  max-width: 800px;
  margin: 60px auto 0;
}

.testimonial-card-new {
  background: var(--math-bg);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--math-border);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  display: none;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.testimonial-card-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--math-primary),
    var(--math-secondary)
  );
}

.testimonial-card-new.active {
  opacity: 1;
  transform: translateX(0);
  display: block;
}

.testimonial-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.testimonial-content-new {
  text-align: center;
  position: relative;
}

.quote-icon {
  font-size: 40px;
  color: var(--math-primary);
  margin-bottom: 24px;
}

.testimonial-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(
    135deg,
    var(--math-primary),
    var(--math-secondary)
  );
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(58, 146, 98, 0.3);
}

.testimonial-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--math-text);
  margin-bottom: 32px;
  font-style: italic;
}

.student-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.student-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--math-primary);
  box-shadow: 0 4px 12px rgba(58, 146, 98, 0.3);
  transition: all 0.3s ease;
}

.student-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.4);
}

.student-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-details {
  text-align: left;
}

.student-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--math-text);
  margin-bottom: 4px;
}

.student-grade {
  color: var(--math-text-light);
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.student-rating {
  color: var(--math-accent);
  font-size: 14px;
  margin-top: 4px;
}

.student-rating i {
  margin-right: 2px;
}

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

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--math-border);
  background: var(--math-bg);
  color: var(--math-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:hover {
  border-color: var(--math-primary);
  background: var(--math-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.3);
}

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

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

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--math-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--math-primary);
}

/* CTA Section */
.cta-section-new {
  padding: 120px 0;
  background: linear-gradient(
    135deg,
    var(--math-primary) 0%,
    var(--math-secondary) 100%
  );
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(10px, 10px);
  }
}

.cta-content-new {
  position: relative;
  z-index: 2;
}

.cta-icon {
  font-size: 60px;
  color: white;
  margin-bottom: 24px;
}

.cta-title-new {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
}

.cta-subtitle-new {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 16px;
  border: 2px solid transparent;
}

.btn-cta-primary {
  background: white;
  color: var(--math-primary);
  border-color: white;
}

.btn-cta-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.btn-cta-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-cta-secondary:hover {
  background: white;
  color: var(--math-primary);
  border-color: white;
  transform: translateY(-2px);
}

.cta-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.cta-feature i {
  color: var(--math-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-highlights {
    flex-direction: column;
    gap: 16px;
  }

  .interactive-demo-panel {
    padding: 20px;
  }

  .math-object {
    width: 100px;
    height: 100px;
  }

  .cube-face {
    width: 100px;
    height: 100px;
    font-size: 1.5rem;
  }

  .cube-face.front {
    transform: translateZ(50px);
  }
  .cube-face.back {
    transform: translateZ(-50px) rotateY(180deg);
  }
  .cube-face.right {
    transform: translateX(50px) rotateY(90deg);
  }
  .cube-face.left {
    transform: translateX(-50px) rotateY(-90deg);
  }
  .cube-face.top {
    transform: translateY(-50px) rotateX(90deg);
  }
  .cube-face.bottom {
    transform: translateY(50px) rotateX(-90deg);
  }

  .hero-cta-new {
    flex-direction: column;
    align-items: stretch;
  }

  .concept-buttons {
    flex-direction: column;
  }

  .slider-control {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .slider-control label {
    min-width: auto;
  }

  .student-info {
    flex-direction: column;
    text-align: center;
  }

  .student-details {
    text-align: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-features {
    flex-direction: column;
    gap: 16px;
  }
}

/* Student Photos Section */
.student-photos-section {
  padding: 120px 0;
  background: var(--math-bg);
  position: relative;
  overflow: hidden;
}

.student-photos-container {
  position: relative;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.student-photos-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  height: 400px;
}

.slides-container {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
  height: 100%;
}

.slides-container.smooth-transition {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.student-photo-card {
  flex: 0 0 auto;
  width: 350px;
  height: 350px;
  margin-right: 40px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.dark-theme .student-photo-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.student-photo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark-theme .student-photo-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.student-photo {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.student-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.student-photo-card:hover .student-photo img {
  transform: scale(1.05);
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.photo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
  z-index: 2;
}

.student-info-card {
  padding: 20px;
  position: relative;
}

.student-name-card {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--math-text);
  margin-bottom: 5px;
}

.student-year-card {
  color: var(--math-text-light);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.student-achievement {
  display: inline-block;
  background: var(--math-gradient);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  position: relative;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--math-border);
  background: var(--math-bg);
  color: var(--math-text);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
  border-color: var(--math-primary);
  background: var(--math-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(58, 146, 98, 0.3);
}

.slider-arrow:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  border-color: var(--math-border);
  background: var(--math-bg);
  color: var(--math-text);
  box-shadow: none;
}

.slider-pagination {
  display: flex;
  gap: 10px;
}

.pagination-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--math-border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination-dot.active {
  background: var(--math-primary);
  transform: scale(1.2);
}

/* Autoplay toggle button removed as requested */

.slider-info {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: var(--math-text-light);
  font-weight: 600;
}

.current-slide {
  color: var(--math-primary);
}

.slide-separator {
  margin: 0 5px;
}

/* Fallback content */
.fallback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  background: var(--math-surface);
  border-radius: 20px;
  border: 2px dashed var(--math-border);
  padding: 40px;
  text-align: center;
}

.fallback-icon {
  font-size: 60px;
  color: var(--math-primary);
  margin-bottom: 20px;
  animation: pulse-icon 2s infinite ease-in-out;
}

@keyframes pulse-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.fallback-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--math-text);
  margin-bottom: 15px;
}

.fallback-content p {
  color: var(--math-text-light);
  max-width: 400px;
  margin: 0 auto;
}

/* Student photo hover effects */
.student-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, 
    rgba(58, 146, 98, 0.9) 0%, 
    rgba(58, 146, 98, 0.7) 40%, 
    rgba(58, 146, 98, 0.4) 60%, 
    transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  z-index: 3;
}

.student-photo-card:hover .student-photo-overlay {
  opacity: 1;
}

.overlay-content {
  color: white;
}

.overlay-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.overlay-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive styles for student photos section */
@media (max-width: 768px) {
  .student-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .student-photo-card {
    width: 280px;
    height: 350px;
    margin-right: 20px;
  }
  
  .student-photo {
    height: 200px;
  }
  
  .student-info-card {
    padding: 15px;
  }
  
  .student-name-card {
    font-size: 1.1rem;
  }
}

/* AOS Animation Styles */
[data-aos='fade-up'] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos='fade-up'].aos-animate {
  opacity: 1;
  transform: translateY(0);
}
