/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  background: linear-gradient(180deg, #0c0f1f, #141733, #0c0f1f);
  color: #f2f4ff;
  line-height: 1.6;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 18, 35, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

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

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

.subscribe-btn {
  background: #7aa2ff;
  color: #0a0d1e;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.subscribe-btn:hover {
  background: #8bb4ff;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 60px;
  background: radial-gradient(circle at top, rgba(98, 120, 255, 0.15), transparent 60%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero p {
  max-width: 650px;
  margin: auto;
  color: #c8cbf0;
  font-size: 1.1rem;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 20px;
  max-width: 1100px;
  margin: auto;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 56px; /* increased spacing between image and text */
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 380px;
}

.about-image img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-text {
  flex: 1 1 400px;
  /* add a little safe padding on wider screens so text doesn't butt up against the image */
  padding-left: 12px;
}

.about-title {
  font-size: 2.4rem;
  margin: 0 0 22px 0;
  color: #e9ebff;
  letter-spacing: 0.2px;
  position: relative;
  padding-bottom: 10px;
  text-align: center; /* center the title across the section */
  width: 100%;
  font-weight: 500;
}

.about-title::after {
  content: '';
  position: absolute;
  left: 50%; /* center underline */
  transform: translateX(-50%);
  bottom: 0;
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, #6278ff, #7aa2ff);
  border-radius: 2px;
}

.about-text p {
  color: #c8cbf0;
  margin-bottom: 12px;
}

/* ===== IMPACT ===== */
.impact {
  text-align: center;
  padding: 120px 20px;
  background: url('assets/earth-bg-placeholder.jpg') center/cover no-repeat;
  background-attachment: fixed;
  position: relative;
}

.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 24, 0.8);
}

.impact-content {
  position: relative;
  max-width: 800px;
  margin: auto;
}

.impact h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.impact p {
  color: #d0d4ff;
  font-size: 1.05rem;
}

/* ===== VISION ===== */
.vision {
  text-align: center;
  padding: 120px 20px;
  max-width: 800px;
  margin: auto;
}

.vision h2 {
  font-size: 2.2rem;
  font-weight: 500;
}

.vision h3 {
  margin-top: 8px;
  font-size: 1.4rem;
  color: #aab0ff;
}

.vision p {
  color: #c8cbf0;
  margin-top: 16px;
  margin-bottom: 30px;
}

.vision .button {
  display: inline-block;
  background: #7aa2ff;
  color: #0a0d1e;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.vision .button:hover {
  background: #8bb4ff;
}

/* ===== TEAM ===== */
.team {
  padding: 100px 20px;
  text-align: center;
}

.team h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 500;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: auto;
}

.team-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* .team-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
} */

.team-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
}

.team-card h3 {
  margin-bottom: 6px;
}

.team-card p {
  color: #b9bdf0;
  font-size: 0.95rem;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px;
  background: rgba(10, 12, 24, 0.95);
  color: #a0a4c0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .subscribe-btn {
    font-size: 0.9rem;
  }

  .about {
    flex-direction: column;
  }

  .about-text {
    text-align: center;
  }
}
