* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

}

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #a855f7;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --dark-color: #1f2937;
  --light-color: #f8fafc;
  --white: #ffffff;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  --gradient-success: linear-gradient(135deg, #10b981, #059669);
  --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --gradient-danger: linear-gradient(135deg, #ef4444, #dc2626);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --border-radius-sm: 0.375rem;
  --border-radius: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --border-radius-2xl: 2rem;
  --border-radius-full: 9999px;
  --transition-fast: 0.1s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}
.student-section {
  text-align: center;
  padding: 40px 20px;
  background: #f9f9f9;
  border-radius: 15px;
  max-width: 500px;
  margin: auto;
  overflow: hidden;
}

.section-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.student-card {
  min-width: 100%;
  box-sizing: border-box;
}

.student-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.student-score {
  font-size: 18px;
  color: #444;
  font-weight: bold;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  overflow-x: hidden;
  background: linear-gradient(135deg, var(--light-color) 0%, #e0e7ff 50%, #f3e8ff 100%);
  line-height: 1.6;
  width: 100%;
  color: var(--gray-700);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-atom {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
}

.loading-nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px white;
}

.loading-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.loading-orbit.orbit-1 {
  width: 80px;
  height: 80px;
  animation: loadingOrbit 2s linear infinite;
}

.loading-orbit.orbit-2 {
  width: 60px;
  height: 60px;
  animation: loadingOrbit 1.5s linear infinite reverse;
}

.loading-orbit.orbit-3 {
  width: 100px;
  height: 30px;
  animation: loadingOrbit 2.5s linear infinite;
}

.loading-electron {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px white;
}

.loading-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: loadingProgress 2s ease-in-out infinite;
}

@keyframes loadingOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes loadingProgress {
  0%,
  100% {
    width: 0%;
  }
  50% {
    width: 100%;
  }
}

/* Enhanced Physics Background */
.physics-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  text-align: center;
}

/* Enhanced Atoms */
.atom {
  position: absolute;
  width: 100px;
  height: 100px;
  transition: all 3s ease-in-out;
}

.atom-1 {
  top: 15%;
  left: 10%;
  /* animation: atomFloat 15s ease-in-out infinite, atomMove 25s ease-in-out infinite; */
}

.atom-2 {
  top: 60%;
  right: 15%;
  /* animation: atomFloat 18s ease-in-out infinite reverse, atomMove2 30s ease-in-out infinite; */
}

.atom-3 {
  bottom: 20%;
  left: 60%;
  /* animation: atomFloat 20s ease-in-out infinite, atomMove3 35s ease-in-out infinite; */
}

.nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--primary-color);
  animation: nucleusPulse 3s ease-in-out infinite;
}

.electron-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 {
  width: 70px;
  height: 70px;
  animation: orbitRotate 3s linear infinite;
}

.orbit-2 {
  width: 50px;
  height: 50px;
  animation: orbitRotate 2s linear infinite reverse;
}

.orbit-3 {
  width: 90px;
  height: 25px;
  animation: orbitRotate 4s linear infinite;
}

.electron {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--warning-color);
  border-radius: 50%;
  top: -2.5px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 8px var(--warning-color);
  animation: electronGlow 2s ease-in-out infinite;
}

.atom-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: atomGlowPulse 4s ease-in-out infinite;
}

/* Enhanced Waves */
.wave-container {
  position: absolute;
  width: 250px;
  height: 50px;
  transition: all 3s ease-in-out;
}

.wave-1 {
  top: 25%;
  right: 20%;
  animation: waveFloat 10s ease-in-out infinite, waveMove 22s ease-in-out infinite;
}

.wave-2 {
  bottom: 30%;
  left: 25%;
  animation: waveFloat 12s ease-in-out infinite reverse, waveMove2 26s ease-in-out infinite;
}

.wave-3 {
  top: 50%;
  right: 5%;
  animation: waveFloat 14s ease-in-out infinite, waveMove3 28s ease-in-out infinite;
}

.wave-svg {
  width: 100%;
  height: 100%;
}

.wave-path {
  fill: none;
  stroke: rgba(139, 92, 246, 0.7);
  stroke-width: 3;
  animation: wavePulse 5s ease-in-out infinite;
}

.wave-path-secondary {
  fill: none;
  stroke: rgba(168, 85, 247, 0.5);
  stroke-width: 2;
  animation: wavePulse 5s ease-in-out infinite reverse;
}

/* Enhanced Pendulums */
.pendulum {
  position: absolute;
  width: 3px;
  height: 120px;
  transform-origin: top center;
  transition: all 3s ease-in-out;
}

.pendulum-1 {
  top: 5%;
  left: 30%;
  animation: pendulumSwing 5s ease-in-out infinite, pendulumMove 20s ease-in-out infinite;
}

.pendulum-2 {
  top: 10%;
  right: 40%;
  animation: pendulumSwing 4s ease-in-out infinite reverse, pendulumMove2 24s ease-in-out infinite;
}

.pendulum-3 {
  bottom: 15%;
  right: 10%;
  animation: pendulumSwing 6s ease-in-out infinite, pendulumMove3 28s ease-in-out infinite;
}

.pendulum-string {
  width: 3px;
  height: 100px;
  background: linear-gradient(to bottom, rgba(107, 114, 128, 0.8), rgba(107, 114, 128, 0.4));
  border-radius: 1px;
}

.pendulum-bob {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--danger-color), #dc2626);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--danger-color);
  animation: bobGlow 3s ease-in-out infinite;
}

.pendulum-shadow {
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 15px;
  height: 3px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: shadowMove 5s ease-in-out infinite;
}

/* Enhanced Newton's Cradle */
.newtons-cradle {
  position: absolute;
  top: 45%;
  left: 5%;
  width: 140px;
  height: 100px;
  /* animation: cradleFloat 12s ease-in-out infinite, cradleMove 28s ease-in-out infinite; */
  transition: all 3s ease-in-out;
}

.cradle-frame {
  position: relative;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cradle-ball {
  position: relative;
  width: 24px;
  height: 70px;
  transform-origin: top center;
}

.ball-string {
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(107, 114, 128, 0.8), rgba(107, 114, 128, 0.4));
  margin: 0 auto;
  border-radius: 1px;
}

.ball {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, #94a3b8, #64748b);
  border-radius: 50%;
  margin: 0 auto;
  box-shadow: 0 0 8px rgba(100, 116, 139, 0.6);
  animation: ballGlow 4s ease-in-out infinite;
}

.ball-1 {
  animation: cradleBall1 4s ease-in-out infinite;
}

.ball-2,
.ball-3,
.ball-4 {
  animation: cradleBallMiddle 4s ease-in-out infinite;
}

.ball-5 {
  animation: cradleBall5 4s ease-in-out infinite;
}

.cradle-base {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 120px;
  height: 8px;
  background: linear-gradient(to right, rgba(107, 114, 128, 0.6), rgba(107, 114, 128, 0.3));
  border-radius: 4px;
  transform: translateX(-50%);
}

/* Enhanced Magnetic Field */
.magnetic-field {
  position: absolute;
  width: 140px;
  height: 140px;
  transition: all 3s ease-in-out;
}

.magnetic-1 {
  bottom: 20%;
  left: 20%;
  animation: magneticPulse 8s ease-in-out infinite, magneticMove 22s ease-in-out infinite;
}

.magnetic-2 {
  top: 30%;
  right: 30%;
  animation: magneticPulse 10s ease-in-out infinite reverse, magneticMove2 26s ease-in-out infinite;
}

