/* =============================================================
   CDA INFRA PROJECTS - ECC CONTRACTING MATCHED HOMEPAGE STYLES
   Exact Architecture, Visuals, and Interactive Components
   ============================================================= */

:root {
  --eccAccent: #f57c00;
  --eccAccentHover: #ff9100;
  --eccDark: #090909;
  --eccDarker: #050505;
  --eccBlue: #121212;
  --eccCardBg: #121212;
  --eccBorder: rgba(255, 255, 255, 0.12);
  --eccTextMuted: #8fa5be;
}

body {
  background-color: var(--eccDark);
  color: #ffffff;
  font-family:
    "DM Sans",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  overflow-x: hidden;
}

/* -------------------------------------------------------------
   1. SITE HEADER — Home page specific overrides
   (Base header styles are in components.css, shared across all pages)
   ------------------------------------------------------------- */

/* -------------------------------------------------------------
   ECC SIGNATURE BUTTON SYSTEM
   ------------------------------------------------------------- */
.ecc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}

@media (min-width: 768px) {
  .ecc-btn {
    font-size: 16px;
    gap: 12px;
    padding: 12px 30px;
  }
}

.ecc-btn::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0%;
  background-color: var(--eccAccent);
  transition: height 0.35s ease;
  z-index: -1;
}

.ecc-btn:hover::after {
  height: 100%;
}

.ecc-btn:hover {
  color: #ffffff;
  border-color: var(--eccAccent);
}

.ecc-btn .btn-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}

.ecc-btn:hover .btn-arrow {
  transform: translateX(6px);
}

.ecc-btn.primary {
  background-color: var(--eccAccent);
  border-color: var(--eccAccent);
  color: #ffffff;
}

.ecc-btn.primary::after {
  background-color: var(--eccAccentHover);
}

.ecc-btn.primary:hover {
  border-color: var(--eccAccentHover);
}

/* -------------------------------------------------------------
   1. HERO SHOWCASE SECTION (100vh Fullscreen Cinematic)
   ------------------------------------------------------------- */
.main-slider-home {
  position: relative;
  height: 100vh;
  min-height: 600px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 50px;
  overflow: hidden;
  background-color: var(--eccDarker);
}

@media (min-width: 768px) {
  .main-slider-home {
    min-height: 650px;
    padding-bottom: 70px;
  }
}

/* (merged into .hero-slider-bg above) */

.hero-slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-slides-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 400%;
  transition: transform 1s cubic-bezier(0.8, 0, 0.3, 1);
  will-change: transform;
}

.hero-slide-image {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 650px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transform: scale(1);
  transition: transform 0s;
}

.hero-slide-image.active {
  transform: scale(1.12);
  transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-slide-clone {
  transform: scale(1.12) !important;
  transition: none !important;
}

.hero-slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 9, 0) 0%,
    rgba(9, 9, 9, 0) 40%,
    rgba(9, 9, 9, 0.55) 65%,
    rgba(9, 9, 9, 0.92) 90%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-content-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .hero-content-wrap {
    padding: 0 30px;
  }
}

@media (min-width: 1024px) {
  .hero-content-wrap {
    padding: 0 40px;
  }
}

.hero-title-box {
  max-width: 900px;
}

.hero-title {
  font-size: clamp(32px, 6vw, 70px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: #f7f7f7;
  margin-bottom: 20px;
  text-transform: none;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: clamp(42px, 5.2vw, 70px);
    line-height: 1.07;
    margin-bottom: 28px;
  }
}

/* Per-slide content animation */
.hero-slide-content {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.hero-slide-content.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide-content.active .hero-title {
  animation: heroTitleIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-slide-content.active .hero-slide-btn {
  animation: heroBtnIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

@keyframes heroTitleIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBtnIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Autoplay progress bar */
.hero-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--eccAccent);
  transition: width 0.1s linear;
}

.hero-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

@media (min-width: 768px) {
  .hero-controls-bar {
    padding-top: 25px;
    margin-top: 40px;
    flex-wrap: nowrap;
  }
}

.slides-frac {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .slides-frac {
    font-size: 20px;
  }
}

.slides-frac .tot {
  color: var(--eccTextMuted);
  font-size: 16px;
  font-weight: 400;
}

.slides-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(18, 18, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .nav-arrow-btn {
    width: 48px;
    height: 48px;
  }
}

.nav-arrow-btn:hover {
  background: var(--eccAccent);
  border-color: var(--eccAccent);
}

.expertise-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

@media (min-width: 768px) {
  .expertise-controls-bar {
    padding-top: 25px;
    margin-top: 40px;
    flex-wrap: nowrap;
  }
}

.expertise-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-headings);
}

.expertise-curr {
  font-size: 28px;
  font-weight: 900;
  color: var(--eccAccent);
}

