/* ================= GLOBAL ================= */

#aiFabShadowRoot {
  display: none !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #131245;
  --accent-color: #e1e1e1;
  --button-bg: #131245;
  --button-text: #ffffff;
  --section-bg: #f4f6fa;
  --font: 'Montserrat', sans-serif;

  --tms-card-bg: rgba(255, 255, 255, 0.78);
  --tms-border: rgba(19, 18, 69, 0.08);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background-color: white;
  color: #1e1e1e;
  line-height: 1.6;
}

/* Anchor offset for fixed header */
section,
[id] {
  scroll-margin-top: 120px;
  padding: 4rem 2rem;
}

/* ================= HEADER / NAV ================= */

:root {
  --header-inner-width: 100%;
  --header-top-gap: 16px;
  --header-shadow: 0 10px 30px rgba(0, 0, 0, 0.024);
}

/* Full-width fixed header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: none;
  border-radius: 0;
  background: transparent;
  box-shadow: var(--header-shadow);
  z-index: 1000;
  overflow: visible;
}

/* Main nav row */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #ffffffb5;
  margin: 0 auto;
}

.logo {
  height: 76px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #2e368e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Dropdown */
.nav-links .has-sub {
  position: relative;
}

.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  display: none;
  padding: 8px 0;
  min-width: 200px;
  list-style: none;
  z-index: 2002;
}

.nav-links .sub-menu a {
  display: block;
  padding: 10px 14px;
  color: #131245;
}

.nav-links .sub-menu a:hover {
  background: #f6f7fb;
}

.nav-links .has-sub:hover > .sub-menu {
  display: block;
}

/* Nav CTA button */
.nav-links .btn-nav {
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-links .btn-nav:hover {
  background: linear-gradient(135deg, #8cd5f6, #1b92d0);
  color: #fff;
}

/* Hamburger (no-JS checkbox) */
.nav-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  user-select: none;
  font-size: 28px;
  line-height: 1;
  padding: 8px 12px;
  margin-left: 8px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  color: #131245;
  background: #fff;
}

/* Focus states */
.nav-links a:focus,
.menu-btn:focus {
  outline: 2px solid #9eff00;
  outline-offset: 2px;
}

/* ================= HERO SLIDER ================= */

.home-hero-section {
  padding: 0 !important;
  margin: 0 !important;
  border: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.home-hero-container {
  width: 100%;
  margin: 0 auto;
}

.home-hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.home-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.home-hero-slide.active {
  opacity: 1;
  z-index: 1;
}

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

/* Navigation Arrows */
.home-hero-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: black;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  z-index: 5;
  user-select: none;
  transition: transform 0.3s ease;
}

.home-hero-nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}

.home-hero-nav-arrow.left {
  left: 30px;
}

.home-hero-nav-arrow.right {
  right: 30px;
}

/* Dots */
.home-hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.home-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.home-hero-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Keep header above hero */
header {
  position: relative;
  z-index: 10;
}

/* ================= ON-GOING PROJECTS CARDS ================= */

.on-going-projects {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.carousel-track {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-right: 16px;
  justify-content: center;   /* center cards */
}

/* Bigger cards on desktop */
.carousel-item {
  position: relative;
  width: 100%;
  height: auto;
  flex: 1 1 45%;             /* take ~45% width on large screens */
  max-width: 840px;          /* allow a larger card */
  border-radius: 10px;
  overflow: hidden;
}

.img-frame {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.img-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}

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

/* Card footer bar */
.card-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;                       /* ✅ full width of image */
  background: rgba(80, 80, 80, 0.67);
  color: #ffffff;
  padding: 16px 18px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;                   /* ✅ allow wrapping on small widths */
  box-sizing: border-box;
}

.card-footer h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  flex: 1 1 auto;
  text-align: left;
  white-space: normal;               /* ✅ allow text to wrap */
  overflow: visible;
  text-overflow: clip;
}

