/* ✅ Forza Project Responsive CSS */

/* === FONTS === */
@font-face {
  font-family: "Marlin Sans";
  src: url("/fonts/MarlinSans-Light.woff2") format("woff2"),
       url("/fonts/MarlinSans-Light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: "Marlin Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  color: #111;
  background-color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* === HERO SLIDER === */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.8s ease-in-out;
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* === DARK OVERLAY === */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* === CENTERED CAPTION === */
.slide-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  padding: 0 20px;
  max-width: 90%;
}

.slide-caption h2 {
  font-size: 3.2rem;
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: 0.5px;
  color: #fff;
  margin: 0;
}

/* === NAV BUTTONS === */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 3;
  transition: background 0.3s ease;
}
.slider-nav:hover {
  background: rgba(0, 0, 0, 0.6);
}
.slider-nav.left { left: 15px; }
.slider-nav.right { right: 15px; }

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-slider { height: 1000vh; }
  .slide-caption h2 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .hero-slider { height: 1000vh; }
  .slide-caption h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .hero-slider { height: 1000vh; }
  .slide-caption h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }
  .slider-nav {
    font-size: 1.3rem;
    padding: 8px 10px;
  }
}
/* ==== ADJUSTABLE PEDESTAL SECTION ==== */
.pedestal-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

/* ==== CONTENT CONTAINER ==== */
.pedestal-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0rem;
  padding: 0px 3% 280px;
  max-width: 1800px;
  margin: 0 auto;
  overflow: visible;
}

/* ==== IMAGE COLUMN ==== */
.pedestal-image {
  flex: 1.5;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  z-index: 3;
  margin-top: -330px;
  overflow: visible;
}

.pedestal-image img {
  width: 110%;
  max-width: none;
  height: auto;
  transform: translateY(46%);
  pointer-events: none;
}

/* ==== TEXT COLUMN ==== */
.pedestal-text {
  flex: 1;
  color: #1a1a1a;
  margin-top: 400px;
}

.pedestal-text h2 {
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: #004080;
  margin-bottom: 1.5rem;
  margin-top: -45%;
}

.pedestal-text h2 span {
  font-weight: 700;
  color: #1b6ca8;
}

.pedestal-text p {
  font-size: 1.09rem;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
  margin-bottom: 18px;
}

/* ==== CTA BUTTON (Default White Text) ==== */
.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  border: 2px solid #69a3d7;
  border-radius: 40px;
  color: #fff; /* White text for pedestal section */
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  background: transparent;
}

.cta-btn:link,
.cta-btn:visited {
  color: #fff;
}

.cta-btn:hover {
  background: #fff;
  color: #111184;
  border-color: #000;
}

/* ==== BLUE STRIP (Parallax Background) ==== */
.pedestal-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 355px;
  background-image: url("/images/Pedestal and Logos/strip-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  z-index: 1;
  box-shadow: inset 0 0 0 1000px rgba(0, 40, 100, 0.65);
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1400px) {
  .pedestal-wrapper {
    gap: 4rem;
    padding: 120px 8% 240px;
  }
  .pedestal-image img {
    width: 150%;
    transform: translateY(30%);
  }
}

@media (max-width: 992px) {
  .pedestal-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 100px 6% 200px;
  }
  .pedestal-image {
    margin-top: 0;
    order: -1;
  }
  .pedestal-image img {
    width: 100%;
    max-width: 600px;
    transform: none;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
  }
  .pedestal-text h2 {
    font-size: 2.2rem;
  }
}

