/* Projects Page Hero Section */
.hero {
  height: 350px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text {
  margin: 0;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-text h1 {
  color: #fff;
  font-size: 2.8rem;
  text-shadow: 0 4px 24px #000, 0 1px 0 #00b7b7;
  margin-bottom: 1rem;
}

.hero-text p {
  color: #e0e0e0;
  font-size: 1.25rem;
  text-shadow: 0 2px 8px #000;
  margin-top: 1.2rem;
}

/* Projects Grid Section */
.projects {
  padding-top: 40px;
  background: #23272f;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Mobile Nav Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #181c22b3;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: all;
}

/* Fix nav-links for mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: #23272f;
    padding: 5rem 2rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1001;
  }

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    height: 220px;
    min-height: 160px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 140px;
    min-height: 100px;
  }

  .hero-text h1 {
    font-size: 1.3rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }
}
