/* ================= GLOBAL ================= */

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top, rgba(255,255,255,0.08), transparent 32%),
    linear-gradient(to bottom, #050505 0%, #000000 50%, #020202 100%);
  color: white;
  font-family: sans-serif;
}

#contact-anchor {
  scroll-margin-top: calc(40vh - 180px);
}
/* ================= GLASS NAV ================= */

.glass {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,10,0.55);
}

/* ================= HERO ================= */

.hero-glow {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%, 0);

  width: 28rem;
  height: 28rem;

  border-radius: 9999px;
  filter: blur(60px);

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.08) 30%,
    rgba(255,255,255,0.02) 55%,
    transparent 75%
  );

  pointer-events: none;
  z-index: 0;

  animation: floatGlow 8s ease-in-out infinite;
}

/* Secondary glow */
.glow-2 {
  position: absolute;
  top: 28%;
  left: 50%;
  transform: translate(-50%, 0);

  width: 22rem;
  height: 22rem;

  border-radius: 9999px;
  filter: blur(80px);

  background: radial-gradient(
    circle,
    rgba(255,255,255,0.14) 0%,
    rgba(255,255,255,0.06) 30%,
    rgba(255,255,255,0.02) 55%,
    transparent 75%
  );

  opacity: 0.7;

  pointer-events: none;
  z-index: 0;

  animation: floatGlow 10s ease-in-out infinite;
}

/* Tablet */
@media (min-width: 768px) {
  .hero-glow {
    width: 32rem;
    height: 32rem;
  }

  .glow-2 {
    width: 26rem;
    height: 26rem;
  }
}

/* Desktop */
@media (min-width: 1280px) {
  .hero-glow {
    width: 34rem;
    height: 34rem;
  }

  .glow-2 {
    width: 28rem;
    height: 28rem;
  }
}

/* Animation */
@keyframes floatGlow {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 18px);
  }
}
/* ================= REVEAL ================= */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= PAGE TRANSITION ================= */

.page-shell {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms cubic-bezier(.2,.65,.2,1),
    transform 700ms cubic-bezier(.2,.65,.2,1);
}

.page-shell.page-entered {
  opacity: 1;
  transform: translateY(0);
}

/* ================= NAV LINKS ================= */

.nav-link {
  position: relative;
  transition: color 220ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transition: transform 260ms ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}




/* ================= CLIENT LOGO STRIP ================= */

.client-logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 1.25rem 0;
}

.client-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.42;
  filter: grayscale(100%) brightness(1.15);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    filter 0.3s ease;
}

.client-logo:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  filter: grayscale(100%) brightness(1.35);
}

/* MOBILE */
@media (max-width: 767px) {
  .client-logo-strip {
    gap: 2rem;
  }

  .client-logo {
    height: 30px;
    max-width: 130px;
  }
}

/* TABLET */
@media (min-width: 768px) and (max-width: 1279px) {
  .client-logo {
    height: 38px;
    max-width: 180px;
  }
}

/* DESKTOP */
@media (min-width: 1280px) {
  .client-logo {
    height: 56px;
    max-width: 240px;
  }

  .client-logo-strip {
    gap: 4.5rem; /* upgraded spacing */
  }
}


/* ================= LOGO NORMALIZATION ================= */

.logo-normal {
  height: 56px;
}

.logo-wide {
  height: 48px;
}

.logo-tall {
  height: 64px;
}

/* Optical alignment */

.client-logo {
  display: block;
  margin: auto;
  padding: 4px 0;
}


/* ================= PROJECT CARDS ================= */

.project-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.5rem;
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.25);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

/* ================= IMAGE WRAPPER ================= */

.image-wrap {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow:
    0 40px 100px rgba(0,0,0,0.45),
    0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.image-wrap:hover {
  transform: translateY(-6px);
  box-shadow:
    0 60px 140px rgba(0,0,0,0.55),
    0 20px 50px rgba(0,0,0,0.35);
}

/* ================= IMAGE ================= */

.image-hover {
  width: 100%;
  display: block;
  transition: transform 0.7s ease;
}

.image-hover:hover {
  transform: scale(1.025);
}

/* Responsive image sizing (CRITICAL FIX) */

.image-contained {
  width: 100%;
  max-width: 680px;
}

@media (min-width: 1280px) {
  .image-contained {
    max-width: 620px;
  }
}

/* ================= INDEX PAGE IMAGE ================= */

.project-image-wrap {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.project-image {
  width: 100%;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

/* ================= BUTTON ================= */

.button-primary {
  transition: all 0.25s ease;
}

.button-primary:hover {
  transform: translateY(-2px);
}

/* ================= LINKS ================= */

.detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.25s ease;
}

.detail-link:hover {
  gap: 0.8rem;
}


/* ================= CONTACT LINKS ================= */

.contact-link {
  color: rgba(255,255,255,0.6);
  transition: all 0.25s ease;
  position: relative;
}

.contact-link:hover {
  color: white;
}

.contact-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: white;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.contact-link:hover::after {
  transform: scaleX(1);
}

/* ================= CARDS ================= */

.section-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 1.25rem;
  padding: 1.5rem;
}

.capability-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.25rem;
  padding: 1.4rem;
  transition: transform 0.3s ease;
}

.capability-card:hover {
  transform: translateY(-4px);
}

/* ================= DIVIDER ================= */

.fade-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
}

/* ================= LIGHTBOX ================= */

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s ease;
  z-index: 100;
}

#lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

#lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 12px;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#lightbox.active img {
  transform: scale(1);
}

.lightbox-trigger {
  cursor: zoom-in;
}

/* ================= ACCESSIBILITY ================= */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}