.expertise-sep {
  font-size: 18px;
  font-weight: 700;
  color: var(--eccTextMuted);
}

.expertise-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--eccTextMuted);
}

/* -------------------------------------------------------------
   2. REUSABLE SECTION HEADINGS (ECC Header Accent Style)
   ------------------------------------------------------------- */
.ecc-section {
  padding: 60px 0;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .ecc-section {
    padding: 80px 0;
  }
}

@media (min-width: 1024px) {
  .ecc-section {
    padding: 100px 0;
  }
}

.ecc-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .ecc-container {
    padding: 0 30px;
  }
}

@media (min-width: 1024px) {
  .ecc-container {
    padding: 0 40px;
  }
}

.header-accent {
  border-left: 4px solid var(--eccAccent);
  padding-left: 15px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .header-accent {
    border-left: 5px solid var(--eccAccent);
    padding-left: 25px;
    margin-bottom: 25px;
  }
}

.header-accent-title {
  font-size: clamp(48px, 5.5vw, 72px);
  font-weight: 600;
  letter-spacing: -1px;
  color: #ffffff;
  margin: 0;
  line-height: 1.05;
}

.subheader-text {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.section-body-p {
  font-size: 16px;
  color: var(--eccTextMuted);
  line-height: 1.6;
  letter-spacing: 0.2px;
  max-width: 960px;
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .section-body-p {
    font-size: 18px;
  }
}

/* -------------------------------------------------------------
   2. WELCOME & STATS SECTION
   ------------------------------------------------------------- */
.welcome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 1024px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.welcome-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .welcome-button-row {
    gap: 20px;
    margin-bottom: 60px;
  }
}

/* 3 Counters Grid with Dark Blue Box */
.counters-banner {
  background: var(--eccCardBg);
  border: 1px solid var(--eccBorder);
  border-radius: 12px;
  padding: 30px 20px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 25px;
  text-align: left;
}

@media (min-width: 768px) {
  .counters-banner {
    grid-template-columns: repeat(3, 1fr);
    padding: 50px 40px;
    gap: 35px;
  }
}

.counter-item {
  border-left: 3px solid var(--eccAccent);
  padding-left: 20px;
  display: flex;
  flex-direction: column-reverse;
}

.counter-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--eccTextMuted);
  margin-top: 8px;
}

.counter-number {
  font-size: clamp(42px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}

.counter-number span {
  color: var(--eccAccent);
}

/* Certifications Row */
.certifications-section-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 60px;
  margin-bottom: 25px;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

@media (min-width: 768px) {
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .certifications-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-card {
  background: rgba(26, 52, 83, 0.35);
  border: 1px solid var(--eccBorder);
  border-radius: 8px;
  padding: 25px 20px;
  transition: all 0.3s ease;
}

.cert-card:hover {
  border-color: var(--eccAccent);
  transform: translateY(-4px);
}

.cert-badge-tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--eccAccent);
  margin-bottom: 8px;
}

.cert-name {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.cert-desc {
  font-size: 13px;
  color: var(--eccTextMuted);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   3. EXPERTISE SECTION (Expanding Horizontal Accordion)
   ------------------------------------------------------------- */
.feature-menu-wrap {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 768px) {
  .feature-menu-wrap {
    margin-top: 40px;
  }
}

.feature-menu-item {
  display: none;
}

.feature-menu-item.visible {
  display: block;
  animation: expertise-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-menu-item.leaving {
  display: block;
  animation: expertise-slide-out 0.4s cubic-bezier(0.4, 0, 1, 1) both;
}

@keyframes expertise-slide-in {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes expertise-slide-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-60px);
  }
}

@media (min-width: 1024px) {
  .feature-menu-wrap {
    flex-direction: row;
    height: 560px;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--eccBorder);
  }

  .feature-menu-item {
    flex: 1 0 33.333%;
    margin: 0;
    overflow: hidden;
    transition: flex-grow 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border-right: 1px solid var(--eccBorder);
    cursor: pointer;
    display: none;
    will-change: flex-grow;
  }

  .feature-menu-item.visible {
    display: block;
    animation: expertise-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .feature-menu-item.leaving {
    display: block;
    animation: expertise-slide-out 0.4s cubic-bezier(0.4, 0, 1, 1) both;
  }

  .feature-menu-item:last-child {
    border-right: none;
  }

  .feature-menu-item:hover,
  .feature-menu-item.active {
    flex-grow: 2.5;
  }
}

.feature-menu-item {
  position: relative;
  height: 400px;
  background: var(--eccCardBg);
  overflow: hidden;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .feature-menu-item {
    height: 480px;
  }
}

@media (min-width: 1024px) {
  .feature-menu-item {
    height: 100%;
    border-radius: 0;
  }
}

.feature-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
}

.feature-menu-item:hover .feature-img {
  transform: scale(1.08);
}