.card-footer .btn {
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.card-footer .btn:hover {
  background: linear-gradient(135deg, #8cd5f6, #1b92d0);
}

/* ================= GENERIC BUTTON ================= */

.btn {
  display: inline-block;
  background-color: #ffffff;
  color: #1f2247;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background-color: #8eca51;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ================= ABOUT SECTION ================= */

.about-section {
  background:
    linear-gradient(rgba(49, 53, 52, 0.9), rgba(49, 53, 52, 0.9)),
    url('about-us-bg.webp') center/cover no-repeat;
  background-attachment: fixed;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-section h2 {
  font-family: 'Khand', sans-serif;
  font-style: normal;
  color: #ffffff;
  font-size: 48px;
  margin-bottom: 2.5rem;
}

.about-us {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto 1rem;
}

.about-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.text-section {
  flex: 1;
  text-align: left;
  min-width: 260px;
}

.text-section p {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(32, 149, 210, 1);
  color: white;
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
  min-width: 120px;
  max-width: 180px;
}

.stat-box strong {
  font-size: 64px;
  display: block;
}

.stat-box span {
  display: block;
  margin-top: 0.3rem;
  font-size: 20px;
}

.image-section {
  flex: 1;
  text-align: center;
}

.image-section img {
  max-width: 1172px;
  height: auto;
  border-radius: 10px;
  margin: 24px;
}

/* ================= TESTIMONIALS ================= */

.tms-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f6f7fb 0%, #eef2ff 100%);
}

.tms-head {
  text-align: center;
  margin: 0 auto 28px;
  padding: 0 20px;
  max-width: 1280px;
  color: #1f2247;
}

.tms-head h2 {
  margin: 0 0 8px 0;
  font-size: 2.2rem;
  color: var(--primary-color);
  letter-spacing: 0.02em;
}

.tms-viewport {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 56px;
}

.tms-track {
  display: flex;
  gap: 40px;
  animation: testimonialScroll 15s linear infinite;
  will-change: transform;
}

.tms-track:hover {
  animation-play-state: paused;
}

.tms-card {
  flex: 0 0 calc(33.333% - 26px);
  background: var(--tms-card-bg);
  border: 1px solid var(--tms-border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(10, 12, 35, 0.08);
  padding: 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  min-height: 260px;
  transition: transform 0.3s ease;
}

.tms-card:hover {
  transform: translateY(-6px);
}

.tms-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tms-user i {
  font-size: 32px;
  background: #979797;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tms-name {
  margin: 0;
  font-size: 1rem;
  color: #2c3556;
  font-weight: 700;
}

.tms-text {
  color: #3c456b;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: left;
}

.tms-rating {
  text-align: center;
  color: #f4b400;
  font-weight: 700;
  margin-top: 10px;
  display: block;
}

@keyframes testimonialScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.tms-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.tms-dot {
  width: 8px;
  height: 14px;
  border-radius: 50%;
  background: #cfd5ff;
  border: 1px solid #bfc6ff;
  cursor: pointer;
}

.tms-dot[aria-current='true'] {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* ================= COMPLETED PROJECTS MARQUEE ================= */

.completed-projects-section {
  background:
    linear-gradient(rgba(49, 53, 52, 0.9), rgba(49, 53, 52, 0.9)),
    url('completed-project.webp') center/cover no-repeat;
  background-attachment: fixed;
  padding: 4rem 2rem 6rem 2rem;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.completed-projects-txt h2 {
  font-family: 'Khand', sans-serif;
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.completed-projects-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marqueeScroll 60s linear infinite;
}

.marquee-track span {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
  display: inline-block;
  text-transform: capitalize;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  opacity: 0.95;
  transition: transform 0.3s ease, color 0.3s ease;
}

.marquee-track span:hover {
  color: #20a8e0;
  transform: scale(1.1);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ================= CONTACT / SCHEDULE VISIT ================= */

#countact.schedule-visit-section {
  background: #f8f8f8;
  color: #1f2247;
  padding: 4rem 0 0 0;
  text-align: left;
}

/* container */
#countact {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* 1st row layout */
#countact .row-one {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: flex-start;
}

/* Titles */
#countact h4 {
  font-size: 20px;
  font-weight: 700;
  color: #131245;
  margin: 24px 0px 16px 0px;
  text-transform: uppercase;
}

/* Quick links list */
#countact ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#countact ul li {
  margin: 6px 0;
}

#countact ul li a {
  color: #1f2247;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

#countact ul li a:hover {
  color: #1b92d0;
}

/* Text */
#countact p {
  margin: 0.3rem 0;
  line-height: 1.6;
  font-size: 15px;
}

/* Follow us */
.follow-us p {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.follow-us a i {
  font-size: 28px;
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.follow-us a i:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

/* Visit form */
.visit-form {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visit-form h3 {
  text-align: center;
  color: #131245;
  font-size: 1.2rem;
  margin: 8px 0px 16px 0px;
}

.visit-form form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.visit-form label {
  display: block;
  width: 100%;
}

.visit-form input,
.visit-form select,
.visit-form button {
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  border-radius: 4px;
}

.visit-form input,
.visit-form select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  appearance: none;
}

/* Custom dropdown arrow */
.visit-form select {
  background:
    #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'><path d='M2 4l4 4 4-4z'/></svg>")
    no-repeat right 0.8rem center;
  background-size: 12px;
  cursor: pointer;
}

.visit-form button {
  padding: 0.6rem;
  background: linear-gradient(135deg, #1b92d0, #8cd5f6);
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.visit-form button:hover {
  background: linear-gradient(135deg, #8cd5f6, #1b92d0);
}

/* Theme image */
.theme-image {
  width: 100%;
  margin-top: 3rem;
}

.theme-image img {
  display: block;
  width: 100%;
  height: 434px;
  object-fit: cover;
}

/* ================= FOOTER ================= */

.footer-bottom {
  background-color: #2d2c2c;
  color: #ffffff;
  height: 70px;
  line-height: 20px;
  font-size: 0.85rem;
  border-top: 1px solid #ffffff;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 58px;
}

/* ================= RESPONSIVE ================= */


@media (max-width: 1024px) {
  .carousel-item {
    flex: 1 1 48%;
    max-width: 100%;
  }
}


@media (max-width: 992px) {
  :root {
    --header-inner-width: 90%;
  }

  .logo {
    height: 48px;
  }

  #countact .row-one {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-inner-width: 94%;
  }

  /* Show hamburger */
  .menu-btn {
    display: inline-block;
    position: absolute;
    right: 14px;
    top: 56px;
    z-index: 1001;
  }

  .navbar {
    position: relative;
    padding: 12px 16px 10px 16px;
  }

  .logo {
    height: 48px;
  }

  /* Collapse nav */
  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links li {
    border-bottom: 1px solid #f3f3f3;
  }

  .nav-links li:last-child {
    border-bottom: 0;
  }

  .nav-links a {
    display: block;
    padding: 14px 16px;
  }

  /* ✅ FIXED: actually expand the menu */
  .nav-toggle:checked ~ .navbar .nav-links {
    max-height: 400px;
  }

  /* On-going Projects carousel*/
  .carousel-track {
    gap: 20px;
    padding-right: 0;
  }

  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }

  /* Footer stays horizontal: text left + button right */
  .card-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;   /* text left, button right */
    width: 100%;
    padding: 14px 16px;
  }

  /* allow title to wrap but keep button on right */
  .card-footer h3 {
    margin: 0;
    font-size: 0.8rem;
    flex: 1 1 auto;
    white-space: normal;
  }

  .card-footer .btn {
    margin: 0;
    white-space: nowrap;               /* keeps button on one line */
    flex-shrink: 0;                    /* prevents button from shrinking */
  }

  /* Contact section */
  #countact .row-one {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .follow-us p {
    justify-content: center;
  }

  .visit-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.2rem;
  }

  .theme-image img {
    height: 280px;
  }

  /* About section */
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .text-section {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  /* Testimonials: wider cards */
  
  /* Less vertical breathing space for the whole section */
  .tms-section {
    padding: 40px 0;
  }

  /* Reduce side padding so content uses more width */
  .tms-viewport {
    padding: 0 16px;
  }

  /* Less gap between cards */
  .tms-track {
    gap: 16px;
  }

  /* Make cards shorter & tighter */
  .tms-card {
    flex: 0 0 100%;     /* full width */
    min-height: auto;   /* ✅ remove forced 260px height */
    padding: 14px 16px; /* smaller padding */
  }

  /* Slightly smaller text sizes */
  .tms-name {
    font-size: 0.95rem;
  }

  .tms-text {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .tms-rating {
    margin-top: 6px;
    font-size: 0.9rem;
  }
}

@media (max-width: 600px) {
  .marquee-track {
    gap: 40px;
    animation-duration: 60s;
  }

  .marquee-track span {
    font-size: 20px;
  }

  .completed-projects-txt h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .tms-head h2 {
    font-size: 1.6rem;
  }

  .footer-bottom {
    padding: 0 16px;
  }
}
