/* ══ PROJECTS PAGE ══ */

/* ── HERO ── */
.proj-hero {
  min-height: 28vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 7rem 2.5rem 3rem;
  background: var(--navy);
}
.proj-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0, 80, 200, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(100, 50, 220, 0.12) 0%, transparent 60%),
    url("../asset/project_ref/bg_project.png") right center / 55% auto no-repeat;
}
.proj-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(to right, var(--navy) 40%, transparent 75%),
    linear-gradient(to top, var(--navy) 0%, transparent 50%);
}
.proj-hero-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.proj-hero-left {}
.proj-hero-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: .8rem;
  text-transform: uppercase;
}
.proj-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .8rem;
  color: #fff;
}
.proj-hero-title span {
  color: var(--cyan);
}
.proj-hero-sub {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.8;
  max-width: 420px;
}

/* ── STATS ── */
.proj-stats {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  background: rgba(4, 18, 50, 0.75);
  border: 1px solid rgba(0, 180, 255, 0.18);
  border-radius: 16px;
  padding: 1.4rem 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px rgba(0, 80, 200, 0.2);
  flex-shrink: 0;
}
.proj-stat {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(0, 180, 255, 0.15);
}
.proj-stat:last-child {
  border-right: none;
  padding-right: 0;
}
.proj-stat:first-child {
  padding-left: 0;
}
.proj-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.proj-stat-info {}
.proj-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.proj-stat-label {
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* ── GRID ── */
.proj-section {
  padding: 3rem 2.5rem 5rem;
  background: var(--navy);
}
.proj-grid-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

/* ── CARD ── */
.proj-card {
  background: var(--card);
  border: 1px solid rgba(0, 180, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
}
.proj-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease, border-color .3s ease, box-shadow .3s ease;
}
.proj-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 80, 200, 0.25);
}
.proj-card.hidden {
  display: none;
}

/* card image */
.proj-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.proj-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.proj-card:hover .proj-card-img img {
  transform: scale(1.06);
}

/* card logo overlay */
.proj-card-logo-wrap {
  position: absolute;
  top: .75rem;
  left: .75rem;
  z-index: 2;
  max-width: 110px;
  max-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.proj-card-logo-img {
  max-width: 100%;
  max-height: 36px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* slideshow */
.proj-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1s ease;
}
.proj-slide.active {
  opacity: 1;
  transform: scale(1);
}
.proj-card:hover .proj-slide.active {
  transform: scale(1.03);
}
/* card body */
.proj-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .8rem 1rem;
  background: linear-gradient(to top, rgba(2,8,24,0.92) 0%, rgba(2,8,24,0.5) 70%, transparent 100%);
}
.proj-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .3rem;
  line-height: 1.3;
}
.proj-card-country {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .75rem;
  color: var(--cyan);
  margin-bottom: .45rem;
  opacity: .8;
}
.proj-card-country i {
  font-size: .7rem;
}
/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .proj-hero-inner { grid-template-columns: 1fr; }
  .proj-stats { flex-wrap: wrap; gap: 1rem; }
  .proj-stat { padding: 0 1rem; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-filter-wrap { top: 56px; }
}
@media (max-width: 560px) {
  .proj-hero { padding: 7rem 1.5rem 2.5rem; }
  .proj-filter-wrap { padding: 1rem 1.5rem; }
  .proj-section { padding: 2rem 1.5rem 4rem; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj-stats { padding: 1rem 1.2rem; }
  .proj-stat-num { font-size: 1.3rem; }
}

/* ══ LIGHTBOX ══ */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 8, 24, 0.92);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lb-overlay.open {
  display: flex;
  animation: lbFadeIn .25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lb-box {
  position: relative;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.lb-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.18); }

.lb-img-wrap {
  position: relative;
  width: 100%;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.4);
}
#lbImg {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
#lbImg.lb-fade {
  animation: lbImgFade .35s ease;
}
@keyframes lbImgFade {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 8, 24, 0.65);
  border: 1px solid rgba(0,180,255,.25);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
  backdrop-filter: blur(6px);
}
.lb-arrow:hover {
  background: rgba(0,180,255,.2);
  border-color: var(--cyan);
}
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }

.lb-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 .2rem;
}
.lb-title {
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}
.lb-counter {
  font-size: .8rem;
  color: var(--muted);
}

.lb-dots {
  display: flex;
  gap: .45rem;
  align-items: center;
}
.lb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.lb-dot.active {
  background: var(--cyan);
  transform: scale(1.3);
}

@media (max-width: 600px) {
  .lb-arrow { width: 36px; height: 36px; font-size: .85rem; }
  .lb-prev  { left: .4rem; }
  .lb-next  { right: .4rem; }
}
