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

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff4d00 0%, #1a0000 50%, #ff5005 100%);
  background-size: 400% 400%;
  animation: gradientMove 15s ease infinite;
  flex-direction: column;
  margin: 0;
}

@keyframes gradientMove {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Particles ── */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 80, 5, 0.6);
  border-radius: 50%;
  animation: float 20s infinite linear;
}

@keyframes float {
  from {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  to {
    transform: translateY(-10vh) translateX(100px);
    opacity: 0;
  }
}

/* ── Scrollbar (from index.html) ── */
::-webkit-scrollbar       { width: 10px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #ff5005; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #ff6a4d; }

/* ── All page content must sit above particles ── */
.navbar,
.hero-about,
.vision,
.courses,
.why,
.founders,
.footer {
  position: relative;
  z-index: 1;
}

/* ── Navbar (matches index.html exactly) ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 5%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 80, 5, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 10px 5%;
  background: rgba(10, 10, 10, 0.95);
}

.logo img {
  width: 80px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(255, 80, 5, 0.5));
}

.logo img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-links li a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff5005;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px #ff5005;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: #ff5005;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
  color: white;
  font-size: 15px;
  cursor: pointer;
  padding: 8px 0;
  font-weight: 500;
  transition: color 0.3s;
}

.dropdown:hover { color: #ff5005; }

.dropdown-menu {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 80, 5, 0.3);
  border-radius: 12px;
  display: none;
  min-width: 200px;
  padding: 10px 0;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dropdown-menu.show {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu p { padding: 0; margin: 0; }

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: white !important;
  font-size: 14px;
  transition: all 0.3s;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: rgba(255, 80, 5, 0.2);
  color: #ff5005 !important;
  padding-left: 25px;
}

/* Hamburger toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Enroll button */
.enroll-btn {
  background: linear-gradient(135deg, #ff5005, #ff3300);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 80, 5, 0.4);
}

.enroll-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.enroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 80, 5, 0.6);
}

.enroll-btn:hover::before { left: 100%; }

.enroll-btn a {
  text-decoration: none;
  color: white;
  font-size: 14px;
}

.active { color: #ff5005 !important; }

/* ── Hero ── */
.hero-about {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-about h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 60px;
  letter-spacing: 4px;
}

.hero-about span {
  color: #ff6a00;
  text-shadow: 0 0 25px #ff6a00;
}

.hero-about p {
  margin-top: 10px;
  opacity: .8;
}

/* ── Glass ── */
.glass {
  background: rgba(255, 106, 0, .08);
  backdrop-filter: blur(12px);
  border-radius: 25px;
  box-shadow: 0 0 40px rgba(255, 106, 0, .3);
}

/* ── Vision ── */
.vision {
  max-width: 900px;
  margin: 50px auto;
  padding: 50px;
  text-align: center;
  margin-top: -90px;
}

.vision h2 {
  color: #ff6a00;
  margin-bottom: 15px;
}

/* ── Courses ── */
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px;
}

.course {
  padding: 35px;
  border-radius: 25px;
  background: rgba(0, 0, 0, .5);
  transition: .4s;
}

.course h3 {
  color: #ff6a00;
  margin-bottom: 10px;
}

.course:hover {
  transform: translateY(-15px) scale(1.03);
}

.glow {
  box-shadow: 0 0 30px rgba(255, 106, 0, .35);
}

/* ── Why ── */
.why {
  max-width: 900px;
  margin: 80px auto;
  padding: 50px;
  text-align: center;
}

.why h2 {
  color: #ff6a00;
  margin-bottom: 15px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.why-grid span {
  padding: 15px;
  border-radius: 15px;
  background: rgba(0, 0, 0, .6);
  box-shadow: 0 0 20px rgba(255, 106, 0, .3);
}

/* ── Founders ── */
.founders {
  text-align: center;
  padding: 80px 20px;
}

.founders h2 {
  color: #ff6a00;
  font-size: 32px;
  margin-bottom: 40px;
}

.founder-wrap {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.founder-card {
  width: 260px;
  padding: 25px;
  border-radius: 30px;
  background: rgba(0, 0, 0, .6);
  transition: 0.4s ease;
  border: 1px solid #ff6a00;
}

.founder-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 15px;
}

.founder-card:hover {
  transform: scale(1.08);
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.6);
}

.founder-card h4 {
  color: #ff6a00;
  margin-bottom: 6px;
}

.founder-card small {
  color: #fff;
  opacity: 0.7;
}

/* ── GitHub buttons ── */
.github-btn {
  text-decoration: none;  
  color: #fff;
  background: linear-gradient(135deg, #ff0000, #8b0000);
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0 10px;
  display: inline-block;
  margin-top: 30px;
}

.github-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.7);
}

