:root {
  --titles: #171717;
  --subtitles: #525252;
  --border1: #4b5563;
  --accent1: #2563eb;
  --accent2: #102a43;
  --white1: #ffffff;
  --card-color: #1f2937;
  --tabs-color: #e2e8f0;
}

.projects-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  overflow: hidden;
  margin-top: 81px;
  padding: 50px 0;
  background:
    radial-gradient(circle at 12% 18%,
      rgba(37, 99, 235, 0.16) 0%,
      rgba(37, 99, 235, 0.05) 20%,
      transparent 46%),
    radial-gradient(circle at 80% 20%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 30%),
    linear-gradient(135deg, #0f2f4a 0%, var(--accent2) 55%, #153d5f 100%);
  isolation: isolate;
}

.projects-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0) 24%,
      rgba(0, 0, 0, 0.14) 100%);
  pointer-events: none;
  z-index: 1;
}

/* LEFT SIDE */
.projects-hero-content {
  position: relative;
  z-index: 2;
  padding-left: 160px;
  padding-right: 60px;
}

.projects-hero-content>* {
  opacity: 0;
  transform: translateY(28px);
  animation: projectsHeroFadeUp 0.85s ease forwards;
}

.projects-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px 16px;
  color: #8ed0ff;
  text-transform: uppercase;
  border-left: 3px solid #1e8fff;
  background: linear-gradient(90deg,
      rgba(30, 143, 255, 0.2),
      rgba(30, 143, 255, 0.06));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation-delay: 0.1s;
}

.projects-title {
  margin-bottom: 20px;
  color: var(--accent1);
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  animation-delay: 0.24s;
}

.projects-hero-subtitle {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
  animation-delay: 0.38s;
  text-align: justify;
}

/* DIVIDER */
.divider {
  width: 110px;
  height: 2px;
  margin-bottom: 28px;
  background: linear-gradient(90deg,
      rgba(37, 99, 235, 1) 0%,
      rgba(255, 255, 255, 0.4) 100%);
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.16);
  animation-delay: 0.5s;
}

/* STATS */
.projects-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  animation-delay: 0.62s;
}

.stat-item {
  min-width: 220px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.05) 100%);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.stat-item h2 {
  margin: 0 0 8px;
  font-size: 40px;
  color: var(--white1);
}

.stat-item span {
  display: block;
  font-size: 14px;
  letter-spacing: 1.2px;
  color: #cfd9e6;
}

/* RIGHT IMAGE */
.projects-hero-image-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  overflow: hidden;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  box-shadow: -24px 0 50px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateX(36px) scale(1.02);
  animation: pagmHeroImageIn 1s ease forwards;
  animation-delay: 0.22s;
}

.projects-hero-image-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(16, 42, 67, 0.2) 0%,
      rgba(16, 42, 67, 0.04) 28%,
      rgba(16, 42, 67, 0) 100%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 25%,
      rgba(0, 0, 0, 0.12) 100%);
  z-index: 1;
  pointer-events: none;
}

.projects-hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  animation: projectsHeroImageZoom 9s ease-out forwards;
  will-change: transform;
}