.field-line {
  position: absolute;
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.line-1 {
  width: 100px;
  height: 50px;
  /* animation: fieldRotate 10s linear infinite; */
}

.line-2 {
  width: 80px;
  height: 40px;
  /* animation: fieldRotate 8s linear infinite reverse; */
}

.line-3 {
  width: 120px;
  height: 60px;
  /* animation: fieldRotate 12s linear infinite; */
}

.line-4 {
  width: 60px;
  height: 30px;
  animation: fieldRotate 6s linear infinite reverse;
}

.magnetic-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, var(--secondary-color), var(--accent-color));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--secondary-color);
  animation: coreGlow 3s ease-in-out infinite;
}

/* Enhanced Electric Sparks */
.electric-spark {
  position: absolute;
  width: 40px;
  height: 40px;
  /* transition: all 2.5s ease-in-out; */
}

.spark-1 {
  top: 40%;
  left: 60%;
  animation: sparkFloat 6s ease-in-out infinite, sparkMove 20s ease-in-out infinite;
}

.spark-2 {
  top: 70%;
  right: 30%;
  animation: sparkFloat 8s ease-in-out infinite reverse, sparkMove2 24s ease-in-out infinite;
}

.spark-3 {
  bottom: 40%;
  left: 80%;
  animation: sparkFloat 7s ease-in-out infinite, sparkMove3 22s ease-in-out infinite;
}

.spark-line {
  position: absolute;
  width: 25px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--warning-color), transparent);
  transform-origin: left center;
  animation: sparkFlash 2.5s ease-in-out infinite;
  border-radius: 1px;
}

.spark-line:nth-child(1) {
  transform: rotate(0deg);
}

.spark-line:nth-child(2) {
  transform: rotate(45deg);
  animation-delay: 0.4s;
}

.spark-line:nth-child(3) {
  transform: rotate(-45deg);
  animation-delay: 0.8s;
}

.spark-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--warning-color), #d97706);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--warning-color);
  animation: sparkCenterGlow 2s ease-in-out infinite;
}

/* Enhanced Particles */
.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, var(--accent-color), var(--secondary-color));
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-color);
  transition: all 2s ease-in-out;
}

.particle-1 {
  top: 20%;
  left: 80%;
  animation: particleFloat1 18s linear infinite, particleMove 16s ease-in-out infinite;
}

.particle-2 {
  top: 50%;
  left: 5%;
  animation: particleFloat2 15s linear infinite, particleMove2 18s ease-in-out infinite;
}

.particle-3 {
  top: 80%;
  left: 70%;
  animation: particleFloat3 22s linear infinite, particleMove3 20s ease-in-out infinite;
}

.particle-4 {
  top: 30%;
  right: 10%;
  animation: particleFloat4 16s linear infinite, particleMove4 22s ease-in-out infinite;
}

.particle-5 {
  bottom: 40%;
  left: 40%;
  animation: particleFloat5 20s linear infinite, particleMove5 24s ease-in-out infinite;
}

.particle-6 {
  top: 10%;
  left: 50%;
  animation: particleFloat6 24s linear infinite, particleMove6 26s ease-in-out infinite;
}

.particle-7 {
  bottom: 60%;
  right: 20%;
  animation: particleFloat1 19s linear infinite reverse, particleMove 21s ease-in-out infinite;
}

.particle-8 {
  top: 70%;
  left: 15%;
  animation: particleFloat2 17s linear infinite reverse, particleMove2 23s ease-in-out infinite;
}

/* Enhanced Formulas */
.formula {
  position: absolute;
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  color: rgba(99, 102, 241, 0.5);
  user-select: none;
  transition: all 3s ease-in-out;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.formula-1 {
  top: 15%;
  right: 10%;
  animation: formulaFloat1 15s ease-in-out infinite, formulaMove 18s ease-in-out infinite;
}

.formula-2 {
  bottom: 25%;
  left: 15%;
  animation: formulaFloat2 17s ease-in-out infinite, formulaMove2 20s ease-in-out infinite;
}

.formula-3 {
  top: 60%;
  right: 25%;
  animation: formulaFloat3 19s ease-in-out infinite, formulaMove3 24s ease-in-out infinite;
}

.formula-4 {
  top: 35%;
  left: 75%;
  animation: formulaFloat4 21s ease-in-out infinite, formulaMove4 26s ease-in-out infinite;
}

.formula-5 {
  bottom: 15%;
  right: 50%;
  animation: formulaFloat5 23s ease-in-out infinite, formulaMove5 28s ease-in-out infinite;
}

.formula-6 {
  top: 80%;
  left: 80%;
  animation: formulaFloat1 20s ease-in-out infinite reverse, formulaMove 22s ease-in-out infinite;
}

.formula-7 {
  bottom: 50%;
  right: 5%;
  animation: formulaFloat2 18s ease-in-out infinite reverse, formulaMove2 25s ease-in-out infinite;
}

/* Enhanced Light Rays */
.light-ray {
  position: absolute;
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8), transparent);
  transform-origin: left center;
  transition: all 2.5s ease-in-out;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.ray-1 {
  top: 25%;
  left: 40%;
  animation: lightRay1 10s ease-in-out infinite, rayMove 18s ease-in-out infinite;
}

.ray-2 {
  top: 55%;
  right: 20%;
  animation: lightRay2 12s ease-in-out infinite, rayMove2 22s ease-in-out infinite;
}

.ray-3 {
  bottom: 35%;
  left: 60%;
  animation: lightRay3 14s ease-in-out infinite, rayMove3 25s ease-in-out infinite;
}

.ray-4 {
  top: 10%;
  right: 60%;
  animation: lightRay1 16s ease-in-out infinite reverse, rayMove 20s ease-in-out infinite;
}

/* Enhanced Solar System */
.solar-system {
  position: absolute;
  bottom: 10%;
  right: 10%;
  width: 120px;
  height: 120px;
  animation: solarFloat 18s ease-in-out infinite, solarMove 32s ease-in-out infinite;
  transition: all 3.5s ease-in-out;
}

.sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, var(--warning-color), #f59e0b);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 20px var(--warning-color);
  animation: sunGlow 4s ease-in-out infinite;
}

.planet-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-planet-1 {
  width: 70px;
  height: 70px;
  animation: planetOrbit1 10s linear infinite;
}

.orbit-planet-2 {
  width: 90px;
  height: 90px;
  animation: planetOrbit2 15s linear infinite;
}

.orbit-planet-3 {
  width: 110px;
  height: 110px;
  animation: planetOrbit1 20s linear infinite reverse;
}

.planet {
  position: absolute;
  border-radius: 50%;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.planet-1 {
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  box-shadow: 0 0 6px var(--primary-color);
}

.planet-2 {
  width: 5px;
  height: 5px;
  background: var(--secondary-color);
  box-shadow: 0 0 5px var(--secondary-color);
}

.planet-3 {
  width: 4px;
  height: 4px;
  background: var(--accent-color);
  box-shadow: 0 0 4px var(--accent-color);
}

/* DNA Helix */
.dna-helix {
  position: absolute;
  top: 20%;
  right: 5%;
  width: 60px;
  height: 150px;
  animation: dnaFloat 20s ease-in-out infinite, dnaMove 30s ease-in-out infinite;
}

.dna-strand {
  position: absolute;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    var(--primary-color) 0%,
    transparent 25%,
    var(--secondary-color) 50%,
    transparent 75%,
    var(--accent-color) 100%
  );
  border-radius: 1px;
}

.strand-1 {
  left: 0;
  animation: dnaRotate1 8s linear infinite;
}

.strand-2 {
  right: 0;
  animation: dnaRotate2 8s linear infinite;
}

/* Quantum Particles */
.quantum-field {
  position: absolute;
  top: 40%;
  left: 5%;
  width: 100px;
  height: 100px;
  animation: quantumFloat 25s ease-in-out infinite;
}

.quantum-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #ffffff, var(--primary-color));
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-color);
}

.q-1 {
  top: 20%;
  left: 20%;
  animation: quantumMove1 12s ease-in-out infinite;
}