.feature-menu-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--eccAccent);
  transition: width 0.4s ease;
  z-index: 5;
}

.feature-menu-item:hover::before,
.feature-menu-item.active::before {
  width: 100%;
}

.feature-menu-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 25px;
  text-decoration: none;
  background: transparent;
  z-index: 2;
}

@media (min-width: 768px) {
  .feature-menu-link {
    padding: 35px;
  }
}

.feature-menu-link > div {
  position: relative;
  z-index: 1;
}

.feature-menu-link > div::before {
  content: "";
  position: absolute;
  bottom: -35px;
  left: -35px;
  right: -35px;
  height: 160%;
  background: linear-gradient(
    to top,
    rgba(9, 9, 9, 0.95) 0%,
    rgba(9, 9, 9, 0.85) 35%,
    rgba(9, 9, 9, 0.3) 75%,
    rgba(9, 9, 9, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.feature-heading {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

@media (min-width: 768px) {
  .feature-heading {
    font-size: 28px;
    margin-bottom: 12px;
  }
}

.feature-subheading {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 24px;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .feature-subheading {
    font-size: 16px;
    line-height: 26px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .feature-subheading {
    opacity: 0;
    transform: translateY(10px);
    overflow: hidden;
    max-height: 0;
    margin-bottom: 0;
    transition:
      opacity 0.5s ease,
      transform 0.5s ease,
      max-height 0.5s ease,
      margin-bottom 0.5s ease;
  }

  .feature-menu-item:hover .feature-subheading,
  .feature-menu-item.active .feature-subheading {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    margin-bottom: 20px;
  }
}

.feature-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.feature-btn-text svg {
  width: 18px;
  height: 18px;
  stroke: var(--eccAccent);
  transition: transform 0.3s ease;
}

.feature-menu-item:hover .feature-btn-text {
  color: var(--eccAccent);
}

.feature-menu-item:hover .feature-btn-text svg {
  transform: translateX(6px);
}

/* -------------------------------------------------------------
   4. SECTORS SECTION (Multi-Panel Expanding Accordion)
   ------------------------------------------------------------- */
.custom-accordion-wrapper {
  margin-top: 30px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .custom-accordion-wrapper {
    margin-top: 40px;
  }
}

.custom-cases-list-wrapper {
  width: 100%;
}

.custom-cases-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

@media (min-width: 1024px) {
  .custom-cases-list {
    flex-direction: row;
    height: 600px;
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    justify-content: center;
  }
}

.custom-case-item {
  position: relative;
  background: #0a0a0a;
  cursor: pointer;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  border-radius: 0;
  min-height: 0;
  max-height: 60px;
  border-right: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-case-item.active {
  max-height: 560px;
}

.custom-case-item:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .custom-case-item {
    border-radius: 0;
    width: 92px;
    height: 100%;
    min-height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    gap: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    transition: width 0.9s ease-in-out;
  }

  .custom-case-item:last-child {
    border-right: none;
  }

  .custom-case-item.active {
    width: 52%;
    align-items: flex-start;
    max-height: none;
  }

  .custom-case-item:not(.active) .custom-case-img {
    height: auto;
  }

  .custom-case-item:not(.active) .custom-case-overlay {
    display: none;
  }
}

.custom-case-img {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.custom-case-item:not(.active) .custom-case-img {
  height: 0;
}

@media (min-width: 1024px) {
  .custom-case-img {
    flex: 1;
    position: relative;
    width: 100%;
    border-radius: 0;
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    height: auto;
  }

  .custom-case-item:not(.active) .custom-case-img {
    height: auto;
  }
}

.custom-case-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  display: block;
}

.custom-case-item:not(.active) .custom-case-overlay {
  display: none;
}

.custom-case-overlay::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: -20px;
  right: -20px;
  height: 160%;
  background: linear-gradient(
    to top,
    rgba(9, 9, 9, 0.95) 0%,
    rgba(9, 9, 9, 0.85) 35%,
    rgba(9, 9, 9, 0.3) 75%,
    rgba(9, 9, 9, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .custom-case-overlay {
    display: none;
  }

  .custom-case-img {
    opacity: 0;
    height: auto;
  }

  .custom-case-item.active .custom-case-img {
    opacity: 1;
  }

  .custom-case-heading {
    display: none;
  }

  .custom-case-item.active .custom-case-overlay {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.4s ease 0.2s,
      transform 0.4s ease 0.2s;
  }

  .custom-case-item.active .custom-case-heading {
    display: block;
  }
}

.custom-case-vertical-title-wrapper {
  display: none;
}

@media (min-width: 1024px) {
  .custom-case-vertical-title-wrapper {
    display: block;
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    white-space: nowrap;
    z-index: 3;
    transition: opacity 0.3s ease;
  }

  .custom-case-vertical-title {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    text-transform: capitalize;
  }

  .custom-case-item.active .custom-case-vertical-title-wrapper {
    opacity: 0;
    pointer-events: none;
  }
}

.custom-case-details-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  height: 60px;
  box-sizing: border-box;
}

.custom-case-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--eccAccent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .custom-case-icon-wrapper {
    width: 50px;
    height: 50px;
  }
}

.custom-case-icon {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .custom-case-icon {
    width: 26px;
    height: 26px;
  }
}

@media (min-width: 1024px) {
  .custom-case-details-wrapper {
    padding: 0 0 20px 0;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: auto;
  }

  .custom-case-item.active .custom-case-details-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0 25px 20px 25px;
    gap: 12px;
  }
}

.custom-case-heading {
  font-size: 20px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

@media (min-width: 768px) {
  .custom-case-heading {
    font-size: 22px;
  }
}

.custom-paragraph {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 22px;
  margin: 0 0 10px 0;
  max-width: 500px;
}

@media (min-width: 768px) {
  .custom-paragraph {
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 12px 0;
  }
}

.custom-case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--eccAccent);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.custom-case-link:hover {
  gap: 14px;
}

.link-arrow {
  font-size: 18px;
}

/* -------------------------------------------------------------
   5. LATEST PROJECTS SECTION (3 Curated Masonry Cards)
   ------------------------------------------------------------- */
.projects-grid-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.projects-masonry-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .projects-masonry-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-project-card {
  position: relative;
  background: var(--eccCardBg);
  border: 1px solid var(--eccBorder);
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.4s ease,
    border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}

.grid-project-card:hover {
  transform: translateY(-8px);
  border-color: var(--eccAccent);
}

.grid-project-image-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .grid-project-image-box {
    height: 250px;
  }
}

.grid-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-project-card:hover .grid-project-img {
  transform: scale(1.08);
}

.grid-project-status {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(9, 9, 9, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.grid-project-status.active {
  border-color: var(--eccAccent);
  color: var(--eccAccent);
}

.grid-project-status.done {
  border-color: #00e5ff;
  color: #00e5ff;
}

.grid-project-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .grid-project-content {
    padding: 25px;
  }
}

.grid-project-title {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.35;
  transition: color 0.3s ease;
}

.grid-project-card:hover .grid-project-title {
  color: var(--eccAccent);
}

.grid-project-developer {
  font-size: 14px;
  color: var(--eccTextMuted);
  margin-bottom: 12px;
}

.grid-project-location {
  font-size: 13px;
  color: var(--eccTextMuted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
}

/* -------------------------------------------------------------
   6. THE GROUP (Company Cards)
   ------------------------------------------------------------- */
.group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 576px) {
  .group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .group-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.group-card {
  position: relative;
  min-height: 350px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  transition:
    transform 0.5s ease,
    box-shadow 0.4s ease;
  border: 1px solid var(--eccBorder);
}

@media (min-width: 768px) {
  .group-card {
    min-height: 420px;
  }
}

.group-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.group-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(9, 9, 9, 0.2) 0%,
    rgba(9, 9, 9, 0.95) 90%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.group-card:hover::before {
  background: linear-gradient(
    180deg,
    rgba(9, 9, 9, 0.1) 0%,
    rgba(9, 9, 9, 0.92) 90%
  );
}

.group-card-overlay {
  position: relative;
  z-index: 2;
  padding: 22px 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .group-card-overlay {
    padding: 28px 26px;
  }
}

.group-card-overlay h4 {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .group-card-overlay h4 {
    font-size: 22px;
    margin-bottom: 16px;
  }
}

.group-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-transform: none;
  transition: color 0.3s ease;
}

.group-card-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--eccAccent);
  transition: transform 0.3s ease;
}

.group-card:hover .group-card-link {
  color: var(--eccAccent);
}

.group-card:hover .group-card-link svg {
  transform: translateX(5px);
}

/* -------------------------------------------------------------
   7. OPPORTUNITY & CONSULTATION CTA BANNER
   ------------------------------------------------------------- */
.opportunity-cta-banner {
  background: var(--eccCardBg);
  border: 1px solid var(--eccBorder);
  border-left: 4px solid var(--eccAccent);
  border-radius: 10px;
  padding: 35px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 25px;
}

@media (min-width: 768px) {
  .opportunity-cta-banner {
    border-left: 5px solid var(--eccAccent);
    padding: 60px 50px;
    gap: 30px;
  }
}

.opportunity-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.25;
}

.opportunity-desc {
  font-size: 17px;
  color: var(--eccTextMuted);
  line-height: 1.7;
  max-width: 620px;
}

.opportunity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* -------------------------------------------------------------
   7. SITE FOOTER — Styles moved to components.css (shared)
   ------------------------------------------------------------- */
