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

/* Responsive Design */
@media (max-width: 1050px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .nav-menu {
    position: absolute;
    top: 85px !important;
    right: 10px !important;
    width: max-content; /* only as wide as content */
    width: 220px;
    margin: 15px;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1rem;
    border-radius: 10px;
    display: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);

    max-height: 0; /* Start closed */
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease; /* Smooth transition */
    border-radius: 10px;
  }
  .nav-item {
    border-radius: 12px;
    background: #070707;
    width: 130px;
    white-space: nowrap;
    padding: 0.8rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }
  .nav-item a {
    color: #fff !important;
  }
  .dropdown a {
    color: #000 !important;
  }
  #authSection {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
  }
  #authSection .btn {
    border-radius: 10px;
    padding: 0.8rem 1.2rem;
    border: none;
    outline: none;
    transition: all 0.3s ease;
  }
  #authSection .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    color: #000;
  }
  #authSection .signup {
    box-shadow: 0 5px 12px #030303;
  }
  #authSection .login {
    background: #fff;
    box-shadow: 0 4px 12px #020202;
  }
  body.dark .dropdown {
  background-color: #333;
  border: 1px solid #555;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

body.dark .dropdown a {
  color: #fff;
  border-bottom-color: #555;
}

body.dark .dropdown a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

  .nav-menu.active {
    display: flex !important;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0px);
  }

  .hamburger {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2000;
    margin-right: 2rem;
  }
  .hamburger.open {
    transform: rotate(90deg);
    transition: transform var(--animation-normal) var(--easing-standard);
  }

  .hamburger {
    transition: transform var(--animation-normal) var(--easing-standard);
  }
}
/* Desktop - hide hamburger */
@media (min-width: 1051px) {
  .hamburger {
    display: none; 
  }
  #authSection {
    display: flex;
  }
  .signup {
    margin-top: 1rem;
  }
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 20px;
    background: none;
    box-shadow: none;
    margin: 0 2rem;
  }
}
.dropdown a {
  border-radius: 12px;
  transition: all 0.2s ease;
}
.dropdown a:hover {
  border-radius: 13px;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(106, 90, 205, 0.8);
}

/* enroll section */
.enroll-section {
  display: flex;
  flex-direction: column; /* Stack cards vertically */
  align-items: center;
  max-width: 1100px;
  margin: 80px auto 40px auto;
  padding: 30px;
  gap: 30px; /* Space between intro and enroll card */
  /* 🎨 Soft Gradient Background */
  background: linear-gradient(135deg, #f8f9ff, #e6e9ff);
  border-radius: 20px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
}
.intro,
.enroll-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%; /* SAME WIDTH */
  padding: 20px;
}

/* Intro Section (Left) */
.intro {
  display: flex;
  flex-direction: row; /* Image Left, Text Right */
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  animation: fadeInUp 0.8s ease forwards;
}
/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.intro:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(106, 90, 205, 0.25);
}

.intro-text {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 1rem;
  width: 50%;
}
.title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.intro-text h2 {
  font-size: 2.5rem;
  color: #6a5acd;
  margin-bottom: 10px;
  position: relative;
}
#mind-anim {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-right: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* Underline animation for heading */
.intro-text h2::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  background: #6a5acd;
  margin-top: 6px;
  border-radius: 5px;
  transition: width 0.3s ease;
}
h2:hover::after {
  width: 100%;
}

.intro-text p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
  text-align: center;
}
.intro-text ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.intro-text li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.6;
  transition: transform 0.2s ease;
}
.intro-text li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #6a5acd;
  font-weight: bold;
  transition: transform 0.3s ease, color 0.3s ease;
}
.intro-text li:hover::before {
  transform: scale(1.2);
  color: #5941c4;
}
.intro-text li:hover {
  transform: translateX(4px);
}
.intro-img {
  /* flex: 0 0 40%; */
  max-width: 50%;
  height: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease;
}
.intro-img:hover {
  transform: scale(1.05);
}

/* Mobile: stack image and text nicely */
@media (max-width: 768px) {
  .intro {
    flex-direction: column;
    text-align: center;
  }
  .intro-img,
  .intro-text {
    max-width: 100%;
    flex: 0 0 auto;
  }
}

/* Enroll card form (unchanged, but ensure no width caps) */
.enroll-card {
  animation: fadeInUp 0.8s ease forwards;
}
.enroll-card h2 {
  color: #6a5acd;
  margin: 0 0 16px;
  font-size: 1.8rem;
  text-align: center;
}
.enroll-card form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.enroll-card input,
.enroll-card select {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}
.enroll-card button {
  margin-top: 2rem;
  width: 100%;
  background-color: #0d0d0d;
  color: white;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 5px 12px #020202;
}
.enroll-card button:hover {
  background: #2b2929;
  box-shadow: 0 6px 20px #1b1b1b;
}

/* ===================== */
/* 🌟 FOOTER STYLING */
/* ===================== */
.footer {
  background: #000;
  color: #fff;
  padding: 20px 20px 20px;
  font-family: "Poppins", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left section */
.footer-left {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-direction: column;
  margin-bottom: 10px;
}
.footer-logo img {
  width: 60px;
  height: 60px;
}
.footer-left h2 {
  font-size: 2.5rem;
}
.footer-title {
  font-weight: bold;
  font-size: 1.6rem;
  margin: 15px 0 15px;
}

/* Social Icons */
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #121213;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  margin-right: 10px;
  font-size: 18px;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: #161618;
  transform: translateY(-3px);
}

/* Middle section */
.footer-middle {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-left: 1.5rem;
}
.footer-middle h3 {
  margin-bottom: 15px;
  font-size: 1.7rem;
  color: #f7f7fc;
}
.footer-detail a {
  margin: 8px 0;
  color: rgb(179, 179, 179);
  font-size: 1rem;
}
.footer-detail a:hover {
  text-decoration: underline;
  color: white;
}
.footer-middle i {
  margin-right: 8px;
}

/* Right section (Form) */
.footer-right {
  flex: 1;
  min-width: 280px;
}
.footer-right h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
  color: #fff;
}
.footer-right input,
.footer-right textarea {
  width: 60%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 0.95rem;
}
.footer-right textarea {
  height: 90px;
  resize: none;
}
.footer-right button {
  background: blue;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  display: flex;
  cursor: pointer;
  transition: all 0.3s ease;
}
.footer-right button:hover {
  background: #6a5acd;
  transform: translateY(-2px);
}

/* Bottom text */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  font-size: 0.9rem;
  color: #bbb;
  position: absolute;
  bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
}
