/* ===========================
   PROJECTS PAGE
   =========================== */

/* ----- HERO (reuses .hero base from home, overrides background) ----- */
.hero.hero-projects {
  height: var(--hero-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8%;
  background: url('../assets/images/rocket.jpg') center/cover no-repeat;
  color: var(--text-light);
  position: relative;
  text-align: left;
}

/* Same gradient overlay as home */
.hero.hero-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.2)
  );
  z-index: 0;
}

.hero-projects .hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-projects h1 {
  font-size: 4rem;      /* Same as home */
  margin-bottom: 0.3em;
}

.hero-projects h2 {
  font-size: 1.8rem;    /* Same as home */
  color: #ddd;
  margin-bottom: 1.5em;
}

.hero-projects .hero-tagline {
  font-size: 1.1rem;
  color: #e3e3e3;
  max-width: 580px;
  line-height: 1.7;
}

/* Responsive: identical to home */
@media (max-width: 950px) {
  .hero.hero-projects {
    height: 80vh;
    padding: 0 6%;
  }
  .hero-projects h1 {
    font-size: 2.8rem;
  }
  .hero-projects h2 {
    font-size: 1.4rem;
  }
}

/* ----- INTRO SECTION ----- */
.projects-intro {
  background: #ffffff;
  color: #222;
  padding: 70px 8% 40px;
}

.projects-intro-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.projects-intro-inner h2 {
  font-size: 1.9rem;
  margin-bottom: 20px;
  color: #0c3d52;
}

.projects-intro-inner p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #444;
}

/* ----- PROJECTS GRID ----- */
.projects-grid-section {
  background: #ffffff;
  padding: 20px 8% 90px;
}

.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.project-card-content {
  padding: 18px 20px 22px;
  text-align: left;
}

.project-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #0c3d52;
  font-weight: 700;
}

.project-card-content p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
}

/* Hover effect */
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1000px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero.hero-projects h1 {
    font-size: 2.6rem;
  }

  .hero.hero-projects h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 650px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-intro {
    padding: 50px 6% 30px;
  }

  .projects-grid-section {
    padding: 20px 6% 70px;
  }

  .hero.hero-projects {
    height: 70vh;
    padding: 0 6%;
  }
}