.q-2 {
  top: 20%;
  right: 20%;
  animation: quantumMove2 14s ease-in-out infinite;
}

.q-3 {
  bottom: 20%;
  left: 20%;
  animation: quantumMove3 16s ease-in-out infinite;
}

.q-4 {
  bottom: 20%;
  right: 20%;
  animation: quantumMove4 18s ease-in-out infinite;
}

/* Energy Waves */
.energy-wave {
  position: absolute;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  animation: energyExpand 8s ease-in-out infinite;
}

.wave-energy-1 {
  top: 30%;
  left: 30%;
  animation-delay: 0s;
}

.wave-energy-2 {
  top: 30%;
  left: 30%;
  animation-delay: 2.67s;
}

.wave-energy-3 {
  top: 30%;
  left: 30%;
  animation-delay: 5.33s;
}

/* Enhanced Modern Header */
.header {
  position: fixed;
  top: 1rem;
  left: 50%;
transform: translateX(-50%) !important;
  z-index: 1000;

  width: 90%;
  max-width: 1200px;

  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);

  text-align: center;
  transition: all var(--transition-normal);
}


.header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

/* Modern Logo */
.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  transition: all var(--transition-normal);
  overflow: hidden;
}

.logo-icon:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.logo-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 60px;
  height: 60px;
  animation: logoRing1 4s linear infinite;
}

.ring-2 {
  width: 80px;
  height: 80px;
  animation: logoRing2 6s linear infinite reverse;
}

.ring-3 {
  width: 100px;
  height: 100px;
  animation: logoRing3 8s linear infinite;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 2px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text p {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

/* Modern Navigation */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-items {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gray-600);
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 12px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
  width: 80%;
}

/* Modern Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all var(--transition-normal);
}

.mobile-menu-btn:hover {
  background: var(--gray-100);
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
}

.line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--gray-600);
  border-radius: 1px;
  transition: all var(--transition-normal);
}

.line-1 {
  top: 0;
}

.line-2 {
  top: 50%;
  transform: translateY(-50%);
}

.line-3 {
  bottom: 0;
}

.mobile-menu-btn.active .line-1 {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active .line-2 {
  opacity: 0;
}

.mobile-menu-btn.active .line-3 {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Enhanced Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: calc( 20px); /* 1rem (header top) + 2.4rem (nav padding) + 20px (border radius) */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  height: 3px;
  background: rgba(99, 102, 241, 0.1);
  z-index: 1001;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}



/* Enhanced performance optimizations for reduced lag */
.reduced-motion * {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

.reduced-motion .physics-background {
  display: none !important;
}

/* Optimize GPU usage for better performance */
.class-card,
.contact-item,
.approach-item,
.header,
.btn,
.badge {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Reduce animation complexity on tablets */
@media (max-width: 1024px) and (min-width: 769px) {
  /* Hide some animations on tablets */
  .solar-system,
  .dna-helix,
  .quantum-field {
    /* display: none !important; */
  }
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
  .atom,
  .wave-container,
  .pendulum,
  .newtons-cradle,
  .magnetic-field,
  .electric-spark,
  .solar-system,
  .dna-helix,
  .quantum-field {
    animation-duration: 2s !important;
  }
  
  /* Hide half of the animations on mobile screens */
  .wave-container,
  .pendulum,
  .electric-spark,
  .solar-system,
  .dna-helix {
    /* display: none !important; */
  }
  
  /* Disable complex animations on mobile */
  .floating-element,
  .orbiting-elements,
  .photo-overlay-effects {
    /* display: none !important; */
  }
  
  /* Reduce hover effects on mobile */
  .class-card:hover,
  .contact-item:hover,
  .approach-item:hover,
  .nav-link:hover {
    /* transform: none !important; */
  }
}

/* Further optimize for very small screens */
@media (max-width: 480px) {
  .physics-background * {
    animation-duration: 1.5s !important;
  }
  
  /* Hide more complex elements */
  .energy-wave,
  .light-ray,
  .formula {
    /* display: none !important; */
  }
}

/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}

/* Optimize GPU usage */
.class-card,
.contact-item,
.approach-item,
.header {
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.05s ease;
  position: relative;
}

.progress-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
  animation: progressGlow 2s ease-in-out infinite;
}

/* Enhanced Hero Section */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 70%, rgba(99, 102, 241, 0.1), transparent),
    radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.1), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  animation: heroFadeIn 1s ease-out;
  position: relative;
  z-index: 2;
}

.hero-image {
  margin-bottom: 50px;
  display: flex;
  justify-content: center;
}

.photo-frame {
  position: relative;
  display: inline-block;
}

.teacher-photo {
  width: 260px;
  height: 300px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-2xl);
  border: 6px solid white;
  transition: all var(--transition-slow);
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.teacher-photo:hover {
  transform: scale(1.05) rotate(1deg);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.photo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-xl);
  transform: translate(-50%, -50%);
  opacity: 0.3;
  animation: photoGlow 4s ease-in-out infinite;
  z-index: 1;
}

.photo-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.photo-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: photoParticleFloat 8s ease-in-out infinite;
  box-shadow: 0 0 10px var(--primary-color);
}

.photo-particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.photo-particle:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.photo-particle:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.photo-particle:nth-child(4) {
  top: 40%;
  right: 10%;
  animation-delay: 6s;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 20px;
  animation: slideUp 0.8s ease-out 0.2s both;
  line-height: 1.2;
}

.title-word {
  display: inline-block;
  margin: 0 10px;
  animation: titleWordFloat 3s ease-in-out infinite;
}

.title-word:nth-child(1) {
  animation-delay: 0s;
}

.title-word:nth-child(2) {
  animation-delay: 1.5s;
}

.hero-subtitle {
  font-size: 28px;
  margin-bottom: 30px;
  animation: slideUp 0.8s ease-out 0.4s both;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.subtitle-highlight {
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
}

.subtitle-highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: underlineGlow 2s ease-in-out infinite;
}

.subtitle-text {
  color: var(--gray-600);
  font-weight: 500;
}

.hero-description {
  font-size: 20px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: slideUp 0.8s ease-out 0.6s both;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.8s both;
}

.badge {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 12px 20px;
  border-radius: var(--border-radius-full);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-normal);
  position: relative;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.badge:hover {
  transform: scale(1.05) translateY(-3px);
  background: rgba(99, 102, 241, 0.15);
  box-shadow: var(--shadow-lg);
}

.badge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: badgeGlow 3s ease-in-out infinite;
  z-index: -1;
}

.badge-star .badge-glow {
  animation-delay: 0s;
}

.badge-users .badge-glow {
  animation-delay: 0.75s;
}

.badge-award .badge-glow {
  animation-delay: 1.5s;
}

.badge-success .badge-glow {
  animation-delay: 2.25s;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  font-size: 14px;
}

.btn-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.btn-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: btnParticleFloat 3s ease-in-out infinite;
}

.btn-particle:nth-child(1) {
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.btn-particle:nth-child(2) {
  top: 60%;
  right: 30%;
  animation-delay: 1s;
}

.btn-particle:nth-child(3) {
  bottom: 30%;
  left: 60%;
  animation-delay: 2s;
}

.btn-primary-cta {
  background: var(--gradient-primary);
  color: white;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
}

.btn-primary-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary-cta {
  background: var(--gradient-success);
  color: white;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
}

.btn-secondary-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.4);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollIndicatorBounce 2s ease-in-out infinite;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 16px;
  background: rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
}

