/* ===============================
   HERO SECTION
================================ */

.project-hero {
  background-image: url("../img/projects/header-bg.png");
  background-position: center;
  background-blend-mode: darken;
  background-size: 89% 110%;
  z-index: 999;
  padding: clamp(3rem, 6vw, 5rem) 1rem;
  text-align: center;
}

.project-hero-container {
  max-width: 475px;
  margin: auto;
}

.project-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #0a2540;
}

.project-hero h1 span {
  color: #2f80ed;
}

.project-hero p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #001F3F;
}


/* ===============================
   PROJECT SHOWCASE
================================ */

.project-showcase {
  padding: clamp(3rem, 6vw, 6rem) 1rem;
  background: #ffffff;
}

.project-container {
  max-width: 1240px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

/* Header Top */

.header-top {
  max-width: 1240px;
  margin: auto;
  grid-template-columns: 1fr 2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-header-row h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: #0a2540;
}

.project-header-row h2 span {
  color: #2f80ed;
}

.view-details-btn {
  padding: 0.3rem 1.5rem;
  border: 1px solid #2f80ed;
  background: transparent;
  color: #2f80ed;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
}

.project-description {
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: #001F3F;
  font-family: var(--body-font);
  font-weight: 400;
  max-width: 50rem;
}

/* LEFT CONTENT */

/* BULLETS */

.project-features {
  list-style: none;
  padding: 0;
  margin: 0 -1.5rem 2rem;
  display: grid;
  gap: 0.6rem;
}

.project-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.85rem;
  color: #0a2540;
}


/* META CARDS */

.project-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.meta-card {
  background: #f4f9ff;
  padding: 1rem;
  border-radius: 8px;
}

.meta-card span {
  font-size: 0.7rem;
  color: #5f6f82;
  display: block;
}

.meta-card strong {
  font-size: 0.85rem;
  color: #0a2540;
}


/* ===============================
   IMAGE GALLERY
================================ */

