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


.contact-container {
  max-width: 900px;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

h1 span {
  color: #7b4eff;
}

p {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}



.contact-container {
  margin-left: 750px;
  margin-top: 100px;
}

.contact-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-form {
  flex: 1 1 2150px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #fff;
}

.contact-form button {
  background: #7b4eff;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #9f7aff;
}

.contact-info {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.contact-info a {
  color: #fff;
  text-decoration: none;
}

.contact-info a:hover {
  color: #00bfff;
  text-decoration: underline;
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 20px;
  img {
    width: 80px;
    height: 70px;
  } 
}

.social-links a {
  font-size: 1.5rem;
  color: #00bfff;
  transition: 0.3s;
}

.social-links a:hover {
  color: #7b4eff;
  transform: scale(1.1);
}

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