/* Enhanced Features Showcase */
.features-showcase {
  background: var(--gradient-primary);
  padding: 25px 0;
  overflow: hidden;
  position: relative;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-bg {
  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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.feature-text {
  position: absolute;
  color: white;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: featureShow 6s ease-in-out infinite;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feature-text:nth-child(2) {
  animation-delay: 0s;
}

.feature-text:nth-child(3) {
  animation-delay: 6s;
}

.feature-text:nth-child(4) {
  animation-delay: 12s;
}

.feature-text:nth-child(5) {
  animation-delay: 18s;
}

.feature-text:nth-child(6) {
  animation-delay: 24s;
}

.feature-text:nth-child(7) {
  animation-delay: 30s;
}

.feature-text:nth-child(8) {
  animation-delay: 36s;
}

.feature-text:nth-child(9) {
  animation-delay: 42s;
}

/* Enhanced Classes Section */
.classes {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(240, 245, 255, 0.6));
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-title-main {
  font-size: 42px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
  display: block;
}

.section-title-decoration {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 20px;
  color: var(--gray-600);
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.class-card {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  transition: all var(--transition-slow);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.class-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.02), rgba(139, 92, 246, 0.02));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.class-card:hover .card-background {
  opacity: 1;
}

.card-icon {
  position: relative;
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  color: white;
  font-size: 32px;
  transition: all var(--transition-slow);
}

.class-card:hover .card-icon {
  transform: scale(1.2) rotate(15deg);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

.icon-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: iconOrbit 8s linear infinite;
}

.class-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.class-card p {
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 30px;
  font-size: 16px;
}

.card-features {
  margin-bottom: 30px;
  text-align: right;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--gray-600);
  font-size: 15px;
}

.feature-item i {
  color: var(--success-color);
  margin-left: 12px;
  width: 20px;
}

.card-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: 2px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-2xl);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: cardGlow 4s ease-in-out infinite;
  z-index: -1;
}

/* Enhanced About Teacher Section with Beautiful Animations */
.about-teacher {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.8));
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
  align-items: start;
}

/* Responsive grid for teacher photos and info */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Teacher Profile with Beautiful Animation */
.teacher-profile {
  position: relative;
}

.profile-container {
  position: relative;
  height: 100%;
}

/* Animated Background Elements */
.profile-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 18px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.element-1 {
  top: 10%;
  left: 10%;
  animation: floatingElement1 8s ease-in-out infinite;
}

.element-2 {
  top: 20%;
  right: 15%;
  animation: floatingElement2 10s ease-in-out infinite;
}

.element-3 {
  top: 60%;
  left: 5%;
  animation: floatingElement3 12s ease-in-out infinite;
}

.element-4 {
  bottom: 30%;
  right: 10%;
  animation: floatingElement4 9s ease-in-out infinite;
}

.element-5 {
  bottom: 10%;
  left: 20%;
  animation: floatingElement5 11s ease-in-out infinite;
}

.element-6 {
  top: 40%;
  right: 5%;
  animation: floatingElement6 13s ease-in-out infinite;
}

/* Teacher Photo with Advanced Animation */
.teacher-photo-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  z-index: 2;
}



.photo-frame-advanced {
  position: relative;
  width: 280px;
  height: 550px;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.photo-border-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.border-segment {
  position: absolute;
  background: var(--gradient-primary);
}

.segment-1 {
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  animation: borderSegment1 4s ease-in-out infinite;
}

.segment-2 {
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  animation: borderSegment2 4s ease-in-out infinite 1s;
}

.segment-3 {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 4px;
  animation: borderSegment3 4s ease-in-out infinite 2s;
}

.segment-4 {
  bottom: 0;
  left: 0;
  width: 4px;
  height: 100%;
  animation: borderSegment4 4s ease-in-out infinite 3s;
}

.photo-inner-glow {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: var(--gradient-primary);
  border-radius: 16px;
  opacity: 0.1;
  animation: photoInnerGlow 3s ease-in-out infinite;
}

.teacher-photo-about {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  position: relative;
  z-index: 2;
  transition: all var(--transition-slow);
}

.teacher-photo-about:hover {
  transform: scale(1.05);
}

.photo-overlay-effects {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

.effect-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-color);
}

.p-1 {
  top: 15%;
  left: 15%;
  animation: effectParticle1 6s ease-in-out infinite;
}

.p-2 {
  top: 25%;
  right: 20%;
  animation: effectParticle2 8s ease-in-out infinite;
}

.p-3 {
  bottom: 30%;
  left: 10%;
  /* animation: effectParticle3 7s ease-in-out infinite; */
}

.p-4 {
  bottom: 20%;
  right: 15%;
  animation: effectParticle4 9s ease-in-out infinite;
}

.p-5 {
  top: 50%;
  left: 5%;
  animation: effectParticle5 5s ease-in-out infinite;
}

/* Orbiting Elements */
.orbiting-elements {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 320px;
  height: 320px;
  animation: orbitRing1 20s linear infinite;
}

.ring-2 {
  width: 380px;
  height: 380px;
  animation: orbitRing2 25s linear infinite reverse;
}

.ring-3 {
  width: 440px;
  height: 440px;
  animation: orbitRing3 30s linear infinite;
}

.orbit-item {
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.item-1 {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.item-2 {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.item-3 {
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
}

.item-4 {
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.item-5 {
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.item-6 {
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
}

/* Animated Info Cards */
.info-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  z-index: 2;
  position: relative;
}

.info-card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 120px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-card .card-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.card-content {
  text-align: center;
}

.card-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark-color);
  display: block;
  margin-bottom: 4px;
}

.card-label {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 500;
}

.card-glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 16px;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: cardGlowEffect 4s ease-in-out infinite;
  z-index: -1;
}

.card-1 .card-glow-effect {
  animation-delay: 0s;
}

.card-2 .card-glow-effect {
  animation-delay: 1.33s;
}

.card-3 .card-glow-effect {
  animation-delay: 2.66s;
}

/* Teacher Information */
.teacher-info {
  position: relative;
  z-index: 2;
}

.about-card {
  background: white;
  padding: 50px;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.card-header h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 10px;
}

.teacher-title {
  font-size: 20px;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 30px;
}

.teacher-description p {
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 20px;
  font-size: 17px;
}

.teaching-approach {
  margin-top: 40px;
}

.teaching-approach h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 25px;
  text-align: center;
}

.approach-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.approach-item {
  display: flex;
  align-items: center;
  color: var(--gray-600);
  font-size: 16px;
  padding: 12px;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
}

.approach-item:hover {
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(10px);
}

.approach-item i {
  color: var(--primary-color);
  margin-left: 15px;
  width: 25px;
  font-size: 18px;
}

/* Enhanced Contact Section */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--light-color), #e0e7ff);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-card {
  background: white;
  padding: 50px;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 40px;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-item:hover {
  transform: translateX(10px);
  background: rgba(99, 102, 241, 0.02);
  padding: 15px;
  border-radius: var(--border-radius);
  margin: 0 -15px 15px;
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-left: 20px;
  flex-shrink: 0;
  transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-details h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
}

.contact-details p {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 4px;
}

.phone-number {
  cursor: pointer;
  transition: all var(--transition-normal);
}

.phone-number:hover {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-form-card {
  background: white;
  padding: 50px;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-form-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 40px;
  text-align: center;
}

.form-group {
  margin-bottom: 30px;
  position: relative;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
  font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  font-size: 15px;
  transition: all var(--transition-normal);
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
  margin-top: 35px;
}

.form-group input:focus + .input-glow,
.form-group select:focus + .input-glow,
.form-group textarea:focus + .input-glow {
  opacity: 0.3;
  animation: inputGlow 2s ease-in-out infinite;
}

.form-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
}

.quick-contact {
  margin-top: 80px;
  text-align: center;
  background: white;
  padding: 50px;
  border-radius: var(--border-radius-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.quick-contact h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 30px;
}

.quick-contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-normal);
  color: white;
  position: relative;
  overflow: hidden;
}