/* ── Footer (matches index.html exactly) ── */
.footer {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.95), #0a0a0a);
  color: #fff;
  padding: 60px 5% 20px;
  border-top: 1px solid rgba(255, 80, 5, 0.2);
  position: relative;
  z-index: 10;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ff5005, transparent);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.footer-about .footer-logo {
  width: 140px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 10px rgba(255, 80, 5, 0.3));
}

.footer-about p {
  font-size: 0.95em;
  line-height: 1.8;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.8);
}

.footer-about i {
  color: #ff5005;
  margin-right: 10px;
  width: 20px;
}

.footer-links h3,
.footer-courses h3,
.footer-resources h3 {
  color: #ff5005;
  margin-bottom: 20px;
  font-size: 1.1em;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-courses h3::after,
.footer-resources h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #ff5005;
}

.footer-links ul,
.footer-courses ul,
.footer-resources ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-courses ul li,
.footer-resources ul li {
  margin-bottom: 12px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul li::before,
.footer-courses ul li::before {
  content: '›';
  color: #ff5005;
  font-size: 1.2em;
  transition: transform 0.3s;
}

.footer-links ul li:hover,
.footer-courses ul li:hover,
.footer-resources ul li:hover {
  color: #ff5005;
  transform: translateX(5px);
}

.footer-links ul li:hover::before,
.footer-courses ul li:hover::before {
  transform: translateX(3px);
}

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9em;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: #ff5005;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Hamburger visible, nav hidden until toggled */
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    gap: 30px;
    padding: 40px 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.show { transform: translateX(0); }

  .dropdown-menu {
    position: static;
    transform: none;
    background: rgba(255, 80, 5, 0.1);
    border: 1px solid rgba(255, 80, 5, 0.3);
    margin-top: 10px;
    opacity: 1;
    display: none;
  }

  .dropdown-menu.show { display: block; transform: none; }

  .enroll-btn { display: none; }

  /* Hero */
  .hero-about { height: auto; padding: 120px 20px 60px; text-align: center; }
  .hero-about h1 { font-size: 38px; letter-spacing: 2px; }

  .vision, .why { padding: 30px 20px; margin-top: -50px; }
  .courses { grid-template-columns: 1fr; padding: 40px 20px; }
  .course { padding: 30px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }

  .founder-wrap { gap: 30px; }
  .founder-card { width: 100%; max-width: 300px; }

  /* Footer */
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about .footer-logo { margin: 0 auto 20px; }

  .footer-links h3::after,
  .footer-courses h3::after,
  .footer-resources h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links ul li,
  .footer-courses ul li { justify-content: center; }
}

@media (max-width: 1024px) {
  .hero-about h1 { font-size: 48px; text-align: center; }
  .courses { padding: 40px 25px; }
  .vision, .why { margin: 40px 20px; padding: 35px; }
}

@media (max-width: 480px) {
  .hero-about h1 { font-size: 30px; }
  .hero-about p  { font-size: 14px; }
  .why-grid { grid-template-columns: 1fr; }
  .github-btn { display: block; margin: 15px auto; width: fit-content; }
}