/* ANIMATIONS */
@keyframes projectsHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes projectsHeroImageIn {
  from {
    opacity: 0;
    transform: translateX(36px) scale(1.02);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes projectsHeroImageZoom {
  from {
    transform: scale(1.03);
  }

  to {
    transform: scale(1.08);
  }
}

/* =========================
   1400
========================= */
@media (max-width: 1400px) {
  .projects-hero-content {
    padding-left: 100px;
    padding-right: 40px;
  }

  .projects-eyebrow {
    font-size: 18px;
  }

  .projects-hero-image-container {
    height: 470px;
    border-top-left-radius: 70px;
    border-bottom-left-radius: 70px;
  }
}

/* =========================
   1200
========================= */
@media (max-width: 1200px) {
  .projects-hero {
    grid-template-columns: 1fr 1fr;
  }

  .projects-hero-content {
    padding-left: 60px;
    padding-right: 32px;
  }

  .projects-eyebrow {
    font-size: 18px;
  }

  .stat-item {
    min-width: 190px;
  }

  .stat-item h2 {
    font-size: 36px;
  }

  .projects-hero-image-container {
    height: 420px;
    border-top-left-radius: 56px;
    border-bottom-left-radius: 56px;
  }
}

/* =========================
   1024
========================= */
@media (max-width: 1024px) {
  .projects-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 40px;
  }

  .projects-hero-image-container {
    order: 1;
    height: 320px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    box-shadow: none;
  }

  .projects-hero-image-container img {
    border-top-left-radius: 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
  }

  .projects-hero-content {
    order: 2;
    padding-left: 0;
    padding-right: 0;
  }

  .projects-eyebrow {
    font-size: 16px;
  }

  .projects-hero-subtitle {
    max-width: 100%;
    margin-bottom: 28px;
  }

  .divider {
    width: 90px;
    margin-bottom: 28px;
  }

  .projects-stats {
    flex-direction: column;
    gap: 14px;
  }

  .stat-item {
    width: 100%;
    min-width: 100%;
    padding: 20px;
  }

  .stat-item h2 {
    font-size: 34px;
  }
}

/* =========================
   768
========================= */
@media (max-width: 768px) {
  .projects-hero {
    gap: 28px;
    padding: 28px 20px;
  }

  .projects-eyebrow {
    font-size: 14px;
    margin-bottom: 14px;
    padding: 7px 12px;
  }

  .projects-title {
    margin-bottom: 16px;
  }

  .projects-hero-subtitle {
    margin-bottom: 24px;
  }

  .divider {
    width: 72px;
    margin-bottom: 24px;
  }

  .projects-stats {
    flex-direction: column;
    gap: 14px;
  }

  .stat-item {
    width: 100%;
    min-width: 100%;
    padding: 20px;
  }

  .stat-item h2 {
    font-size: 30px;
  }

  .projects-hero-image-container {
    height: 260px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }

  .projects-hero-image-container img {
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
  }
}

/* =========================
   480
========================= */
@media (max-width: 480px) {
  .projects-hero {
    gap: 24px;
    padding: 28px 16px;
  }

  .projects-eyebrow {
    font-size: 13px;
    letter-spacing: 1.3px;
    padding: 6px 10px;
  }

  .divider {
    width: 56px;
  }

  .projects-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-item {
    width: 100%;
    min-width: 100%;
    padding: 18px 16px;
  }

  .stat-item h2 {
    font-size: 28px;
  }

  .stat-item span {
    font-size: 13px;
    letter-spacing: 0.8px;
  }

  .projects-hero-image-container {
    height: 220px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }

  .projects-hero-image-container img {
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
  }
}

/* PROJECT GRID */
.projects-main {
  padding: 50px 160px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  background: var(--white1);
  border: 1px solid var(--border1);
  border-radius: 10px;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.project-card img {
  width: 100%;
  height: 300px;
  display: block;
  background-size: cover;
  border-radius: 10px 10px 0 0;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-info {
  padding: 30px;
  background: var(--white1);
}

.project-info h3 {
  margin-bottom: 10px;
  color: var(--titles);
}

.project-info p {
  line-height: 1.6;
  color: var(--subtitles);
}

/* =========================
   1400
========================= */
@media (max-width: 1400px) {
  .projects-main {
    padding: 50px 100px;
  }

  .project-construction-container {
    max-width: 100%;
  }
}

/* =========================
   1200
========================= */
@media (max-width: 1200px) {
  .projects-main {
    padding: 50px 60px;
  }

  .project-grid {
    gap: 18px;
  }

  .project-info {
    padding: 24px;
  }
}

/* =========================
   1024
========================= */
@media (max-width: 1024px) {
  .projects-main {
    padding: 36px 40px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .project-info {
    padding: 22px;
  }
}

/* =========================
   768
========================= */
@media (max-width: 768px) {
  .projects-main {
    padding: 28px 20px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-info {
    padding: 20px;
  }

  .project-info p {
    line-height: 1.6;
  }
}

/* =========================
   480
========================= */
@media (max-width: 480px) {
  .projects-main {
    padding: 28px 16px;
  }

  .project-info {
    padding: 18px 16px;
  }
}

/* ENVIRONMENTAL */
.environmental {
  padding: 50px 160px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.environmental-container {
  width: 100%;
}

.environmental-intro {
  margin-bottom: 40px;
}

.environmental-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  align-items: stretch;
}

.environmental-card {
  position: relative;
  padding: 25px;
  border: 1px solid var(--tabs-color);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* TOP ACCENT LINE */
.environmental-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent1), rgba(37, 99, 235, 0.3));
  opacity: 0.8;
}

/* HOVER */
.environmental-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 1),
      rgba(248, 251, 255, 0.96));
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border-color: rgba(37, 99, 235, 0.2);
}