.phone-btn {
  background: var(--gradient-success);
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.telegram-btn {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.facebook-btn {
  background: linear-gradient(135deg, #1877f2, #166fe5);
}

.quick-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-xl);
}

.btn-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: var(--border-radius-lg);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: btnGlow 3s ease-in-out infinite;
  z-index: -1;
}

.quick-btn i {
  font-size: 18px;
}

/* Enhanced Support Section */
.support {
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.support-card {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  padding: 60px;
  border-radius: var(--border-radius-2xl);
  text-align: center;
  box-shadow: var(--shadow-2xl);
  border: 1px solid rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.support-icon-container {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.support-icon {
  font-size: 60px;
  color: var(--primary-color);
  animation: supportIconFloat 3s ease-in-out infinite;
}

.support-icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: supportIconGlow 4s ease-in-out infinite;
  z-index: -1;
}

.support-card h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 20px;
}

.support-card p {
  font-size: 20px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 40px;
}

.support-btn {
  padding: 18px 36px;
  font-size: 18px;
  font-weight: 600;
  border-radius: var(--border-radius-lg);
}

/* Enhanced Footer */
.footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--dark-color), var(--gray-800));
  opacity: 0.9;
}

.footer-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo-icon {
  position: relative;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.footer-logo h3 {
  font-size: 24px;
  font-weight: 600;
}

.footer p {
  color: var(--gray-400);
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-400);
  text-decoration: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  transition: all var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

.copyright {
  font-size: 14px;
  color: var(--gray-500);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.4s ease-out;
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.4s ease-out;
}

.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease-out;
}

.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease-out;
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Keyframe Animations */
@keyframes nucleusPulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
}

@keyframes electronGlow {
  0%,
  100% {
    box-shadow: 0 0 8px var(--warning-color);
  }
  50% {
    box-shadow: 0 0 15px var(--warning-color);
  }
}

@keyframes atomGlowPulse {
  0%,
  100% {
    opacity: 0.1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes atomFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(180deg);
  }
}

@keyframes atomMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(60px, -40px);
  }
  50% {
    transform: translate(-30px, 50px);
  }
  75% {
    transform: translate(40px, 30px);
  }
}

@keyframes atomMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-50px, 35px);
  }
  66% {
    transform: translate(35px, -45px);
  }
}

@keyframes atomMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, -30px);
  }
}

@keyframes orbitRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes waveFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes waveMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-70px, 40px);
  }
}

@keyframes waveMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, -30px);
  }
}

@keyframes waveMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 60px);
  }
}

@keyframes wavePulse {
  0%,
  100% {
    stroke-width: 3;
    opacity: 0.7;
  }
  50% {
    stroke-width: 5;
    opacity: 1;
  }
}

@keyframes pendulumSwing {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(25deg);
  }
  75% {
    transform: rotate(-25deg);
  }
}

@keyframes pendulumMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -20px);
  }
}

@keyframes pendulumMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-35px, 25px);
  }
}

@keyframes pendulumMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, 35px);
  }
}

@keyframes bobGlow {
  0%,
  100% {
    box-shadow: 0 0 12px var(--danger-color);
  }
  50% {
    box-shadow: 0 0 20px var(--danger-color);
  }
}

@keyframes shadowMove {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
  }
  25% {
    transform: translateX(-30%) scaleX(1.2);
  }
  75% {
    transform: translateX(-70%) scaleX(1.2);
  }
}

@keyframes cradleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes cradleMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60px, -30px);
  }
}

@keyframes cradleBall1 {
  0%,
  40%,
  100% {
    transform: rotate(0deg);
  }
  10%,
  30% {
    transform: rotate(-30deg);
  }
}

@keyframes cradleBallMiddle {
  0%,
  100% {
    transform: rotate(0deg);
  }
}

@keyframes cradleBall5 {
  0%,
  40%,
  100% {
    transform: rotate(0deg);
  }
  50%,
  70% {
    transform: rotate(30deg);
  }
}

@keyframes ballGlow {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(100, 116, 139, 0.6);
  }
  50% {
    box-shadow: 0 0 15px rgba(100, 116, 139, 0.8);
  }
}

@keyframes magneticPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes magneticMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, -40px);
  }
}

@keyframes magneticMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, 30px);
  }
}

@keyframes fieldRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes coreGlow {
  0%,
  100% {
    box-shadow: 0 0 15px var(--secondary-color);
  }
  50% {
    box-shadow: 0 0 25px var(--secondary-color);
  }
}

@keyframes sparkFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes sparkMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, 30px);
  }
}

@keyframes sparkMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(35px, -25px);
  }
}

@keyframes sparkMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, -40px);
  }
}

@keyframes sparkFlash {
  0%,
  90%,
  100% {
    opacity: 0;
    transform: scaleX(0);
  }
  5%,
  85% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes sparkCenterGlow {
  0%,
  100% {
    box-shadow: 0 0 12px var(--warning-color);
  }
  50% {
    box-shadow: 0 0 20px var(--warning-color);
  }
}

@keyframes particleFloat1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -40px);
  }
  50% {
    transform: translate(-20px, -60px);
  }
  75% {
    transform: translate(-40px, -20px);
  }
}

@keyframes particleFloat2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(40px, 30px);
  }
  66% {
    transform: translate(-30px, 50px);
  }
}

@keyframes particleFloat3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(50px, -30px);
  }
}

@keyframes particleFloat4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-35px, 40px);
  }
  75% {
    transform: translate(25px, 20px);
  }
}

@keyframes particleFloat5 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, -35px);
  }
}

@keyframes particleFloat6 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, 45px);
  }
  66% {
    transform: translate(-25px, -30px);
  }
}

@keyframes particleMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(80px, -60px);
  }
}

@keyframes particleMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-70px, 50px);
  }
}

@keyframes particleMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60px, 70px);
  }
}

@keyframes particleMove4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-80px, -40px);
  }
}

@keyframes particleMove5 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(90px, 30px);
  }
}

@keyframes particleMove6 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-60px, -70px);
  }
}

@keyframes formulaFloat1 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes formulaFloat2 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(-3deg);
  }
}

@keyframes formulaFloat3 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-35px) rotate(4deg);
  }
}

@keyframes formulaFloat4 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(-2deg);
  }
}

@keyframes formulaFloat5 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-40px) rotate(6deg);
  }
}

@keyframes formulaMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, 40px);
  }
}

@keyframes formulaMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60px, -30px);
  }
}

@keyframes formulaMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-40px, -50px);
  }
}

@keyframes formulaMove4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(70px, 35px);
  }
}

@keyframes formulaMove5 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-60px, -25px);
  }
}

@keyframes lightRay1 {
  0%,
  100% {
    transform: rotate(0deg) scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(15deg) scaleX(1.2);
    opacity: 1;
  }
}

@keyframes lightRay2 {
  0%,
  100% {
    transform: rotate(0deg) scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(-10deg) scaleX(1.1);
    opacity: 1;
  }
}

@keyframes lightRay3 {
  0%,
  100% {
    transform: rotate(0deg) scaleX(1);
    opacity: 0.8;
  }
  50% {
    transform: rotate(20deg) scaleX(1.3);
    opacity: 1;
  }
}

@keyframes rayMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(40px, -30px);
  }
}

@keyframes rayMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, 25px);
  }
}

@keyframes rayMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(35px, 40px);
  }
}

@keyframes solarFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(180deg);
  }
}

@keyframes solarMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-60px, 40px);
  }
}

@keyframes sunGlow {
  0%,
  100% {
    box-shadow: 0 0 20px var(--warning-color);
  }
  50% {
    box-shadow: 0 0 30px var(--warning-color);
  }
}

@keyframes planetOrbit1 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes planetOrbit2 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes dnaFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes dnaMove {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-30px, 40px);
  }
}

@keyframes dnaRotate1 {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}

