body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  background: #f4f6fb;
  color: #111;
}

.project-header {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 190px 20px 128px;
  overflow: hidden;
  min-height: 440px;
  margin-top: 104px;
}

.project-header-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomPulse 12s ease-in-out infinite;
  z-index: 0;
}

.project-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 24, 62, 0.75);
  z-index: 1;
}

@keyframes zoomPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.project-header h1,
.project-header p {
  position: relative;
  z-index: 3;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  max-width: min(1100px, calc(100% - 220px));
  margin-left: auto;
  margin-right: auto;
  padding-left: 120px;
  padding-right: 120px;
}

.project-header h1 {
  line-height: 1.12;
}

.social-icons {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-icons .kennext-social-link {
  width: 44px;
  height: 44px;
  font-size: 18px;
}

.social-icons .kennext-social-link:hover {
  transform: translateX(-4px) scale(1.06);
}

.back-btn {
  position: absolute;
  top: 142px;
  left: 28px;
  z-index: 4;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  transition: 0.3s;
}

.back-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.18);
}

.container {
  max-width: 1200px;
  margin: 28px auto;
  padding: 0 18px;
}

.project-main {
  padding: 24px 0;
  display: grid;
  gap: 22px;
}

.card {
  border-radius: 24px;
}

.project-summary,
.project-section,
.other-project-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
  border: 1px solid rgba(12, 30, 56, 0.08);
  box-shadow: 0 18px 45px rgba(11, 19, 40, 0.08);
}

.project-summary {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(46, 116, 201, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 248, 253, 0.96));
}

.project-summary::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #0f3b78, #2e74c9, #0f3b78);
}

.project-summary-eyebrow {
  margin: 0 0 14px;
  color: #2e74c9;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-meta {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f8fc);
  border: 1px solid rgba(12, 30, 56, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.project-meta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(46, 116, 201, 0.16), rgba(46, 116, 201, 0.92), rgba(46, 116, 201, 0.16));
}

.project-meta span {
  display: block;
  margin-bottom: 8px;
  color: #6b7b92;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
}

.project-meta strong {
  display: block;
  color: #0a1f3d;
  font-size: 1.08rem;
  line-height: 1.55;
}

.project-section {
  position: relative;
  overflow: hidden;
  padding: 28px;
  display: grid;
  gap: 18px;
}

.project-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(46, 116, 201, 0.15), #2e74c9, rgba(46, 116, 201, 0.15));
}

.project-section--background {
  background:
    radial-gradient(circle at top right, rgba(46, 116, 201, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff, #f3f7fd);
}

.project-section--background .project-section-head {
  padding-bottom: 2px;
}

.project-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.project-section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(46, 116, 201, 0.12);
  color: #2e74c9;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-section h3 {
  margin: 0;
  color: #001f4d;
  font-size: 1.45rem;
  line-height: 1.25;
}

.project-section-copy {
  color: #22324b;
  line-height: 1.9;
  font-size: 1.01rem;
  max-width: 820px;
}

.project-section-copy p {
  margin: 0;
}

.project-section-copy p + p {
  margin-top: 12px;
}

.project-section-copy ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.project-section-copy li {
  line-height: 1.75;
}

.project-section--background .project-section-copy {
  font-size: 1.04rem;
}

.project-section--gallery {
  gap: 20px;
}

.project-gallery {
  display: grid;
  gap: 12px;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.img-carousel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 190px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(180deg, #f8fbff, #e8eef8);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 28px rgba(11, 19, 40, 0.08);
}

.img-carousel img:hover {
  transform: scale(1.05);
}

#carouselModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#carouselModal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
  padding: 12px;
}

#carouselPrev { left: 20px; }
#carouselNext { right: 20px; }
#carouselClose {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  cursor: pointer;
  color: #fff;
}

.other-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 12px;
}

.other-project-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: #111;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease,
    background 0.45s ease;
  will-change: transform;
}

.other-project-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 50px rgba(11, 19, 40, 0.16);
  background: #fff;
}

.other-project-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fbff, #e8eef8);
}

.other-project-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  background: linear-gradient(180deg, #f8fbff, #e8eef8);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.other-project-card:hover .other-project-img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.other-project-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 46, 0.34));
  pointer-events: none;
}

.other-project-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0a1f3d;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(11, 19, 40, 0.14);
}

.other-project-body {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.other-project-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #001f4d;
  margin: 0;
  line-height: 1.35;
}

.other-project-client,
.other-project-location {
  margin: 0;
  color: #5f6f85;
  font-size: 0.92rem;
  line-height: 1.55;
}

.other-project-location {
  color: #2e74c9;
  font-weight: 600;
}

@media (max-width: 768px) {
  .project-header {
    margin-top: 84px;
    padding-top: 164px;
  }

  .back-btn {
    top: 126px;
    left: 16px;
  }

  .project-header h1,
  .project-header p {
    max-width: calc(100% - 32px);
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-summary-grid,
  .other-projects-grid {
    grid-template-columns: 1fr;
  }

  .project-summary,
  .project-section {
    padding: 20px;
  }

  .project-section-head {
    align-items: flex-start;
  }

  .project-section h3 {
    font-size: 1.26rem;
  }
}