.environmental-card-title {
  margin-bottom: 10px;
  font-weight: 700;
  color: #222;
  transition: color 0.3s ease;
}

.environmental-card:hover .environmental-card-title {
  color: var(--accent1);
}

.environmental-card-title span {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: var(--accent1);
}

.environmental-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--subtitles);
}

/* =========================
   1400
========================= */
@media (max-width: 1400px) {
  .environmental {
    padding: 50px 100px;
  }

  .environmental-intro {
    margin-bottom: 36px;
  }

  .environmental-grid {
    gap: 22px;
  }
}

/* =========================
   1200
========================= */
@media (max-width: 1200px) {
  .environmental {
    padding: 50px 60px;
  }

  .environmental-grid {
    gap: 20px;
  }

  .environmental-card {
    padding: 24px 22px;
  }
}

/* =========================
   1024
========================= */
@media (max-width: 1024px) {
  .environmental {
    padding: 36px 40px;
  }

  .environmental-intro {
    margin-bottom: 28px;
  }

  .environmental-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .environmental-card {
    padding: 22px 20px;
  }
}

/* =========================
   768
========================= */
@media (max-width: 768px) {
  .environmental {
    padding: 28px 20px;
  }

  .environmental-intro {
    margin-bottom: 24px;
  }

  .environmental-grid {
    gap: 16px;
  }

  .environmental-card {
    padding: 20px 18px;
  }
}

/* =========================
   480
========================= */
@media (max-width: 480px) {
  .environmental {
    padding: 28px 16px;
  }

  .environmental-card {
    padding: 18px 16px;
  }
}

/* MILITARY */
.military {
  padding: 50px 160px;
}