@keyframes dnaRotate2 {
  0% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(540deg);
  }
}

@keyframes quantumFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

@keyframes quantumMove1 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, -20px);
  }
  50% {
    transform: translate(-20px, -30px);
  }
  75% {
    transform: translate(-30px, 20px);
  }
}

@keyframes quantumMove2 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-30px, -20px);
  }
  50% {
    transform: translate(20px, -30px);
  }
  75% {
    transform: translate(30px, 20px);
  }
}

@keyframes quantumMove3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(30px, 20px);
  }
  50% {
    transform: translate(-20px, 30px);
  }
  75% {
    transform: translate(-30px, -20px);
  }
}

@keyframes quantumMove4 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-30px, 20px);
  }
  50% {
    transform: translate(20px, 30px);
  }
  75% {
    transform: translate(30px, -20px);
  }
}

@keyframes energyExpand {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes logoRing1 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes logoRing2 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes logoRing3 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes progressGlow {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleWordFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes underlineGlow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 15px var(--primary-color);
  }
}

@keyframes photoGlow {
  0%,
  100% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

@keyframes photoParticleFloat {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px);
    opacity: 1;
  }
}

@keyframes badgeGlow {
  0%,
  90%,
  100% {
    opacity: 0;
  }
  5%,
  85% {
    opacity: 0.3;
  }
}

@keyframes btnParticleFloat {
  0%,
  100% {
    transform: translateY(0px);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px);
    opacity: 1;
  }
}

@keyframes scrollIndicatorBounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

@keyframes featureShow {
  0%,
  80%,
  100% {
    opacity: 0;
    transform: translateY(30px);
  }
  10%,
  70% {
    opacity: 1;
    transform: translateY(0px);
  }
}

@keyframes iconOrbit {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes cardGlow {
  0%,
  90%,
  100% {
    opacity: 0;
  }
  5%,
  85% {
    opacity: 0.1;
  }
}

@keyframes floatingElement1 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes floatingElement2 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(-180deg);
  }
}

@keyframes floatingElement3 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(180deg);
  }
}

@keyframes floatingElement4 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(-180deg);
  }
}

@keyframes floatingElement5 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-35px) rotate(180deg);
  }
}

@keyframes floatingElement6 {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-18px) rotate(-180deg);
  }
}

@keyframes borderSegment1 {
  0%,
  100% {
    width: 0%;
  }
  25%,
  75% {
    width: 100%;
  }
}

@keyframes borderSegment2 {
  0%,
  100% {
    height: 0%;
  }
  25%,
  75% {
    height: 100%;
  }
}

@keyframes borderSegment3 {
  0%,
  100% {
    width: 0%;
  }
  25%,
  75% {
    width: 100%;
  }
}

@keyframes borderSegment4 {
  0%,
  100% {
    height: 0%;
  }
  25%,
  75% {
    height: 100%;
  }
}

@keyframes photoInnerGlow {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

@keyframes effectParticle1 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(20px, -15px);
    opacity: 1;
  }
}

@keyframes effectParticle2 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(-15px, 20px);
    opacity: 1;
  }
}

@keyframes effectParticle3 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(25px, 10px);
    opacity: 1;
  }
}

@keyframes effectParticle4 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(-10px, -25px);
    opacity: 1;
  }
}

@keyframes effectParticle5 {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.7;
  }
  50% {
    transform: translate(30px, -5px);
    opacity: 1;
  }
}