/* ==== MOBILE DESIGN ==== */
@media (max-width: 600px) {
  .pedestal-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 60px 6% 160px;
    gap: 0;
  }

  .pedestal-text h2 {
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1.2;
    color: #004080;
    margin-bottom: 1.5rem;
    margin-top: 0%;
  }

  .pedestal-text {
    order: -1;
    margin-top: 0;
    padding: 0 8%;
  }

  .pedestal-text h2 span {
    display: block;
    font-weight: 600;
    color: #1b6ca8;
  }

  .pedestal-text p {
    font-size: 1.09rem;
    line-height: 1.8;
    margin-bottom: 1.4rem;
    color: #333;
  }

  .pedestal-image {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 30px;
    margin-bottom: -30px;
    position: relative;
    z-index: 3;
  }

  .pedestal-image img {
    width: 150%;
    max-width: 520px;
    height: auto;
    transform: none;
    box-shadow: none;
    padding-left: 19%;
  }

  .cta-btn {
    margin-top: 20px;
    background: transparent;
    border: 2px solid #0095a8;
    color: #0095a8 !important;
  }

  .cta-btn:hover {
    background: #0095a8;
    color: #fff !important;
    border-color: #0095a8;
  }

  .pedestal-strip {
    height: 240px;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1000px rgba(0, 40, 100, 0.65);
  }
}

/* ==== FEATURES & BENEFITS SECTION ==== */
.features-section {
  background: #f4f8ff;
  padding: 100px 8%;
}

.features-wrapper {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 2000px;
  margin: 0 auto;
}

.features-left {
  flex: 1;
}

.features-left h2 {
  font-size: 4.5rem;
  line-height: 1.2;
  color: #004080;
  font-weight: 300;
  margin-bottom: 1rem;
}

.features-left .subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #333;
  line-height: 1.6;
}

/* ==== CTA Button (Blue Text by Default) ==== */
.features-section .cta-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 40px;
  border: 2px solid #004080;
  color: #004080 !important;
  font-weight: 500;
  background: transparent;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.features-section .cta-btn:hover {
  background: #004080;
  color: #fff !important;
}

/* ==== FEATURES GRID ==== */
.features-right {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
}

/* ==== FEATURE CARD ==== */
.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px 40px 40px 30px; /* Extra right padding for icon spacing */
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* ==== FEATURE ICON (PNG Optimized) ==== */
.feature-card .icon {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 100px;
  height: 100px;
}

.feature-card .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

/* ==== FEATURE TEXT ==== */
.feature-card p {
  font-size: 1.25rem;
  color: #222;
  line-height: 1.7;
  margin: 0;
  padding-right: 85px; /* avoids text overlap with PNG icon */
}

/* ==== RESPONSIVE ADJUSTMENTS ==== */
@media (max-width: 1200px) {
  .features-wrapper {
    gap: 60px;
  }

  .feature-card .icon {
    width: 65px;
    height: 65px;
    top: 18px;
    right: 22px;
  }

  .feature-card p {
    padding-right: 75px;
    font-size: 1.15rem;
  }
}

/* ==== TABLETS / LANDSCAPE ==== */
@media (max-width: 992px) {
  .features-section {
    padding: 80px 6%;
    text-align: center;
  }

  .features-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .features-left {
    flex: unset;
    max-width: 600px;
  }

  .features-left h2 {
    font-size: 2rem;
    line-height: 1.3;
    color: #004080;
    font-weight: 400;
    margin-bottom: 0.2rem;
  }

  .features-left .subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.8rem;
  }

  .features-right {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    width: 100%;
  }

  .feature-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    padding: 50px 32px 36px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    position: relative;
  }

  .feature-card .icon {
    position: static;
    margin: 0 auto 18px;
    width: 64px;
    height: 64px;
  }

  .feature-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    padding-right: 0;
  }

  /* Bottom CTA button */
  .features-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
  }

  .features-cta a {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    border: 1.8px solid #004080;
    color: #004080;
    font-weight: 500;
    background: transparent;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
  }

  .features-cta a:hover {
    background: #004080;
    color: #fff;
  }
}

/* ==== MOBILE ==== */
@media (max-width: 480px) {
  .features-section {
    padding: 60px 5%;
  }

  .features-left h2 {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 40px 24px 32px;
    max-width: 360px;
  }

  .feature-card .icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
  }

  .feature-card p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .features-cta a {
    padding: 10px 26px;
    font-size: 0.95rem;
  }
}

