.page-hero {
  padding: 12rem 0 6rem;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79, 195, 247, 0.06), transparent);
  pointer-events: none;
}

.page-hero-tag {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 5px;
  color: var(--ice);
  opacity: 0.7;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.page-hero-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--ice);
}

.page-hero h1 {
  font-family: var(--font-hud);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 2rem;
}

.page-hero h1 em {
  font-style: normal;
  color: var(--ice);
}

.page-hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.75;
}

.filter-bar {
  padding: 2rem 0;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  position: sticky;
  top: 72px;
  background: rgba(0, 2, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
  padding-left: 5%;
  padding-right: 5%;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 2px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--ice);
  color: var(--ice);
  background: rgba(79, 195, 247, 0.06);
}

.projects-page-section {
  padding: 4rem 0 8rem;
  position: relative;
  z-index: 10;
}

.projects-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1px;
  background: var(--border);
}

.project-full-card {
  background: var(--deep);
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}

.project-full-card.hidden {
  display: none;
}

.project-full-card:hover {
  background: var(--midnight);
}

.project-gallery-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--navy);
}

.gallery-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.65);
  opacity: 0;
  transition: opacity 0.6s, filter 0.6s, transform 0.6s;
}

.gallery-images img.active {
  opacity: 1;
}

.project-full-card:hover .gallery-images img.active {
  filter: saturate(0.85) brightness(0.8);
}

.gallery-nav-btns {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 5;
}

.gallery-nav-btns button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(79, 195, 247, 0.4);
  background: rgba(0, 2, 10, 0.7);
  backdrop-filter: blur(8px);
  color: var(--ice);
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.gallery-nav-btns button:hover {
  background: var(--ice);
  color: var(--void);
}

.gallery-dots {
  display: flex;
  gap: 4px;
}

.gallery-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(79, 195, 247, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-dot.active {
  background: var(--ice);
  width: 14px;
  border-radius: 2px;
}

.project-card-body {
  padding: 2rem;
}

.project-card-num {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 3px;
  color: rgba(79, 195, 247, 0.4);
  margin-bottom: 0.8rem;
}

.project-card-title {
  font-family: var(--font-hud);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.project-full-card:hover .project-card-title {
  color: var(--ice);
}

.project-card-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.project-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.project-card-tag {
  font-family: var(--font-mono);
  font-size: 0.46rem;
  letter-spacing: 1.5px;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 2.5px;
  color: var(--ice);
  text-decoration: none;
  transition: gap 0.3s;
}

.project-card-link:hover {
  gap: 0.9rem;
}

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

  .page-hero {
    padding: 9rem 0 4rem;
  }
}