/* ================================
   Projects Page - Final Premium Luxury UI
================================ */

.projects-page {
  position: relative;
  overflow: hidden;
  padding-bottom: 60px;
  isolation: isolate;
  scroll-behavior: smooth;
}

.projects-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(94, 234, 212, 0.08), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 50% 90%, rgba(34, 211, 238, 0.08), transparent 30%);
  z-index: -2;
}

.projects-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 12%, transparent 88%, rgba(255,255,255,0.02) 100%);
  z-index: -1;
}

.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  background: rgba(15, 23, 42, 0.6);
  color: var(--mint);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.projects-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px rgba(94, 234, 212, 0.9);
}

/* ================================
   Hero
================================ */
.projects-hero {
  position: relative;
  padding: 40px 0 36px;
}

.projects-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.projects-hero__content h1 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.projects-hero__content p {
  margin: 0;
  max-width: 720px;
  color: var(--soft);
  font-size: 15.5px;
  line-height: 2;
}

.projects-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.projects-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(15, 23, 42, 0.56);
  color: #dffcff;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.28s ease;
  backdrop-filter: blur(10px);
}

.projects-ghost-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 234, 212, 0.32);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.projects-hero__mini-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-mini-stat {
  padding: 16px 16px;
  border-radius: 18px;
  background: rgba(8, 13, 28, 0.46);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.hero-mini-stat strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.hero-mini-stat span {
  display: block;
  color: rgba(224, 235, 255, 0.76);
  font-size: 13px;
  line-height: 1.8;
}

.projects-hero__visual {
  position: relative;
  min-height: 520px;
}

.hero-project-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  min-height: 520px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.75), rgba(11, 18, 32, 0.95));
  border: 1px solid rgba(94, 234, 212, 0.14);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.hero-project-card img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.hero-project-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(2,6,23,0.20) 48%, rgba(2,6,23,0.82) 100%);
}

.hero-project-card__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 26px;
}

.hero-project-card__info span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(103, 232, 249, 0.16);
  color: #8af6ff;
  font-size: 13px;
  font-weight: 800;
}

.hero-project-card__info strong {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.6;
  margin-bottom: 8px;
}

.hero-project-card__info small {
  display: block;
  color: rgba(233, 242, 255, 0.8);
  font-size: 13.5px;
  line-height: 1.8;
}

.hero-floating-card {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(10, 17, 30, 0.72);
  border: 1px solid rgba(94, 234, 212, 0.16);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  animation: floatCard 4.4s ease-in-out infinite;
}

.hero-floating-card strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.hero-floating-card span {
  color: rgba(224, 235, 255, 0.78);
  font-size: 13px;
}

.hero-floating-card--one {
  top: 26px;
  left: -18px;
}

.hero-floating-card--two {
  right: -18px;
  bottom: 34px;
  animation-delay: 1.2s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ================================
   Stats
================================ */
.projects-stats {
  padding: 12px 0 28px;
}

.projects-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.project-stat {
  padding: 22px 18px;
  border-radius: 22px;
  text-align: center;
  background: rgba(10, 17, 30, 0.58);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.12),
    inset 0 1px 0 rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}

.project-stat strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.project-stat span {
  color: rgba(224, 235, 255, 0.76);
  font-size: 13.5px;
  line-height: 1.8;
}

/* ================================
   Section Head + Toolbar
================================ */
.projects-section {
  padding: 48px 0 55px;
}

.projects-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 26px;
  margin-bottom: 24px;
}

.projects-section__head h2 {
  color: var(--text);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 0;
}

.projects-section__head p {
  max-width: 520px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.95;
  margin: 0;
}

.projects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  cursor: pointer;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(15, 23, 42, 0.68);
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.filter-btn:hover,
.filter-btn.active {
  color: #06111f;
  background: linear-gradient(135deg, var(--mint), #22d3ee);
  border-color: transparent;
  box-shadow:
    0 12px 28px rgba(94, 234, 212, 0.2),
    0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: translateY(-2px);
}

.projects-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(8, 13, 28, 0.56);
  border: 1px solid rgba(255,255,255,0.06);
  color: #dffcff;
  margin-bottom: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.projects-results-badge span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mint), #22d3ee);
  color: #04111f;
  font-weight: 900;
  font-size: 14px;
}

