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

/* body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0d0d2b, #000010);
  color: #f5f5f5;
  overflow-x: hidden;
} */

/* === HEADER & NAV — About Page (Merged & Fixed) === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 3rem;             /* slightly thinner than old 1.2rem */
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  z-index: 1000;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1); /* subtle separation */
}

header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #4fd1c5, #805ad5, #f6e05e); /* match index hero gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* letter-spacing: 1px; */
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #f5f5f5;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #4fd1c5;
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
    gap: 1rem;
    z-index: 1000;
  }

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

  .hamburger {
    display: flex;
  }

  .nav-links a {
    margin: 1rem 0;
  }
}

/* Keep content below fixed header */
.content-wrapper {
  padding-top: 100px; /* header height clearance */
}

/* === About Page Sections — Centered Cosmic Cards === */
.content-wrapper section,
section {
  margin: 2rem auto;
  max-width: 800px;
  padding: 2rem;
  text-align: center;  /* center text, titles, and iframe */
  background: rgba(10, 10, 20, 0.7);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(79, 209, 197, 0.3), 0 0 40px rgba(128, 90, 213, 0.2);
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-wrapper section:hover,
section:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 35px rgba(79, 209, 197, 0.5), 0 0 50px rgba(128, 90, 213, 0.35);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4fd1c5, #805ad5, #f6e05e); /* same as hero h2 */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

section p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #f5f5f5;
  margin-bottom: 1rem;
}

iframe {
  display: block;
  margin: 1.5rem auto 0 auto;
  width: 100%;
  max-width: 700px;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 204, 0, 0.2), 0 0 40px rgba(128, 90, 213, 0.15);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 140px 1rem 1.5rem 1rem; /* top padding for fixed header, sides & bottom remain */
  }

  .content-wrapper section {
    margin-top: 1rem; /* extra spacing between sections */
  }

  iframe {
    height: 250px;
  }
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 40px;
}