@keyframes orbitRing1 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitRing2 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbitRing3 {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes cardGlowEffect {
  0%,
  90%,
  100% {
    opacity: 0;
  }
  5%,
  85% {
    opacity: 0.1;
  }
}

@keyframes inputGlow {
  0%,
  100% {
    box-shadow: 0 0 5px var(--primary-color);
  }
  50% {
    box-shadow: 0 0 15px var(--primary-color);
  }
}

@keyframes btnGlow {
  0%,
  90%,
  100% {
    opacity: 0;
  }
  5%,
  85% {
    opacity: 0.3;
  }
}

@keyframes supportIconFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes supportIconGlow {
  0%,
  100% {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 50px;

  }

  /* Mobile Header */
  .nav-wrapper {
    padding: 1rem 0;
  }

  /* Mobile Progress Bar - Reduced height and adjusted position */
  .scroll-progress {
    top: 70px;
    height: 3px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 12px;
  }

  .logo-text h1 {
    font-size: 20px;
  }

  .logo-text p {
    font-size: 12px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 16px 16px;
    padding: 20px;
  }

  .nav-menu.active {
    display: block;
  }

  .nav-items {
    flex-direction: column;
    gap: 15px;
  }

  .nav-link {
    padding: 15px 50px;
    border-radius: 12px;
    justify-content: flex-start;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Mobile Hero */
  .hero {
    padding: 80px 0 60px;
    min-height: auto;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 8px;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .teacher-photo {
    width: 200px;
    height: 300px;
  }

  .hero-badges {
    gap: 12px;
    margin-bottom: 40px;
  }

  .badge {
    padding: 10px 16px;
    font-size: 13px;
    gap: 8px;
  }

  .hero-actions {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .btn-primary-cta,
  .btn-secondary-cta {
    padding: 14px 28px;
    font-size: 16px;
    width: 100%;
    max-width: 280px;
  }

  /* Mobile Features */
  .features-showcase {
    height: 60px;
    padding: 20px 0;
  }

  .feature-text {
    font-size: 16px;
  }

  /* Mobile Sections */
  .section-title-main {
    font-size: 28px;
  }

  .section-header p {
    font-size: 16px;
    padding: 0 10px;
  }

  /* Mobile About */
  .about-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .teacher-photo-container {
    margin-bottom: 30px;
  }

  .photo-frame-advanced {
    width: 220px;
    height: 380px;
  }

  .info-cards {
    gap: 15px;
  }

  .info-card {
    min-width: 100px;
    padding: 15px;
  }

  .card-number {
    font-size: 20px;
  }

  .card-label {
    font-size: 11px;
  }

  .about-card {
    padding: 30px 20px;
  }

  .card-header h3 {
    font-size: 24px;
  }

  .teacher-title {
    font-size: 16px;
  }

  .teacher-description p {
    font-size: 15px;
  }

  .teaching-approach h4 {
    font-size: 18px;
  }

  .approach-item {
    font-size: 14px;
    padding: 10px;
  }

  /* Mobile Classes */
  .classes-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .class-card {
    padding: 30px 20px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 20px;
  }

  .class-card h3 {
    font-size: 22px;
  }

  .class-card p {
    font-size: 14px;
  }

  .feature-item {
    font-size: 13px;
  }

  /* Mobile Contact */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-card,
  .contact-form-card {
    padding: 30px 20px;
  }

  .contact-card h3,
  .contact-form-card h3 {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .contact-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
    margin-left: 15px;
  }

  .contact-details h4 {
    font-size: 16px;
  }

  .contact-details p {
    font-size: 14px;
  }

  .form-group {
    margin-bottom: 25px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px;
    font-size: 14px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .form-submit-btn {
    padding: 15px;
    font-size: 16px;
  }

  .quick-contact {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .quick-contact h3 {
    font-size: 22px;
  }

  .quick-contact-buttons {
    gap: 15px;
    flex-direction: column;
  }

  .quick-btn {
    padding: 12px 24px;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Mobile Support */
  .support-card {
    padding: 40px 20px;
  }

  .support-icon {
    font-size: 48px;
  }

  .support-card h3 {
    font-size: 24px;
  }

  .support-card p {
    font-size: 16px;
  }

  .support-btn {
    padding: 15px 30px;
    font-size: 16px;
    width: 100%;
    max-width: 280px;
  }

  /* Mobile Footer */
  .footer {
    padding: 40px 0 20px;
  }

  .footer-logo h3 {
    font-size: 20px;
  }

  .footer p {
    font-size: 14px;
  }

  .social-links {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .social-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  /* Mobile Physics Background - Reduced Animations */
  .atom {
    width: 60px;
    height: 60px;
  }

  .atom-1,
  .atom-2,
  .atom-3 {
    animation-duration: 3s, 5s;
  }

  /* Enhanced Mobile Animation Reductions */
  .loading-atom,
  .loading-orbit,
  .loading-electron {
    animation-duration: 0.8s !important;
  }

  .nucleus,
  .electron,
  .pendulum-bob,
  .ball,
  .magnetic-core,
  .spark-center,
  .particle,
  .planet,
  .sun {
    animation-duration: 1s !important;
  }

  .orbit-1,
  .orbit-2,
  .orbit-3,
  .planet-orbit {
    animation-duration: 2s !important;
  }

  .wave-container,
  .pendulum,
  .newtons-cradle,
  .magnetic-field,
  .electric-spark,
  .solar-system,
  .dna-helix,
  .quantum-field {
    animation-duration: 2.5s !important;
  }

  /* Reduce glow effects on mobile */
  .atom-glow,
  .photo-glow,
  .badge-glow,
  .card-glow,
  .support-icon-glow {
    animation-duration: 1.5s !important;
  }

  /* Simplify complex animations */
  .floating-element,
  .orbiting-elements,
  .photo-overlay-effects {
    display: none;
  }

  /* Reduce hover effects on mobile */
  .class-card:hover,
  .contact-item:hover,
  .approach-item:hover,
  .nav-link:hover {
    transform: none !important;
  }

  .nucleus {
    width: 6px;
    height: 6px;
  }

  .orbit-1 {
    width: 50px;
    height: 50px;
  }

  .orbit-2 {
    width: 35px;
    height: 35px;
  }

  .orbit-3 {
    width: 60px;
    height: 18px;
  }

  .electron {
    width: 3px;
    height: 3px;
  }

  .wave-container {
    width: 150px;
    height: 30px;
  }

  .pendulum {
    height: 80px;
  }

  .pendulum-bob {
    width: 12px;
    height: 12px;
  }

  .newtons-cradle {
    width: 100px;
    height: 70px;
  }

  .ball {
    width: 12px;
    height: 12px;
  }

  .magnetic-field {
    width: 100px;
    height: 100px;
  }

  .electric-spark {
    width: 25px;
    height: 25px;
  }

  .particle {
    width: 4px;
    height: 4px;
  }

  .formula {
    font-size: 12px;
  }

  .light-ray {
    width: 80px;
  }

  .solar-system {
    width: 80px;
    height: 80px;
  }

  .dna-helix {
    width: 40px;
    height: 100px;
  }

  .quantum-field {
    width: 60px;
    height: 60px;
  }

  .energy-wave {
    width: 120px;
    height: 120px;
  }

  /* Hide some complex animations on mobile for performance */
  .floating-element,
  .orbiting-elements,
  .photo-overlay-effects {
    display: none;
  }

  /* Reduce animation complexity */
  .orbit-ring,
  .border-segment {
    animation-duration: 4s;
  }

  /* Simplify some effects */
  .photo-frame-advanced {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .class-card:hover,
  .contact-item:hover,
  .approach-item:hover {
    transform: none;
  }

  /* Mobile scroll animations - reduced motion */
  .scroll-animate,
  .scroll-animate-left,
  .scroll-animate-right,
  .scroll-animate-scale {
            transition-duration: 0.3s;
  }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-description {
    font-size: 14px;
  }

  .teacher-photo {
    width: 160px;
    height: 240px;
  }

  .badge {
    padding: 8px 12px;
    font-size: 12px;
  }

  .section-title-main {
    font-size: 24px;
  }

  .photo-frame-advanced {
    width: 180px;
    height: 300px;
  }

  .info-card {
    min-width: 80px;
    padding: 12px;
  }

  .card-number {
    font-size: 16px;
  }

  .card-label {
    font-size: 10px;
  }

  .about-card,
  .contact-card,
  .contact-form-card {
    padding: 20px 15px;
  }

  .class-card {
    padding: 25px 15px;
  }

  .card-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .quick-contact,
  .support-card {
    padding: 30px 15px;
  }

  /* Further reduce physics animations on very small screens */
  .atom,
  .wave-container,
  .pendulum,
  .newtons-cradle,
  .magnetic-field,
  .electric-spark,
  .solar-system,
  .dna-helix,
  .quantum-field {
    animation-duration: 6s;
  }

  /* Enhanced progress bar for very small screens */
  .scroll-progress {
    top: 65px;
    height: 2px;
  }

  /* Hide more complex elements */
  .energy-wave,
  .light-ray,
  .formula,
  .light-ray {
    /* display: none; */
  }

  /* Hide most animations on very small screens - only keep atom and magnetic field */
  /* .wave-container,
  .pendulum,
  .newtons-cradle,
  .electric-spark,
  .solar-system,
  .dna-helix,
  .quantum-field,
  .particle,
  .formula {
  } */

  /* Disable most animations on very small screens for better performance */
  .physics-background * {
    animation-duration: 8s !important;
  }

  .loading-screen * {
    animation-duration: 2s !important;
  }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    text-align: right;
  }

  .hero-image {
    margin-bottom: 0;
  }

  .teacher-photo {
    width: 180px;
    height: 270px;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .hero-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .hero-badges {
    gap: 10px;
    margin-bottom: 25px;
  }

  .badge {
    padding: 6px 12px;
    font-size: 11px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 15px;
  }

  .btn-primary-cta,
  .btn-secondary-cta {
    padding: 12px 20px;
    font-size: 14px;
    width: auto;
  }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .teacher-photo,
  .teacher-photo-about {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    height: 300px;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .physics-background {
    display: none;
  }

  .scroll-animate,
  .scroll-animate-left,
  .scroll-animate-right,
  .scroll-animate-scale {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  .physics-background,
  .header,
  .scroll-progress,
  .hero-scroll-indicator,
  .features-showcase,
  .quick-contact,
  .support,
  .footer {
    display: none;
  }

  .hero,
  .about-teacher,
  .classes,
  .contact-section {
    page-break-inside: avoid;
    padding: 20px 0;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.4;
  }

  .section-title-main {
    font-size: 18pt;
    color: black;
  }

  .hero-title {
    font-size: 24pt;
    color: black;
  }

  .btn,
  .quick-btn {
    border: 1px solid black;
    background: white;
    color: black;
  }
}

/* Header Styles */
.dashboard-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.logo-text h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dashboard-dark);
    margin: 0;
}

.logo-text p {
    font-size: 14px;
    color: var(--dashboard-gray-600);
    margin: 0;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    color: var(--dashboard-dark);
    font-size: 14px;
}

.user-grade {
    font-size: 12px;
    color: var(--dashboard-gray-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    color: var(--dashboard-gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.notification-btn:hover {
    background: var(--dashboard-gray-100);
    color: var(--dashboard-primary);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--dashboard-danger);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--dashboard-gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--dashboard-gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.logout-btn:hover {
    background: var(--dashboard-gray-50);
    border-color: var(--dashboard-primary);
    color: var(--dashboard-primary);
}

/* Main Content */
.dashboard-main {
    padding: 2rem 0;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
}

.welcome-card {
    background: white;
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.welcome-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--dashboard-dark);
    margin-bottom: 0.5rem;
}

.welcome-content p {
    color: var(--dashboard-gray-600);
    margin-bottom: 1.5rem;
    font-size: 16px;
}

.progress-overview {
    max-width: 300px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-label {
    font-size: 14px;
    color: var(--dashboard-gray-600);
    min-width: 100px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--dashboard-gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-value {
    font-weight: 600;
    color: var(--dashboard-primary);
    font-size: 14px;
}

.welcome-illustration {
    position: relative;
    width: 120px;
    height: 120px;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.element {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--dashboard-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dashboard-primary);
    font-size: 18px;
    animation: float 3s ease-in-out infinite;
}

.element-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.element-2 {
    top: 0;
    right: 0;
    animation-delay: 1s;
}

.element-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Stats Section */
.stats-section {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 1rem;
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dashboard-dark);
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: var(--dashboard-gray-600);
    font-size: 14px;
    margin-bottom: 0.75rem;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 12px;
    font-weight: 500;
}

.stat-trend.positive {
    color: var(--dashboard-success);
}

.stat-trend.neutral {
    color: var(--dashboard-gray-500);
}

/* Subscription Section */
.subscription-section {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dashboard-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--dashboard-gray-600);
    font-size: 16px;
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.subscription-card {
    background: white;
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.subscription-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.subscription-card.basic {
    border-color: var(--dashboard-gray-200);
}

.subscription-card.popular {
    border-color: var(--dashboard-primary);
    transform: scale(1.05);
}

.subscription-card.premium {
    border-color: var(--dashboard-secondary);
}

.popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    font-size: 12px;
    font-weight: 600;
}

.card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 1rem;
}

.subscription-card.premium .plan-icon {
    background: var(--gradient-warning);
}

.card-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dashboard-dark);
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--dashboard-gray-600);
    font-size: 14px;
}

.price-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--dashboard-gray-200);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 16px;
    color: var(--dashboard-gray-600);
}

.amount {
    font-size: 48px;
    font-weight: 700;
    color: var(--dashboard-dark);
}

.period {
    color: var(--dashboard-gray-600);
    font-size: 14px;
}

.discount {
    background: var(--gradient-success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.features-list {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 14px;
    color: var(--dashboard-gray-700);
}

.feature i {
    color: var(--dashboard-success);
    font-size: 16px;
}

.subscribe-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.subscription-card.premium .subscribe-btn {
    background: var(--gradient-warning);
}

/* Lessons Section */
.lessons-section {
    margin-bottom: 3rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tab-btn {
    background: none;
    border: 1px solid var(--dashboard-gray-300);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    color: var(--dashboard-gray-600);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--dashboard-primary);
    border-color: var(--dashboard-primary);
    color: white;
}

.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    
}

.lesson-card {
    background: white;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.lesson-card.locked {
    opacity: 0.7;
}

.lesson-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.lesson-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay,
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    opacity: 0;
    transition: var(--transition);
}

.lesson-card:hover .play-overlay,
.lesson-card:hover .lock-overlay {
    opacity: 1;
}

.play-overlay i,
.lock-overlay i {
    font-size: 48px;
    margin-bottom: 0.5rem;
}

.lock-overlay span {
    font-size: 14px;
    font-weight: 500;
}

.lesson-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 12px;
}

.lesson-content {
    padding: 1.5rem;
}

.lesson-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dashboard-dark);
    margin-bottom: 0.5rem;
}

.lesson-content p {
    color: var(--dashboard-gray-600);
    font-size: 14px;
    margin-bottom: 1rem;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 12px;
    color: var(--dashboard-gray-500);
}

.lesson-level,
.lesson-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lesson-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 12px;
    color: var(--dashboard-gray-600);
}

.lesson-progress .progress-bar {
    flex: 1;
    height: 4px;
}

.lesson-actions {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: var(--gradient-primary);
    color: white;
    flex: 1;
}

.action-btn.secondary {
    background: var(--dashboard-gray-100);
    color: var(--dashboard-gray-600);
    width: 40px;
    justify-content: center;
}

.action-btn:hover {
    transform: translateY(-1px);
}

/* Quick Actions Section */
.quick-actions-section {
    margin-bottom: 3rem;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.quick-action-card {
    background: white;
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: var(--transition);
}

.quick-action-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin: 0 auto 1rem;
}

.quick-action-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dashboard-dark);
    margin-bottom: 0.5rem;
}

.quick-action-card p {
    color: var(--dashboard-gray-600);
    font-size: 14px;
    margin-bottom: 1.5rem;
}

.quick-action-card .action-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius-2xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--dashboard-gray-200);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dashboard-dark);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dashboard-gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--dashboard-gray-100);
    color: var(--dashboard-gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.selected-plan {
    background: var(--dashboard-gray-50);
    border-radius: var(--border-radius-lg);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.plan-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-summary h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dashboard-dark);
    margin: 0;
}

