/* Custom styles extending Tailwind */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Hero overlay gradient */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(15, 23, 42, 0.65) 40%,
    rgba(15, 23, 42, 0.45) 100%
  );
}

/* Navbar glassmorphism */
.nav-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-glass.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Figure hover zoom */
.fig-zoom {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.fig-zoom:hover {
  transform: scale(1.02);
}

/* Status badges */
.badge-completed {
  background-color: #059669;
  color: white;
}
.badge-in-progress {
  background-color: #d97706;
  color: white;
}
.badge-planned {
  background-color: #6366f1;
  color: white;
}

/* Section fade-in animation */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-menu.open {
  max-height: 400px;
}

/* Image lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
}

/* Pipeline diagram */
.pipeline-step {
  position: relative;
}
.pipeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  width: 1.5rem;
  height: 2px;
  background: #94a3b8;
}

/* Team card image placeholder */
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

/* Active nav link */
.nav-link.active {
  color: #059669;
  border-bottom: 2px solid #059669;
}

@media (max-width: 768px) {
  .pipeline-step:not(:last-child)::after {
    top: auto;
    bottom: -1rem;
    left: 50%;
    right: auto;
    width: 2px;
    height: 1rem;
  }
}
