:root {
  --primary-teal: #006b7d;
  --secondary-emerald: #00a693;
  --electric-blue: #00d9ff;
  --accent-coral: #ff6b6b;
  --accent-amber: #ffb627;
  --deep-navy: #0f1419;
  --pearl-white: #fdfefe;
  --sage-green: #95b8a3;
  --aurora-gradient: linear-gradient(
    45deg,
    var(--primary-teal),
    var(--secondary-emerald),
    var(--electric-blue),
    var(--accent-coral)
  );
  --midnight-gradient: linear-gradient(
    135deg,
    var(--deep-navy),
    var(--primary-teal)
  );
  --ocean-depth: radial-gradient(
    circle at center,
    var(--secondary-emerald),
    var(--primary-teal)
  );
  --sunset-gradient: linear-gradient(
    90deg,
    var(--accent-coral),
    var(--accent-amber)
  );
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--midnight-gradient);
  color: var(--pearl-white);
  overflow-x: hidden;
  position: relative;
}

.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--electric-blue);
  animation: float 20s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg);
    opacity: 0;
  }
}

.header {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.2);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--aurora-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate-glow 6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

@keyframes rotate-glow {
  0%,
  100% {
    transform: rotate(0deg);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
  }
  50% {
    transform: rotate(180deg);
    box-shadow: 0 0 30px rgba(0, 166, 147, 0.5);
  }
}

.logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--aurora-gradient);
  background-size: 400% 400%;
  animation: aurora-flow 8s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes aurora-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--pearl-white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--electric-blue);
  border-color: var(--electric-blue);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--electric-blue);
  padding: 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.icon-btn:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.main-content {
  margin-top: 80px;
  padding: 2rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  display: none;
  padding: 4rem 0;
}

.section.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section {
  text-align: center;
  padding: 4rem 0;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--aurora-gradient);
  background-size: 400% 400%;
  animation: aurora-flow 8s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  color: var(--sage-green);
  font-weight: 400;
}

.cta-button {
  background: var(--aurora-gradient);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 166, 147, 0.3);
  margin: 0.5rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 166, 147, 0.4);
}

.cta-button.secondary {
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--electric-blue);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 217, 255, 0.2);
  border-color: var(--electric-blue);
}

.feature-icon {
  font-size: 3rem;
  color: var(--accent-amber);
  margin-bottom: 1rem;
  /* animation: rotate-glow 4s ease-in-out infinite; */
}

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.stat-card {
  background: rgba(15, 20, 25, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--sunset-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--sage-green);
  font-weight: 500;
}

/* Course Cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.course-card {
  background: rgba(0, 169, 147, 0.1);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 169, 147, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  border-color: var(--electric-blue);
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.course-title {
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: bold;
}

.course-price {
  color: var(--accent-amber);
  font-size: 1.2rem;
  font-weight: bold;
}

.course-description {
  color: var(--sage-green);
  margin-bottom: 1rem;
}

.course-features {
  list-style: none;
  margin-bottom: 2rem;
}

.course-features li {
  color: var(--pearl-white);
  margin-bottom: 0.5rem;
}

.course-features li:before {
  content: "✓";
  color: var(--secondary-emerald);
  margin-right: 0.5rem;
}

.enroll-btn {
  width: 100%;
  background: var(--aurora-gradient);
  color: var(--deep-navy);
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.enroll-btn:hover {
  transform: translateY(-2px);
}

/* Subscription Plans */
.pricing-toggle {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  margin: 0.25rem;
}

.pricing-toggle.active {
  background: linear-gradient(135deg, #00a693, #00d9ff);
  color: white;
}

.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 166, 147, 0.2);
}

.premium-plan {
  border-color: #00a693;
  transform: scale(1.05);
}

.premium-plan:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 0 40px 80px rgba(0, 166, 147, 0.3);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-badge.recommended {
  background: linear-gradient(135deg, #00a693, #00d9ff);
}

.plan-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.plan-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f8fafc;
  text-align: center;
  margin-bottom: 1rem;
}

.plan-price {
  text-align: center;
  margin-bottom: 1rem;
}

.currency {
  font-size: 1.5rem;
  color: #00a693;
  vertical-align: top;
}

.amount {
  font-size: 3rem;
  font-weight: 700;
  color: #00d9ff;
}

.period {
  font-size: 1.2rem;
  color: #94a3b8;
}

.plan-button {
  width: 100%;
  padding: 1rem 2rem;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.free-button {
  background: linear-gradient(135deg, #64748b, #94a3b8);
  color: white;
}

.premium-button {
  background: linear-gradient(135deg, #00a693, #00d9ff);
  color: white;
}

.institutional-button {
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
}

.plan-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 166, 147, 0.3);
}

.hidden {
  display: none;
}

/* 3D Cubes */
.learning-cubes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
  padding: 2rem 0;
}

.cube-container {
  perspective: 1000px;
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cube {
  width: 200px;
  height: 200px;
  position: relative;
  transform-style: preserve-3d;
  animation: float-rotate 20s infinite linear;
  cursor: pointer;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cube:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

@keyframes float-rotate {
  0% {
    transform: rotateX(0deg) rotateY(0deg) translateY(0px);
  }
  25% {
    transform: rotateX(90deg) rotateY(90deg) translateY(-10px);
  }
  50% {
    transform: rotateX(180deg) rotateY(180deg) translateY(0px);
  }
  75% {
    transform: rotateX(270deg) rotateY(270deg) translateY(-10px);
  }
  100% {
    transform: rotateX(360deg) rotateY(360deg) translateY(0px);
  }
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 1rem;
  font-family: "Amiri", serif;
  transition: all 0.3s ease;
}

.cube-face.front {
  background: rgba(0, 107, 125, 0.8);
  transform: translateZ(100px);
}
.cube-face.back {
  background: rgba(0, 166, 147, 0.8);
  transform: translateZ(-100px) rotateY(180deg);
}
.cube-face.right {
  background: rgba(0, 217, 255, 0.8);
  transform: rotateY(90deg) translateZ(100px);
}
.cube-face.left {
  background: rgba(255, 107, 107, 0.8);
  transform: rotateY(-90deg) translateZ(100px);
}
.cube-face.top {
  background: rgba(255, 182, 39, 0.8);
  transform: rotateX(90deg) translateZ(100px);
}
.cube-face.bottom {
  background: rgba(149, 184, 163, 0.8);
  transform: rotateX(-90deg) translateZ(100px);
}

.cube-arabic {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--pearl-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cube-english {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(253, 254, 254, 0.9);
  font-family: "Inter", sans-serif;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 20px;
  padding: 2rem;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
}

.modal h2 {
  color: var(--electric-blue);
  margin-bottom: 1rem;
  background: var(--aurora-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--electric-blue);
  font-size: 1.5rem;
  cursor: pointer;
}

.notification {
  position: fixed;
  top: 100px;
  right: 2rem;
  background: rgba(0, 166, 147, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  color: white;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 166, 147, 0.3);
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 3000;
  max-width: 350px;
}

.notification.show {
  transform: translateX(0);
}

.footer {
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--electric-blue);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p {
  color: var(--sage-green);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--sage-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--electric-blue);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 217, 255, 0.1);
  padding-top: 1rem;
  text-align: center;
  color: var(--sage-green);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .learning-cubes {
    grid-template-columns: 1fr;
  }

  .pricing-plans {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .premium-plan {
    transform: none;
  }

  .premium-plan:hover {
    transform: translateY(-10px);
  }
}
