/* Reset and background */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: white;
  height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(120deg, #2b1055, #7597de, #d08eff);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
}

/* Animated gradient background */
@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Star layers */
.stars, .stars2, .stars3 {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-repeat: repeat;
  z-index: 0;
}

.stars {
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  animation: moveStars 60s linear infinite;
}

.stars2 {
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.5;
  animation: moveStars 120s linear infinite;
}

.stars3 {
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.3;
  animation: moveStars 180s linear infinite;
}

@keyframes moveStars {
  from { transform: translateY(0); }
  to { transform: translateY(-1000px); }
}

/* Header */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 40px;
    background: transparent;
}
.nav-section ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 200px;
    margin: 0;
    padding: 0;
    justify-content: center;
}

.nav-section a {
    text-decoration: none;
    color: white;
    text-shadow: 0 0 10px #8be9fd, 0 0 20px #8be9fd, 0 0 40px #00bcd4;
    font-size: 20px;
    font-weight: bold;
}

.logo {
    text-align: center;
    cursor: pointer;
}

.logo img {
    height: 250px;
}

.nav-section.right {
    justify-self: end;
}

.nav-section ul li::after{
    content: "";
    width: 0;
    height: 2px;
    background: #00bfff;
    display: block;
    margin: auto;
    transition: 0.5s
}

.nav-section ul li:hover::after {
    width: 100%;
    transition: width 0.3s ease;
}

.about-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 20px;
}


.course {
    width: 90%;
    max-width: 800px;
    margin: auto;
    text-align: center;
    padding-top: 10px;
}

h1 {
    font-size: 36px;
    font-weight: 600;
}

p {
    color: white;
    font-size: 19px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;
}

.row {
  margin-top: 5%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* allows items to wrap on small screens */
  gap: 20px; /* adds spacing between wrapped columns */
}

.course-col {
  flex-basis: 30%;
  background: #6a0DAD;
  border-radius: 10px;
  margin-bottom: 5px;
  padding: 20px 12px;
  box-sizing: border-box;
}

h3 {
  text-align: center;
  font-weight: 600;
  margin: 10px 0;
}

.course-col:hover {
  box-shadow: 0 0 20px 0px rgba(0,0,0,0.8);
}

footer {
  background-color: transparent;          /* Dark background */
  color: white;                    /* Text color */
  text-align: center;              /* Center text */
  padding: 20px 0;                 /* Space inside footer */
  position: relative;              /* Keeps it at bottom naturally */
  bottom: 0;
  width: 100%;
}

.footer-container {
  max-width: 1000px;
  margin: auto;
}

.footer-container p {
  margin: 10px 0;
  font-size: 0.9rem;
}

.social-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #00bfff; /* Change color on hover */
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: 100px;
}



@media screen and (max-width: 768px) {
  .nav-menu {
    flex-direction: column;
  }

  .hero-text {
    font-size: 1.2rem;
  }
}


/* Responsive design for tablets and phones */
@media (max-width: 1024px) {
  .nav-section ul {
    gap: 60px;
  }

  .logo img {
    height: 180px;
  }

  h1 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .navbar {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 10px 20px;
  }

  .nav-section ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .logo img {
    height: 150px;
    margin-bottom: 10px;
  }

  .row {
    flex-direction: column;
    align-items: center;
  }

  .course-col {
    width: 90%;
  }

  h1 {
    font-size: 24px;
  }

  p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 120px;
  }

  .nav-section a {
    font-size: 16px;
  }

  h1 {
    font-size: 20px;
  }

  p {
    font-size: 12px;
  }
}



/* Hide menu + links by default (desktop) */
.menu-icon,
.nav-links {
  display: none;
}

/* --- MOBILE / TABLET ONLY --- */
@media (max-width: 768px) {
  .menu-icon {
    display: flex;
    position: absolute;
    right: 30px;
    top: 25px;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
  }

  .menu-icon span {
    display: block;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Dropdown menu (hidden initially) */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 25px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    z-index: 1000;
    animation: fadeSlide 0.3s ease forwards;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
  }

  .nav-links a:hover {
    color: #00bfff;
  }
}

/* Hamburger → X animation */
.menu-icon.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-icon.open span:nth-child(2) {
  opacity: 0;
}
.menu-icon.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown fade animation */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hide normal nav links on smaller screens */
@media (max-width: 768px) {
  .nav-section ul {
    display: none;
  }
}
