/* ---------- Global Theme ---------- */
:root {
  --bg: #141414;
  --accent: #F7F7F7;
  --muted: rgba(247, 247, 247, 0.1);
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg);
  color: var(--accent);
  background-image: url("../assets/pcb-bg.png");
  background-repeat: repeat-y;
  background-size: 100%;
  background-blend-mode: overlay;
  overflow-x: hidden;
}

/* Navbar Container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;      /* vertically center brand and links */
  justify-content: space-between;
  padding: 0 3rem;          /* more space at ends */
  z-index: 100;
}

/* Navbar Brand */
.nav-brand {
  display: flex;
  align-items: center;      /* vertical center */
}

/* Team Eclipse Text */
.nav-brand .team-name {
  font-weight: 500;          /* normal weight */
  font-size: 1.25rem;        /* slightly larger, but not bold */
  letter-spacing: 0.5px;
  color: var(--accent);
}

/* Navbar Links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;       /* vertical center */
  gap: 1.5rem;
}

.nav-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;           /* normal weight */
  font-size: 1rem;            /* slightly bigger */
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 0.7;
}



/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* start from top, we will use margin */
  align-items: center;
  position: relative;
  padding: 2rem;
  overflow: hidden;
}

/* Hero content (text + logo) */
.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  flex-wrap: wrap;
  margin-top: 25vh; /* <-- pushes hero content down to roughly vertical center */
}


/* Animation */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-text {
  max-width: 600px;
  animation: slideInLeft 1s ease forwards;
}

.hero-text h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  opacity: 0.85;
}

.hero-logo-container {
  flex-shrink: 0;
  animation: slideInRight 1s ease forwards;
}

/* Hero Logo with Subtle Pulsating Shadow */
.hero-logo {
  width: min(40vw, 400px);
  height: auto;
  /* slightly stronger default shadow */
  filter: drop-shadow(0 6px 22px rgba(255, 255, 255, 0.25));
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: pulseGlow 2.5s ease-in-out infinite;
}

.hero-logo:hover {
  /* slightly less intense shadow on hover, scale up slightly */
  filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.15));
  transform: scale(1.05);
}

/* Pulsating Glow Animation */
@keyframes pulseGlow {
  0%, 100% {
    filter: drop-shadow(0 6px 22px rgba(255, 255, 255, 0.25));
  }
  50% {
    filter: drop-shadow(0 6px 28px rgba(255, 255, 255, 0.3));
  }
}

/* ---------- Hero Points Display ---------- */
.hero-points {
  display: flex;
  justify-content: center;
  margin-top: 8rem;
}

.hero-points #team-points {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  opacity: 1; /* changed from 0 to 1 */
  letter-spacing: 1px;
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
  transition: none; /* optional, since we’re animating via JS */
}

/* Optional subtle shadow/glow to match hero logo */
.hero-points #team-points {
  text-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ---------- Intro Paragraph ---------- */
.intro-text {
  max-width: 800px;
  margin: 3rem auto;
  text-align: center;
  padding: 0 1.5rem;
}

.intro-text p {
  font-size: 1.3rem;
  line-height: 1.8;
  opacity: 0.85;
  color: var(--accent);
}


/* ---------- Team Section ---------- */
.team-section {
  padding: 6rem 1.5rem 8rem;
  max-width: 1100px;
  margin: 0 auto;
}

.team-section h2 {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.team-subsection {
  margin-bottom: 4rem;
}

.subsection-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* ---------- Vertical Team Cards (for all members) ---------- */
.team-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  width: 220px; /* fixed width for vertical cards */
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
}

.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.team-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.team-card p {
  font-size: 1rem;
  opacity: 0.85;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-logo {
    width: 60vw;
    margin-top: 2rem;
  }

  .nav-brand img {
    height: 38px;
    width: 38px;
  }

  .nav-links {
    gap: 0.75rem;
  }

  .team-grid {
    gap: 1.5rem;
  }
}