.plan-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--dashboard-primary);
}

.payment-methods h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dashboard-dark);
    margin-bottom: 1rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--dashboard-gray-200);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover,
.payment-option:has(input:checked) {
    border-color: var(--dashboard-primary);
    background: rgba(99, 102, 241, 0.05);
}

.payment-option input {
    margin-left: 0.75rem;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--dashboard-dark);
}

.option-content i {
    font-size: 18px;
    color: var(--dashboard-primary);
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dashboard-gray-700);
}

.form-group input {
    padding: 0.75rem;
    border: 2px solid var(--dashboard-gray-200);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--dashboard-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--dashboard-gray-200);
}

.btn-cancel {
    flex: 1;
    background: var(--dashboard-gray-100);
    color: var(--dashboard-gray-700);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.btn-pay {
    flex: 2;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cancel:hover,
.btn-pay:hover {
    transform: translateY(-1px);
}

/* Success Modal */
.modal-content.success {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    margin: 0 auto 1.5rem;
}

.modal-content.success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dashboard-dark);
    margin-bottom: 1rem;
}

.modal-content.success p {
    color: var(--dashboard-gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-continue {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    font-weight: 600;
}

.btn-continue:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 50px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .user-section {
        justify-content: space-between;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .subscription-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .subscription-card.popular {
        transform: none;
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    /* Reduce physics animations on mobile */
    .physics-background .atom {
        animation-duration: 4s;
    }
    
    .physics-background .particle {
        animation-duration: 6s;
    }
    
    .physics-background .formula {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dashboard-main {
        padding: 1rem 0;
    }
    
    .welcome-card,
    .stat-card,
    .subscription-card,
    .lesson-card,
    .quick-action-card {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .welcome-content h2 {
        font-size: 20px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .subscription-card .amount {
        font-size: 36px;
    }
    
    .lesson-thumbnail {
        height: 150px;
    }
    
    .floating-elements {
        display: none;
    }
}
/* ملف CSS الرئيسي */
.main {
    font-family: 'Tajawal', sans-serif;
    min-height: 100vh;
    padding: 2rem 0;
    direction: rtl;

}

.exam-page {
    max-width: 800px;
    margin: 0 auto;
    background-color: #f8f9fa;

}

.ash {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-top: 8rem;
}

h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    padding-top: 1rem;
    border-bottom: 2px solid #eee;
}

.question-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.question-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 1.2rem;
}

.option-label {
    display: block;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: default;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.option-label.correct {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.option-label.incorrect {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.option-label input[type="radio"] {
    margin-left: 10px;
    cursor: default;
}

.not-answered {
    color: #dc3545;
    font-weight: 500;
    margin-top: 0.8rem;
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.btn-primary {
    background-color: #3490dc;
    border-color: #3490dc;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: #227dc7;
    border-color: #2176bd;
    transform: translateY(-2px);
}

.btn-primary i {
    margin-right: 8px;
}

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .container {
        /* padding: 1.5rem; */
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .question-container {
        padding: 1rem;
    }
    
    .option-label {
        padding: 0.6rem 0.8rem;
    }
}

/* تأثيرات إضافية */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-container {
    animation: fadeIn 0.5s ease forwards;
}

.question-container:nth-child(odd) {
    animation-delay: 0.1s;
}

.question-container:nth-child(even) {
    animation-delay: 0.2s;
}
/*  */