.project-gallery {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.project-main-image img {
  width: 100%;
  min-height: 390px;
  max-height: 290px;
  border-radius: 20px;
  object-fit: cover;
  border: 5px solid #1072BB;
}

.project-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-thumbnails img {
  width: 70px;
  height: 60px;
  border-radius: 8px;
  cursor: pointer;
  object-fit: cover;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 992px) {
  .project-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-thumbnails {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .project-thumbnails img {
    width: 60px;
  }

}

@media (max-width: 576px) {

  .project-header-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-features li {
    font-size: 0.8rem;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

}

/* EXTRA WRAPPER */
.project-extra {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 0.5rem;
}

/* Reverse layout (dark sections) extra wrapper proportion */
.reverse-layout .project-extra {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
}

@media (max-width: 900px) {
  .project-extra,
  .reverse-layout .project-extra {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* META STACKED */
.project-meta-vertical {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 160px;
}

.project-meta-vertical .meta-card {
  background: #f4f9ff;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #dbeaf7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-meta-vertical .meta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 114, 187, 0.08);
}

/* HIGHLIGHTS CARD */
.project-highlights-card {
  background: #ffffff;
  border: 1px solid #e2edfd;
  border-radius: 18px;
  padding: 1.75rem 1.65rem;
  box-shadow: 0 12px 36px rgba(16, 114, 187, 0.07);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-highlights-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #2f80ed 0%, #1072BB 100%);
  border-radius: 4px 0 0 4px;
}

.project-highlights-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(16, 114, 187, 0.13);
  border-color: #bcd9fa;
}

.highlights-title {
  font-size: 0.9rem;
  font-weight: 750;
  color: #0a2540;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #edf4fc;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.highlights-title i {
  color: #2f80ed;
  font-size: 0.95rem;
  background: #eef6ff;
  padding: 0.45rem;
  border-radius: 8px;
}

.highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.highlights-list li {
  font-size: 0.92rem;
  color: #2c3e50;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.55;
  transition: transform 0.2s ease, color 0.2s ease;
}

.highlights-list li:hover {
  transform: translateX(4px);
  color: #0a2540;
}

.bullet-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eef6ff 0%, #d8eafe 100%);
  color: #2f80ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 6px rgba(47, 128, 237, 0.18);
}

/* Dark Theme (Section 2 & 4) */
.project-dark .project-highlights-card {
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.project-dark .project-highlights-card::before {
  background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
}

.project-dark .highlights-title {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.project-dark .highlights-title i {
  color: #7dd3fc;
  background: rgba(255, 255, 255, 0.15);
}

.project-dark .highlights-list li {
  color: #f1f5f9;
  line-height: 1.55;
}

.project-dark .highlights-list li:hover {
  color: #ffffff;
}

.project-dark .bullet-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* GALLERY LAYOUT ADJUSTMENTS */
.project-gallery {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.project-main-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.project-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.project-thumbnails img {
  width: 70px;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.project-thumbnails img.active,
.project-thumbnails img:hover {
  opacity: 1;
  transform: scale(1.05);
  border: 2px solid #2f80ed;
}

@media (max-width: 992px) {

  .project-container {
    grid-template-columns: 1fr;
  }

  .project-extra {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-thumbnails {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .arrow-img {
    display: none;
  }
}

/* Section 2 */

/* DARK SECTION */
.project-dark {
  background: #1f6fb2;
  padding: clamp(3rem, 1vw, 6rem) 1rem;
}

.project-dark .project-container {
  max-width: 1200px;
  margin: auto;
}

.project-main-image img {
  border: 5px solid #FFFFFF;
  max-width: 400px;
}

/* Reverse Layout */
.reverse-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}

/* Light Text */
.light-text h2,
.light-text p,
.light-text li {
  color: #ffffff;
}

.light-text h2 span {
  color: #bfe3ff;
}

/* Button */
.light-btn {
  border: 1px solid #ffffff;
  color: #ffffff;
}

/* Meta cards */
.light-card {
  background: #ffffff;
}

.project-dark .project-features li::before {
  background: #ffffff;
}

/* Thumbnails left style */
.vertical-left {
  order: 0;
}

/* Arrow white */
.light-arrow {
  filter: brightness(0) invert(1);
  left: -70px;
  top: -32px;
}

.project-dark .project-header-row h2,
.project-dark .project-description {
  color: #ffff;
}

@media (max-width: 992px) {

  .reverse-layout {
    grid-template-columns: 1fr;
  }

  .project-dark .project-gallery {
    grid-template-columns: 1fr;
  }

  .vertical-left {
    flex-direction: row;
    justify-content: center;
  }

}

.meta-card span {
  color: #1072BB;
  font-weight: 700;
  font-family: var(--body-font);
  font-size: 15px;
}

.meta-card strong {
  font-weight: 600;
  color: #0a2540;
  display: block;
  font-size: 14px;
}


/* =========================
   SCROLL REVEAL ANIMATION
========================= */

.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger effect for children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal-stagger.active>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal-stagger.active>*:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal-stagger.active>*:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal-stagger.active>*:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal-stagger.active>*:nth-child(5) {
  transition-delay: 0.5s;
}


/* Footer CSS*/

.home6-footer {
  background: #EFF1F9;
  padding: clamp(1rem, 1vw, 5rem) 0 1rem;
  color: #5f6f82;
}

.home6-container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 0 2rem; */
}

/* ================= SUBSCRIBE ================= */

.home6-subscribe {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.home6-sub-left h3 {
  font-size: 2.3rem;
  color: #0a2540;
  margin-bottom: 0.5rem;
}

.home6-sub-left p {
  font-size: 0.95rem;
}

.home6-sub-form {
  display: flex;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.home6-sub-form input {
  border: none;
  padding: 0.8rem 1rem;
  min-width: 380px;
  outline: none;
}

.home6-sub-form button {
  background: #1072BB;
  color: #fff;
  border: none;
  padding: 0 2.5rem;
  cursor: pointer;
  min-width: 250px;
  font-size: 0.85rem;
  transition: 0.3s;
}

.home6-sub-form button:hover {
  background: #166db1;
}

/* ================= GRID ================= */

.home6-grid {
  display: grid;
  grid-template-columns: 2.3fr 1.6fr 1fr 1fr;
  gap: 2rem;
  margin: 1.5rem 0;
}

.home6-col h4 {
  margin-bottom: 1.5rem;
  color: #0a2540;
  font-size: 25px;
  font-weight: 500;
}

.home6-col ul {
  list-style: none;
  padding: 0;
}

.home6-col li {
  margin-bottom: 1.2rem;
}

.home6-col a {
  text-decoration: none;
  color: #5f6f82;
  transition: 0.3s;
}

.home6-col a:hover {
  color: #2f80ed;
}

.home6-logo {
  min-width: 350px;
  margin-bottom: 1rem;
}

.home6-social {
  margin-top: 1rem;
}

.home6-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 50%;
  margin-right: 0.5rem;
  color: #2f80ed;
  transition: 0.3s;
}

.home6-social a:hover {
  background: #2f80ed;
  color: #fff;
}

/* Divider */

.home6-divider {
  border: none;
  height: 4px;
  background: #ffffff67;
  margin: 2rem 0;
}

/* Bottom */

.home6-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #8a97a8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

  .home6-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 768px) {

  .home6-subscribe {
    flex-direction: column;
    align-items: flex-start;
  }

  .home6-sub-form {
    width: 100%;
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 8px;
  }

  .home6-sub-form input {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.8rem 1rem;
  }

  .home6-sub-form button {
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 999px;
    padding: 0.8rem 1rem;
  }

  .home6-logo {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .home6-grid {
    grid-template-columns: 1fr;
  }

}