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

body {
  font-family: 'Poppins', sans-serif;
  background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url('images/background.png');
  background-size: cover;         /* Fill the area */
  background-position: center;    /* Keep centered */
  background-repeat: no-repeat;
  background-attachment: fixed;   /* Parallax effect on desktop */
  color: white;
}

/* ✅ Responsive Adjustment for Mobile Devices */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;  /* 'fixed' causes zoom/crop issues on phones */
    background-position: top center; /* Focus the top area for better framing */
    background-size: cover;          /* Keep full coverage */
  }
}

/* Optional: tweak for very small screens (phones under 480px) */
@media (max-width: 480px) {
  body {
    background-position: top center; /* Keeps image focused on key area */
  }
}


.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
}

/* Logo */
.logo {
  font-size: 2rem;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: white;
  font-weight: 400;
  transition: color 0.3s;
}

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

/* Hamburger menu */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px; /* adjust based on header height */
    right: 20px;
    background-color: rgba(0,0,0,0.9);
    flex-direction: column;
    width: 200px;
    padding: 20px;
    border-radius: 8px;
  }

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

  .hamburger {
    display: block;
  }
}


.hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 15px;
}

.glow {
  color: #fff;
  text-shadow: 0 0 10px #8be9fd, 0 0 20px #8be9fd, 0 0 40px #00bcd4;
}

.hero-content p {
  color: #d0d0d0;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  background: transparent;
  color: #fff;
  padding: 12px 28px;
  border: 3px solid #fff;
  border-radius: 30px;
  font-weight: bold;
  transition: transform 0.3s ease, background 0.4s ease;
}

.btn:hover {
  transform: scale(1.05);
  background: linear-gradient(90deg, #00bfff, #6a0dad);
}

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

/* --- 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;
  }
}
/* --- 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: 20;
  }

  .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;
    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;
  }
}




/* 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 40s linear infinite;
}

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

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

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



/* Rotating Planet */
.planet-container {
  position: absolute;
  bottom: 10%;
  left: 10%;
  z-index: 5;
}

.planet {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6a0dad, #00bfff);
  box-shadow: inset -10px 10px 30px rgba(0,0,0,0.5),
              0 0 40px #fffff0;
  animation: rotatePlanet 15s linear infinite;
}

@keyframes rotatePlanet {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* Shooting Stars */
.shooting-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.shooting-stars::before, 
.shooting-stars::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100px;
  background: linear-gradient(45deg, #fff, rgba(255,255,255,0));
  border-radius: 50%;
  animation: shoot 4s linear infinite;
}

.shooting-stars::after {
  left: 80%;
  animation-delay: 2s;
}

@keyframes shoot {
  0% {
    transform: translateY(-100px) translateX(-100px) rotate(45deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(1000px) translateX(-1000px) rotate(45deg);
    opacity: 0;
  }
}


/* 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: 14px;
    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: 20;
  }

  .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;
    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;
  }
}