/* ==== 720p / SMALL DESKTOP OPTIMIZATION ==== */
@media (max-width: 1366px) and (max-height: 820px) {
  .features-section {
    padding: 80px 6%;
  }

  .features-left h2 {
    font-size: 3.5rem;
  }

  .features-left .subtitle {
    font-size: 1.3rem;
  }

  .feature-card {
    padding: 36px 36px 36px 28px;
  }

  .feature-card .icon {
    width:  80px;
    height: 80px;
    top: 18px;
    right: 22px;
  }

  .feature-card p {
    font-size: 1.15rem;
    line-height: 1.6;
    padding-right: 75px;
  }
}
/* === FLOORING SECTION (Unified Look + Centered Left Text + 720p Optimization) === */

.flooring-section {
  background: #fff;
  padding: 80px 6%; /* reduced top & bottom spacing */
}

.flooring-wrapper {
  display: flex;
  align-items: center; /* center vertically */
  justify-content: space-between;
  gap: 60px;
  max-width: 1800px;
  margin: 0 auto;
}

/* === LEFT SIDE (Vertically Centered Text) === */
.flooring-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center; /* horizontally center text block */
}

.flooring-left h2 {
  font-size: 2.9rem;
  color: #004080;
  line-height: 1.2;
  font-weight: 300;
  margin: 0;
  text-align: left;
}

