/* ------------------- Global Styles ------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #bfd1f0;
  color: #333;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ------------------- Navigation ------------------- */
nav {
  background: linear-gradient(232deg, #1c1842, #186bf9, #1c1842, #1c1842);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  flex-wrap: wrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.logo img {
  height: 50px;
}

.navbar {
  display: flex;
  gap: 20px;
}

/* 🔥 Stylish Navbar Links */
.navbar li a {
  color: white;
  font-size: 18px;
  padding: 10px 18px;
  display: inline-block;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

/* Hover Effect */
.navbar li a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffcc00;
}

/* Active Button Look */
.navbar li a.active {
  background: linear-gradient(135deg, #1e90ff, #0f4c81);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.navbar li a.active:hover {
  background: linear-gradient(135deg, #0f4c81, #1e90ff);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: white;
}

/* ------------------- Hero Section ------------------- */
.hero {
  height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgb(119 134 202 / 55%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 15px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0;
  animation: slideIn 1.2s ease-out forwards;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 25px;
  opacity: 0;
  animation: fadeIn 1.6s ease-out forwards;
  animation-delay: 0.4s;
}

.btn {
  background: #0015ffcc;
  color: white;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 18px;
  transition: 0.3s;
  opacity: 0;
  animation: fadeIn 2s ease-out forwards;
  animation-delay: 0.8s;
}

.btn:hover {
  background: #e68900;
}

/* Keyframes */
@keyframes slideIn {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------- Robot Animation ------------------- */
.robot-animation {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  width: 200px;
  height: 200px;
}

.robot-animation lottie-player {
  width: 100%;
  height: 100%;
  animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ------------------- Features ------------------- */
.features {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 50px 20px;
  background: #bfd1f0;
  flex-wrap: wrap;
}

.feature-box {
  background: linear-gradient(135deg, #0f4c81, #1e90ff);
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* ------------------- Courses Page ------------------- */
.page-section {
  padding: 50px 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1c1842;
  text-align: center;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.course-animation {
  width: 100px;
  height: 100px;
}

.course-animation lottie-player {
  width: 100%;
  height: 100%;
}

.section-title span {
  display: block;
}

.section-title .highlight {
  color: #186bf9;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
  animation: fadeIn 1.4s ease-out;
}

.courses-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 20px;
}

.course-card {
  background: linear-gradient(135deg, #0f4c81, #1e90ff);
  color: white;
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s forwards;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.course-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4), 0 0 20px rgba(30,144,255,0.7);
  background: linear-gradient(135deg, #1e90ff, #0f4c81);
}

.course-card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 15px;
  background: linear-gradient(45deg, #1e90ff, #00ffcc, #ff9900);
  background-size: 400% 400%;
  z-index: -1;
  filter: blur(15px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.course-card:hover::before {
  opacity: 1;
  animation: gradientGlow 6s linear infinite;
}

@keyframes gradientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.course-card h2,
.course-card p {
  color: #fff;
}

.course-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: rgba(255,255,255,0.9);
  transition: transform 0.3s ease;
}

.course-card:hover .course-icon {
  transform: scale(1.2) rotate(5deg);
}

.course-card h2 {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: bold;
}

.course-card p {
  font-size: 15px;
  margin: 6px 0;
  opacity: 0.95;
}

.course-card:nth-child(1) { animation-delay: 0.2s; }
.course-card:nth-child(2) { animation-delay: 0.4s; }
.course-card:nth-child(3) { animation-delay: 0.6s; }
.course-card:nth-child(4) { animation-delay: 0.8s; }
.course-card:nth-child(5) { animation-delay: 1s; }
.course-card:nth-child(6) { animation-delay: 1.2s; }
.course-card:nth-child(7) { animation-delay: 1.4s; }
.course-card:nth-child(8) { animation-delay: 1.6s; }
.course-card:nth-child(9) { animation-delay: 1.8s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------- About Page ------------------- */
.about {
  padding: 60px 20px;
  background: #bfd1f0;
  animation: fadeIn 1.2s ease-out;
}

.about .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1c1842;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.about .human-anim {
  width: 120px;
  height: 120px;
}

.about p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  line-height: 1.7;
}

.about h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f2f5f8;
  font-weight: bold;
}

.about ul {
  max-width: 600px;
  margin: auto;
  padding: 0;
}

.about ul li {
  background: white;
  margin: 12px 0;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-size: 1rem;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about ul li:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ------------------- Contact Section ------------------- */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  max-width: 1100px;
  margin: 60px auto;
  flex-wrap: wrap;
  padding: 0 20px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
  background: linear-gradient(135deg, #1e90ff, #0f4c81);
  color: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  animation: fadeIn 1s ease-in-out;
}

.contact-info h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  text-align: center;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.6;
}

.contact-info a {
  color: #ffeb3b;
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #fff;
}

/* ------------------- Contact Form ------------------- */
.contact-form {
  flex: 1;
  min-width: 280px;
  max-width: 600px;
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  animation: fadeIn 1.2s ease-in-out;
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #1c1842;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  transition: border 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #1e90ff;
  box-shadow: 0 0 8px rgba(30,144,255,0.4);
}

.contact-form button {
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #0f4c81, #1e90ff);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #1e90ff, #0f4c81);
  transform: translateY(-2px);
}

/* ------------------- Contact Response ------------------- */
.response-box {
  max-width: 500px;
  margin: 100px auto;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  animation: fadeIn 1s ease-in-out;
}

.response-box.success {
  background: #e6ffe6;
  color: #2e7d32;
  border: 2px solid #4caf50;
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.response-box.error {
  background: #ffe6e6;
  color: #d32f2f;
  border: 2px solid #f44336;
  box-shadow: 0 5px 20px rgba(244, 67, 54, 0.3);
}

.response-box .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #1e90ff;
  color: white;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.response-box .btn:hover {
  background: #0f4c81;
}

/* ------------------- Popup Form ------------------- */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  width: 350px;
  max-width: 95%;
  text-align: center;
  animation: zoomIn 0.5s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.popup-box h2 {
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(232deg, #1c1842, #186bf9, #1c1842);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.popup-box input,
.popup-box select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 14px;
}

.popup-box input:focus,
.popup-box select:focus {
  border-color: #66a6ff;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.popup-buttons .btn-submit {
  background: linear-gradient(232deg, #1c1842, #186bf9, #1c1842);
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  color: #fff;
  cursor: pointer;
  flex: 1;
  transition: 0.3s;
}

.popup-buttons .btn-submit:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

.popup-buttons .btn-cancel {
  background: #ccc;
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  flex: 1;
  transition: 0.3s;
}

.popup-buttons .btn-cancel:hover {
  background: #aaa;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ------------------- Rating & Reviews ------------------- */
.rating-reviews {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  width: 400px;
  max-width: 95%;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  margin: 50px auto;
  animation: fadeIn 1s ease;
}

.rating-reviews h2 {
  margin-bottom: 15px;
  color: #333;
  font-size: 22px;
}

.star-rating {
  font-size: 36px;
  margin-bottom: 15px;
  cursor: pointer;
}

.star-rating span {
  transition: transform 0.2s, color 0.3s;
}

.star-rating span:hover {
  transform: scale(1.3);
  color: gold;
}

.star-rating .active {
  color: gold;
  transform: scale(1.15);
}

.emoji-display {
  font-size: 48px;
  margin: 10px 0;
  transition: transform 0.3s;
}

.rating-text {
  font-size: 14px;
  margin-bottom: 15px;
  color: #555;
}

textarea {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
  margin-bottom: 10px;
  resize: none;
  transition: border 0.3s;
}

textarea:focus {
  border-color: #66a6ff;
}

.btn-submit {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, #66a6ff, #89f7fe);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.btn-submit:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #5a8dfd, #4ed0f5);
}

#comments-section {
  margin-top: 20px;
  text-align: left;
}

#comments-section h3 {
  margin-bottom: 10px;
  color: #333;
}

#comment-list {
  list-style: none;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
}

#comment-list li {
  background: #f1f5ff;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  font-size: 14px;
  color: #444;
  animation: slideIn 0.4s ease;
}

/* ------------------- Animations ------------------- */
@keyframes slideIn {
  from { transform: translateX(-20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ------------------- Responsive ------------------- */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1c1842;
    position: absolute;
    top: 70px;
    left: 0;
    padding: 15px 0;
    z-index: 1000;
  }

  .navbar li {
    text-align: center;
    margin: 10px 0;
  }

  .navbar.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .courses-container {
    grid-template-columns: 1fr;
  }

  .rating-reviews {
    width: 95%;
    padding: 20px;
  }

  .popup-box {
    width: 90%;
    padding: 20px;
  }
}