.military-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.06),
      transparent 35%),
    linear-gradient(135deg, #0f2f4a 0%, var(--accent2) 55%, #153d5f 100%);
  color: white;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.military-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.military-card.light {
  background: #f1f1f1;
  color: black;
}

.military-card img {
  width: 150px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.military-card:hover img {
  transform: translateY(-2px);
}

.military-card h3 {
  margin: 0 0 8px;
}

.military-card p {
  margin: 0;
  text-align: justify;
}

.military-card button {
  margin-top: 15px;
  padding: 10px 20px;
  background: var(--accent1);
  color: white;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

/* =========================
   1400
========================= */
@media (max-width: 1400px) {
  .military {
    padding: 50px 100px;
  }

  .military-card {
    padding: 28px;
  }
}

/* =========================
   1200
========================= */
@media (max-width: 1200px) {
  .military {
    padding: 50px 60px;
  }

  .military-card {
    padding: 26px;
    gap: 18px;
  }

  .military-card img {
    width: 130px;
  }
}

/* =========================
   1024
========================= */
@media (max-width: 1024px) {
  .military {
    padding: 36px 40px;
  }

  .military-card {
    padding: 24px;
    gap: 16px;
  }

  .military-card img {
    width: 120px;
  }
}

/* =========================
   768
========================= */
@media (max-width: 768px) {
  .military {
    padding: 28px 20px;
  }

  .military-card {
    flex-direction: column;
    padding: 22px;
    gap: 14px;
  }

  .military-card img {
    width: 100px;
  }

  .military-card button {
    align-self: flex-start;
  }
}

/* =========================
   480
========================= */
@media (max-width: 480px) {
  .military {
    padding: 28px 16px;
  }

  .military-card {
    padding: 20px;
  }

  .military-card img {
    width: 90px;
  }
}

/* CIVIL */
.civil {
  background:
    radial-gradient(circle at top left,
      rgba(255, 255, 255, 0.06),
      transparent 35%),
    linear-gradient(135deg, #0f2f4a 0%, var(--accent2) 55%, #153d5f 100%);
  padding: 50px 160px;
}

.civil p {
  color: var(--white1);
  text-align: justify;
}

.civil-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  /* ✅ tighter */
  align-items: stretch;
}

.civil-card,
.civil-cta {
  height: 100%;
  min-height: 220px;
  /* ✅ reduced */
}

/* CARD */
.civil-card {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  padding: 28px 18px 18px;
  /* ✅ reduced */
  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.civil-card::after {
  content: "";
  margin-top: auto;
  width: 60px;
  /* ✅ slightly shorter */
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  display: block;
}

.civil-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.14);
}

.civil-card h4 {
  margin-bottom: 10px;
  /* ✅ tighter */
  color: var(--white1);
}

.civil-card p {
  color: var(--white1);
  margin-bottom: 16px;
  /* ✅ tighter */
}

/* CTA CARD */
.civil-cta {
  background: var(--accent1);
  padding: 28px 28px 28px;
  /* ✅ reduced */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.civil-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.civil-cta h3 {
  margin-bottom: 10px;
  /* ✅ tighter */
  color: white;
}

.civil-cta p {
  margin-bottom: 18px;
  /* ✅ tighter */
  color: white;
}

.civil-cta a {
  display: inline-block;
  width: 100%;
  padding: 16px;
  /* ✅ smaller */
  background: white;
  color: var(--accent1);
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  margin-top: auto;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.civil-cta a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
}

/* =========================
   1400
========================= */
@media (max-width: 1400px) {
  .civil {
    padding: 50px 100px;
  }

  .civil-grid {
    gap: 14px;
  }

  .civil-card,
  .civil-cta {
    min-height: 210px;
  }
}

/* =========================
   1200
========================= */
@media (max-width: 1200px) {
  .civil {
    padding: 50px 60px;
  }

  .civil-grid {
    gap: 14px;
  }

  .civil-card,
  .civil-cta {
    min-height: 200px;
  }

  .civil-card {
    padding: 24px 16px 16px;
  }

  .civil-cta {
    padding: 24px;
  }

  .civil-cta a {
    padding: 14px;
  }
}

/* =========================
   1024
========================= */
@media (max-width: 1024px) {
  .civil {
    padding: 36px 40px;
  }

  .civil-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .civil-card,
  .civil-cta {
    min-height: 190px;
  }
}

/* =========================
   768
========================= */
@media (max-width: 768px) {
  .civil {
    padding: 28px 20px;
  }

  .civil-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .civil-card,
  .civil-cta {
    min-height: 0;
    height: auto;
  }
}

/* =========================
   480
========================= */
@media (max-width: 480px) {
  .civil {
    padding: 28px 16px;
  }
}

#buttonContainer {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 2;
}

.stream-button {
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
}

@media (max-width: 768px) {
  #buttonContainer {
    flex-direction: column;
    align-items: flex-end;
    bottom: 10px;
    right: 10px;
  }

  .stream-button {
    font-size: 13px;
    padding: 6px 12px;
    width: auto;
  }
}