/* === RIGHT GRID (Cards Layout) === */
.flooring-right {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

/* === CARD === */
.floor-card {
  border-radius: 0; /* ☐ square edges */
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  background: #fff;
  max-width: 96%;
}

.floor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* === CARD IMAGE === */
.floor-card img {
  width: 92%; /* smaller image inside */
  margin: 4% 4% 0 4%;
  height: 520px; /* default large screen */
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* === CARD CONTENT === */
.card-content {
  text-align: center;
  padding: 20px 15px 25px;
}

.card-content h3 {
  font-size: 1.25rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 12px;
}

.read-btn {
  display: inline-block;
  padding: 9px 24px;
  border: 2px solid #004080;
  border-radius: 30px;
  color: #004080;
  text-decoration: none;
  transition: all 0.3s ease;
}
.read-btn:hover {
  background: #003566;
  border-color: #003566;
  color: #fff;
}

/* === 💻 720p / Small-Height Desktop (~1280×720) === */
@media (max-height: 780px) and (min-width: 1025px) {
  .flooring-section {
    padding: 50px 5%; /* tighter vertical space */
  }

  .flooring-wrapper {
    align-items: center;
  }

  .flooring-left {
    align-items: center;
    justify-content: center;
  }

  .flooring-left h2 {
    font-size: 2.9rem;
    text-align: left;
  }

  .flooring-right {
    gap: 30px;
  }

  .floor-card {
    max-width: 94%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  }

  .floor-card img {
    width: 90%;
    margin: 5%;
    height: 280px; /* smaller image height for 720p */
  }

  .card-content {
    padding: 18px 12px 22px;
  }

  .card-content h3 {
    font-size: 1.5rem;
  }

  .read-btn {
    padding: 8px 22px;
    font-size: 0.9rem;
  }
}

/* === 💻 TABLET (768px–1024px) === */
@media (max-width: 1024px) and (min-width: 768px) {
  .flooring-section {
    padding: 70px 5%;
    text-align: center;
  }

  .flooring-wrapper {
    display: block;
  }

  .flooring-left {
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
  }

  .flooring-left h2 {
    font-size: 2.6rem;
    line-height: 1.3;
    font-weight: 400;
    text-align: center;
  }

  .flooring-right {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .floor-card img {
    height: 280px;
  }
}

/* === 📱 MOBILE (≤767px) === */
@media (max-width: 767px) {
  .flooring-section {
    padding: 60px 5%;
    text-align: center;
  }

  .flooring-wrapper {
    display: block;
  }

  .flooring-left {
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
  }

  .flooring-left h2 {
    font-size: 3rem;
    color: #215761;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
  }

  .flooring-right {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .floor-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
  }

  .floor-card img {
    width: 90%;
    margin: 5%;
    height: 260px;
  }

  .card-content h3 {
    font-size: 1.5rem;
  }

  .read-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

/* ============ applications ============ */
.applications-section {
  background: #fff;
  padding: 100px 8%;
  text-align: center;
}
.carousel-outer {
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}
.carousel-wrapper {
  display: flex;
  transition: transform 0.6s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: stretch;
  border: 1px solid #dedede;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.slide-image {
  flex: 0 0 65%;
  position: relative;
}
.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-text {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
}
.slide-header {
  width: 100%;
  text-align: left;
}
.slide-header h3 {
  font-size: 2rem;
  font-weight: 300;
  color: #222;
  margin: 0;
}
/* arrows */
.nav-arrows {
  position: absolute;
  display: flex;
  gap: 10px;
  z-index: 3;
}
.nav-arrows button {
  background: none;
  border: 1px solid #000;
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.nav-arrows button:hover {
  background: #000;
  color: #fff;
}

/* footer button */
.carousel-footer {
  margin-top: 25px;
}
.more-btn {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #004080;
  color: #004080;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}
.more-btn:hover {
  background: #003566;
  border-color: #003566;
  color: #fff;
}

/* ============ DESKTOP ≥1025px ============ */
@media (min-width: 1025px) {
  .carousel-slide {
    height: 480px; /* cinematic height */
  }
  .slide-image {
    flex: 0 0 58%;
  }
  .slide-text {
    flex: 0 0 42%;
    padding: 60px;
  }
  .slide-image img {
    object-fit: cover;
    object-position: center center;
  }
  .nav-arrows {
    top: 20px;
    right: 30px;
  }
}

/* ============ TABLET 768‑1024px ============ */
@media (max-width: 1024px) and (min-width: 768px) {
  .carousel-slide {
    height: 420px;
    flex-direction: row;
  }
  .slide-image {
    flex: 0 0 55%;
  }
  .slide-text {
    flex: 0 0 45%;
    padding: 40px;
  }
  .slide-header h3 {
    font-size: 2rem;
    font-weight: 500;
  }

  /* move arrows to left/right sides, vertically centered */
  .nav-arrows {
    top: 50%;
    left: 0;
    right: 0;
    width: 100%;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
  }
  .nav-arrows button {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }
}

/* ============ MOBILE ≤767px ============ */
@media (max-width: 767px) {
  .carousel-slide {
    flex-direction: column;
    position: relative;
    margin-top: 0;
    height: auto;
  }
  .slide-image {
    width: 100%;
    height: 380px;
    position: relative;
  }
  .slide-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .slide-header {
    background: rgba(6, 94, 99, 0.7);
    padding: 14px 24px;
    border-radius: 6px;
  }
  .slide-header h3 {
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
  }
  /* arrows on sides of image */
  .nav-arrows {
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
  }
  .nav-arrows button {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
  }
  .carousel-footer {
    margin-top: 20px;
  }
}

/* === FEATURED PROJECTS (Final Polished for 720p + Responsive Images) === */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: #f4f8ff;
}

/* ===== Base Section Layout ===== */
.projects-section {
  background: #f4f8ff;
  padding: 80px 5%;
  text-align: center;
}

.projects-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.projects-wrapper h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #004080;
  margin-bottom: 10px;
}

.projects-wrapper p {
  font-size: 1.30rem;
  color: #4d6a57;
  margin-bottom: 50px;
  line-height: 1.6;
  max-width: none;
  margin-inline: auto;
}

/* ===== Carousel Area ===== */
.projects-carousel {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px; /* optimized for 720p default */
}

/* ===== Project Card ===== */
.project-card {
  position: absolute;
  width: 300px;
  height: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: visible; /* ensures text not clipped */
  opacity: 0;
  transform: scale(0.7);
  transition: all 1s ease;
}

/* ===== Image Area ===== */
.project-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-bottom: 1px solid #e8e8e8;
  transition: height 0.4s ease;
}

/* ===== Text Area ===== */
.project-card .card-info {
  padding: 14px 18px;
  text-align: center;
  background: #fff;
  position: relative;
  z-index: 5;
}
.project-card .card-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 4px 0;
}
.project-card .card-info p {
  font-size: 0.9rem;
  font-weight: 400;
  color: #4d6a57;
  margin: 0;
}

/* ===== Positioning Layers ===== */
.project-card.active  { opacity: 1; transform: scale(1);                z-index: 5; }
.project-card.next    { opacity: 0.95; transform: translateX(320px) scale(0.95); z-index: 4; }
.project-card.next2   { opacity: 0.75; transform: translateX(640px) scale(0.85); z-index: 3; }
.project-card.prev    { opacity: 0.95; transform: translateX(-320px) scale(0.95); z-index: 4; }
.project-card.prev2   { opacity: 0.75; transform: translateX(-640px) scale(0.85); z-index: 3; }

/* ===== Arrows ===== */
.proj-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  color: #004080;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}
.proj-arrow:hover {
  background: #004080;
  color: #fff;
}
.proj-arrow.left  { left: 5%; }
.proj-arrow.right { right: 5%; }

/* ===== Footer (button) ===== */
.projects-footer {
  margin-top: 45px;
}
.proj-btn {
  display: inline-block;
  padding: 12px 36px;
  border: 2px solid #004080;
  border-radius: 40px;
  color: #004080;
  font-weight: 300;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
}
.proj-btn:hover {
  background: #004080;
  color: #fff;
}

/* ===== 📺 Responsive Priority – 720p Height Adjustments ===== */
@media (max-height: 780px) {
  .projects-carousel { height: 360px; }

  /* Slight shrink for tight vertical screens */
  .project-card { height: 330px; }

  /* Image Adjusted by Priority */
  .project-card img { height: 200px; }
  .project-card.active img { height: 250px; }   /* Priority card */
  .project-card.next img,
  .project-card.prev img { height: 250px; }
  .project-card.next2 img,
  .project-card.prev2 img { height: 260px; }

  /* Keep card info visible */
  .project-card .card-info {
    background: #fff;
    margin-top: 0;
  }

  .proj-arrow { width: 40px; height: 40px; }
  .proj-btn { padding: 10px 30px; font-size: 0.95rem; }
}

/* ===== 📱 Mobile Scroll Version ===== */
@media (max-width: 767px) {
  .projects-carousel {
    overflow-x: auto;
    scroll-behavior: smooth;
    height: auto;
    justify-content: flex-start;
  }

  .project-card {
    position: static;
    flex: 0 0 80%;
    margin-right: 20px;
    opacity: 1 !important;
    transform: none !important;
  }

  .project-card img { height: 200px; }
  .proj-arrow { display: none; }
}

/* ===== CLIENTS SECTION ===== */
.clients-section {
  background: #ebf3ff;
  padding: 100px 8%;
  text-align: center;
}

.clients-wrapper h3 {
  color: #004080;
  font-size: 2.6rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 700;
}

.clients-wrapper p {
  color: #4d6a57;
  font-size: 1.3rem;
  margin-bottom: 50px;
  font-weight: 400;
}

/* ===== FLEX‑GRID for perfectly centered last row ===== */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* centers last line ✅ */
  align-items: center;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

/* every item takes similar width, wraps naturally */
.clients-grid img {
  flex: 1 1 160px;          /* base width per logo tile */
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.clients-grid img:hover {
  opacity: 1;
  transform: scale(1.03);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 992px) {
  .clients-section {
    padding: 80px 6%;
  }

  .clients-wrapper h3 {
    font-size: 2.2rem;
  }

  .clients-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 40px;
  }

  .clients-grid {
    gap: 15px;
  }

  .clients-grid img {
    flex: 1 1 140px;
    max-width: 160px;
  }
}

@media (max-width: 600px) {
  .clients-section {
    padding: 60px 5%;
  }

  .clients-wrapper h3 {
    font-size: 1.7rem;
  }

  .clients-wrapper p {
    font-size: 1rem;
  }

  .clients-grid {
    gap: 12px;
  }

  .clients-grid img {
    flex: 1 1 110px;
    max-width: 130px;
  }
}

/* ===== 720p Desktop Optimization ===== */
@media (max-height: 780px) and (min-width: 1200px) {
  .clients-section {
    padding: 70px 6%;
  }

  .clients-wrapper h3 {
    font-size: 2.3rem;
    margin-bottom: 5px;
  }

  .clients-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 35px;
  }

  .clients-grid {
    gap: 15px;
  }

  .clients-grid img {
    flex: 1 1 150px;
    max-width: 170px;
  }
}

/* ===== FORM SECTION ===== */
.contact-section {
  background: #f4f8ff;
  padding: 100px 8%;
  text-align: center;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.contact-wrapper h3 {
  color: #004080;
  font-size: 2rem;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
  font-weight: 600;
}

.contact-wrapper p {
  color: #4d6a57;
  font-size: 1rem;
  margin-bottom: 60px;
}

/* ===== FORM ===== */
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-items: stretch;
}

.contact-form .full {
  grid-column: 1 / 3;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dcdedc;
  border-radius: 6px;
  background: #ffff;
  font-size: 1rem;
  font-family: inherit;
  color: #31513a;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9aa79c;
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.1);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== SUBMIT BUTTON ===== */
.contact-button {
  grid-column: 1 / 3;
  text-align: center;
}
.contact-button button {
  background: #004080;
  color: #fff;
  border: none;
  padding: 12px 42px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.contact-button button:hover {
  background: #002b5c;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .contact-section { padding: 60px 6%; }

  .contact-wrapper h3 {
    font-size: 1.2rem;
  }

  .contact-wrapper p {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-form .full,
  .contact-button {
    grid-column: 1 / 2;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1024px) {
  .clients-section { padding: 80px 5%; }
  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 767px) {
  .clients-section { padding: 60px 5%; }

  /* Two logos per row on mobile */
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  /* Make logos much bigger */
  .clients-grid img {
    width: 100%;
    max-width: 180px;
    max-height: 120px;
  }

  .clients-wrapper h3 {
    font-size: 1.2rem;
  }

  .clients-wrapper p {
    font-size: 1rem;
    margin-bottom: 40px;
  }
}
/* === RESPONSIVE BREAKPOINTS === */

/* Laptops */
@media (max-width: 1200px) {
  .pedestal-wrapper { flex-direction: column; padding: 60px 5%; text-align: center; }
  .pedestal-text { padding: 0; }
  .features-wrapper, .flooring-wrapper { flex-direction: column; text-align: center; }
  .features-right, .flooring-right { grid-template-columns: 1fr; }
  .flooring-left h2, .features-left h2 { font-size: 3rem; }
}

/* Tablets Landscape */
@media (max-width: 992px) {
  .features-section, .flooring-section, .projects-section, .clients-section {
    padding: 80px 6%;
  }
  .hero-slider { height: 80vh; }
  .pedestal-text h2 { font-size: 2.2rem; }
  .features-left .subtitle { font-size: 1.2rem; }
  .feature-card p { font-size: 1rem; }
  .flooring-left h2 { font-size: 2.5rem; }
  .project-card { flex: 0 0 50%; }
}

/* Tablets Portrait */
@media (max-width: 768px) {
  .hero-slider { height: 60vh; }
  .pedestal-wrapper { padding: 50px 4%; }
  .pedestal-image img { max-width: 900px; }
  .features-section { padding: 60px 5%; }
  .flooring-right, .features-right { grid-template-columns: 1fr; }
  .projects-track { flex-wrap: wrap; }
  .project-card { flex: 0 0 100%; margin-bottom: 20%; }
  .client-card { width: 40%; max-width: 160px; }
}

/* Mobile */
@media (max-width: 480px) {
  .pedestal-text h2 { font-size: 1.8rem; }
  .cta-btn, .read-btn, .proj-btn, .more-btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
  .features-left .subtitle { font-size: 1rem; }
  .flooring-left h2 { font-size: 2.5rem; }
  .project-card img { height: 280px; }
  .clients-section { padding: 60px 4%; }
  .client-card { width: 42%; height: 90px; }
}

/* ============================================
   📺 720p / Small Desktop Optimization
   ============================================ */
@media (max-width: 1366px) and (max-height: 820px) {
  /* General adjustments for small-height screens (720p displays) */
  html, body {
    font-size: 15px; /* slightly smaller base */
  }

  /* HERO SLIDER - reduce height for visible content below the fold */
  .hero-slider {
    height: 100vh;
  }
  .slide-caption h2 {
    font-size: 2.5rem;
    line-height: 1.25;
  }

  /* PEDESTAL SECTION */
  .pedestal-wrapper {
    padding: 70px 6% 220px;
    gap: 4rem;
  }
  .pedestal-text h2 {
    font-size: 2.4rem;
  }
  .pedestal-text p {
    font-size: 1.09rem;
  }
  .pedestal-image img {
    width: 130%;
  }

  /* FEATURES */
  .features-section {
    padding: 80px 6%;
  }
  .features-left h2 {
    font-size: 3.5rem;
  }
  .features-left .subtitle {
    font-size: 1.4rem;
  }
  .feature-card p {
    font-size: 1.1rem;
  }

  /* FLOORING */
  .flooring-section {
    padding: 80px 6%;
  }
  .flooring-left h2 {
    font-size: 2.5rem;
  }
  .floor-card img {
    height: 360px;
  }

  /* APPLICATIONS */
  .applications-section {
    padding: 80px 6%;
  }
  .slide-header h3 {
    font-size: 2rem;
    font-weight: 500;
  }
  .slide-text {
    padding: 40px;
  }

  /* PROJECTS */
  .projects-section {
    padding: 80px 5%;
  }
  .projects-wrapper h2 {
    font-size: 2.2rem;
  }
  .project-card img {
    height: 340px;
  }

  /* CLIENTS */
  .clients-section {
    padding: 80px 6%;
  }
  .clients-wrapper h3 {
    font-size: 2.2rem;
  }

  /* CONTACT */
  .contact-section {
    padding: 80px 6%;
  }
  .contact-wrapper h3 {
    font-size: 2rem;
  }
  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
  }
}

/* ============================================================
   🖥️ 720p / Short-Height Desktop View Optimisation (1280×720)
   Keeps pedestal composition stable while preserving design
   ============================================================ */
@media (max-height: 780px) and (min-width: 1200px) {
  .pedestal-wrapper {
    gap: 0rem;
    padding: 0px 8% 200px;
  }

  .pedestal-image {
    margin-top: -180px; /* less overlap into strip */
  }

  .pedestal-image img {
    width: 110%;
    transform: translateY(45%); /* previously 40%, too far down */
  }

  .pedestal-text {
    margin-top: 220px; /* aligns text to image middle */
  }

  .pedestal-text h2 {
    font-size: 2.9rem;
    line-height: 1.25;
    margin-top: -35%;
  }

  .pedestal-strip {
    height: 260px;
    background-attachment: scroll; /* prevent clipping */
  }
}

/* =============================
   Optional smoother scaling region
   for heights between 780‑900px
   ============================= */
@media (max-height: 900px) and (min-height: 781px) and (min-width: 1200px) {
  .pedestal-image img {
    width: 135%;
    transform: translateY(20%);
  }

  .pedestal-text {
    margin-top: 260px;
  }
}