.projects-results-badge small {
  color: rgba(224, 235, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
}

/* ================================
   Grid & Cards
================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: stretch;
  margin-top: 16px;
}

.lux-project-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.92) 0%, rgba(8, 13, 28, 0.98) 100%);
  border: 1px solid rgba(85, 215, 255, 0.14);
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.25s ease,
    visibility 0.25s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  isolation: isolate;
  opacity: 0;
  transform: translateY(28px);
}

.lux-project-card.in-view,
.lux-project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lux-project-card.is-hidden {
  opacity: 0;
  transform: scale(0.98) translateY(10px);
  pointer-events: none;
}

.lux-project-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: -40%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  transition: opacity 0.4s ease, right 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.lux-project-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94,234,212,0.45), transparent);
  opacity: 0.45;
  pointer-events: none;
}

.lux-project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(68, 230, 255, 0.35);
  box-shadow:
    0 36px 72px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255,255,255,0.03) inset;
}

.lux-project-card:hover::before {
  right: 120%;
  opacity: 1;
}

.lux-project-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: #0b1220;
}

.lux-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease, filter 0.65s ease;
}

.lux-project-card:hover .lux-project-card__image img {
  transform: scale(1.08);
  filter: brightness(1.05) saturate(1.12);
}

.lux-project-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.0) 0%, rgba(3, 8, 20, 0.38) 82%),
    linear-gradient(90deg, rgba(34,211,238,0.06) 0%, transparent 30%, transparent 70%, rgba(59,130,246,0.06) 100%);
  pointer-events: none;
}

.lux-project-card__image::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,234,212,0.16), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}

.project-status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(6, 17, 31, 0.72);
  color: #dffcff;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(94, 234, 212, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.lux-project-card__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 22px 26px;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.lux-project-card__info > span {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(58, 226, 255, 0.12);
  color: #69efff;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(105, 239, 255, 0.18);
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.lux-project-card__info strong {
  color: #fff;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.65;
  margin: 0;
  letter-spacing: -0.02em;
}

.lux-project-card__info p {
  margin: 0;
  color: rgba(224, 235, 255, 0.8);
  font-size: 14.5px;
  line-height: 1.95;
}

.project-meta {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.project-meta li {
  position: relative;
  padding-right: 18px;
  color: rgba(210, 224, 245, 0.82);
  font-size: 14px;
  line-height: 1.9;
}

.project-meta li::before {
  content: "";
  position: absolute;
  right: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3de7ff, #1c8fff);
  box-shadow: 0 0 12px rgba(61, 231, 255, 0.45);
}

.lux-project-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #31d8ff 0%, #1da1f2 100%);
  color: #04111f;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 24px rgba(49, 216, 255, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.22);
  white-space: nowrap;
}

.lux-project-card__link::after {
  content: "←";
  font-size: 14px;
  transition: transform 0.3s ease;
}

.lux-project-card__link:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 28px rgba(49, 216, 255, 0.32),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.lux-project-card__link:hover::after {
  transform: translateX(-4px);
}

/* ================================
   Empty State
================================ */
.empty-projects {
  grid-column: 1 / -1;
  text-align: center;
  padding: 42px 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #dce8ff;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.empty-projects__icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #8af6ff;
  background: radial-gradient(circle, rgba(94,234,212,0.15), rgba(94,234,212,0.03));
  border: 1px solid rgba(94,234,212,0.12);
}

.empty-projects h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.empty-projects p {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(224, 235, 255, 0.76);
  font-size: 14.5px;
  line-height: 2;
}

.empty-projects__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(135deg, #31d8ff 0%, #1da1f2 100%);
  color: #04111f;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(49, 216, 255, 0.22);
}

/* ================================
   Micro interactions
================================ */
.lux-project-card,
.filter-btn,
.lux-project-card__link,
.projects-ghost-btn {
  will-change: transform;
}

/* ================================
   Responsive
================================ */
@media (max-width: 1200px) {
  .projects-hero__grid {
    grid-template-columns: 1fr;
  }

  .projects-hero__visual {
    min-height: auto;
  }

  .hero-project-card,
  .hero-project-card img {
    min-height: 460px;
  }

  .hero-floating-card--one {
    left: 12px;
  }

  .hero-floating-card--two {
    right: 12px;
  }
}

@media (max-width: 1150px) {
  .projects-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .projects-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .projects-hero {
    padding: 20px 0 26px;
  }

  .projects-hero__content h1 {
    font-size: 32px;
    line-height: 1.5;
  }

  .projects-hero__mini-stats {
    grid-template-columns: 1fr;
  }

  .hero-project-card,
  .hero-project-card img {
    min-height: 360px;
  }

  .hero-project-card__info strong {
    font-size: 22px;
  }

  .projects-section {
    padding: 36px 0 46px;
  }

  .projects-toolbar {
    align-items: stretch;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lux-project-card {
    border-radius: 22px;
  }

  .lux-project-card__image {
    height: 220px;
  }

  .lux-project-card__info {
    padding: 18px;
  }

  .lux-project-card__info strong {
    font-size: 20px;
    line-height: 1.8;
  }

  .lux-project-card__link {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .projects-filter {
    flex-direction: column;
  }

  .filter-btn,
  .projects-results-badge {
    width: 100%;
  }

  .projects-section__head h2 {
    font-size: 26px;
  }

  .lux-project-card__image {
    height: 205px;
  }

  .lux-project-card__info > span {
    font-size: 12px;
  }

  .lux-project-card__info p,
  .project-meta li {
    font-size: 13.5px;
  }

  .hero-floating-card {
    min-width: 130px;
    padding: 14px;
  }

  .hero-floating-card strong {
    font-size: 20px;
  }
}
