html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* ensures footer sticks at bottom */
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/* main content grows */
main {
  flex: 1;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
  .hero-section {
    background: radial-gradient(circle at center, #1e40af, #020617);
  }
}

/* =========================
   HOME HERO SECTION
========================= */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;  /* full viewport height */
  padding-top: 80px;  /* leave space for sticky header */
  /* background-image: url("../images/buildings.jpg"); */
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #0f172a;
  overflow: hidden; 
}


.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* #particles {
  position: absolute;
  inset: 0;
  z-index: 1;
} */

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* dark overlay */
  z-index: 2;
}


.hero-content {
  position: relative;
  color: #fff;
  max-width: 1200px;
  display: flex;
  flex-direction: column; /* stack elements vertically */
  gap: 25px;              /* gap between title, paragraph, buttons */
  padding: 0 20px;
  animation: slideUpFade 1.16s ease-out forwards;
  z-index: 3;
  text-align: center;
  margin: auto;
}


.hero-title {
  font-size: 78px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  letter-spacing: 1px;
}

.hero-description {
  font-size: 22px;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 500;
  margin: 5px 0 0 0;  /* margin handled by gap */
}

.hero-content h1 {
  font-size: 78px;     /* Bigger heading */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}


.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Base button style */
.btn {
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px; /* Rounded buttons */
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background-color: #007bff; /* Blue */
  color: #fff;
  border: 1px solid #007bff;
}

.btn-primary:hover {
  background-color: #0056b3; /* Dark blue */
  border-color: #0056b3;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
}

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

/* Rotating text wrapper */
.text-rotate {
  display: block;
  position: relative;
  height: 1.3em;
  overflow: hidden;
  margin-top: 10px;
}

/* Individual rotating text */
.text-rotate .text {
   position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.6s ease;
  /* color: #6c6bd4; */
   background: linear-gradient(
    90deg,
   /* #3b82f6,    blue */
    #a855f7,   /* purple blend */
    #ec4899    /* pink */
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* Active text */
.text-rotate .text.active {
  opacity: 1;
  transform: translateY(0);
}

.text-rotate .text.exit {
  opacity: 0;
  transform: translateY(-100%);
}



/* =========================
   INFO SECTION
========================= */

.info-section {
  padding: 80px 20px;
  background-color: #fff;
}

.info-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.info-title {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.info-description {
  font-size: 19px;
  line-height: 1.7;
  color: #26334199;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 30.5px;
}

/* =========================
   ABOUT SECTION (IMAGE + TEXT)
========================= */

.about-section {
  /* padding: 80px 20px; */
  background-color: #ffffff;
}

.about-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

/* Image */
.about-image img {
  width: 100%;
  max-width: 1500px;
  border-radius: 12px;
}

.about-image{
    width: 100%;
}

/* Our Values list */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  color: #26334199;
  margin-bottom: 12px;
}

.values-list i {
  color: #007bff;
  font-size: 18px;
}


/* Content */
.about-content h2 {
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #111827;
}

.about-content p {
  font-size: 17px;
  line-height: 1.7;
  color: #26334199;
  margin: 0;
  margin-bottom: 33px;
}



/* counter section*/

/* Counter section background */
.counter-section {
  position: relative;
  background-image: url("../images/counter_image.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  padding: 80px 20px;
  margin-top: 90px;
  overflow: hidden;
  height: 500px;
  align-content: center;
}

/* Layout */
.counter-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Individual counter cards */
/* Counter section */
/*.counter-section {
  /* background-color: #0f172a; 
  background-image: 
  padding: 80px 20px;
  margin-top: 90px;
}*/

.counter-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7); 
  z-index: 1;
}

/* Container layout */
.counter-container {
  position: relative;
  z-index: 2;
  /* max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap; */
}


/* Individual counter containers */
.counter-box {
 background: #394079;
  padding: 40px 30px;
  border-radius: 16px;
  text-align: center;
  min-width: 260px;
  flex: 1 1 260px;
  box-shadow: 0 15px 35px rgba(253, 253, 253, 0.25);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

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


/* Counter number */
/* .counter-box h2 {
  font-size: 48px;
  font-weight: 700;
  color: #000;
  margin-bottom: 10px;
} */

/* Counter label */
/* .counter-box p {
  font-size: 18px;
  color: #000;
  margin: 0;
} */

  


/* Projects box */
.box-projects {
  background: #fcfcfce0;
  box-shadow: 0 15px 35px rgba(253, 253, 253, 0.25);
}

/* Years box */
.box-years {
  background: #fcfcfce0;
  box-shadow: 0 15px 35px rgba(253, 253, 253, 0.25);
}

/* Satisfaction box */
.box-satisfaction {
  background: #fcfcfce0;
  box-shadow: 0 15px 35px rgba(253, 253, 253, 0.25);
}


.counter-box i{
    font-size: 30px;
    color: #000;
    margin-bottom: 20px;
}

.counter-box h3{
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

.counter-box p{
    font-size: 18px;
    color: #222;
    line-height: 1.6;
}




/* ============================
   SERVICES SECTION
============================ */

.services-section {
  padding: 120px 20px;
  color: #111827;
  margin-bottom: -12px;
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Heading */
.section-title {
  font-size: 42px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 18px;
  max-width: 736px;
  margin: 0 auto 60px;
  color: #26334199;
  letter-spacing: 0.5px;
  line-height: 30px;
}

/* Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Card */
.service-card {
  background: #111827;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  transition: all 0.35s ease;
}

/* Image box */
.service-image {
  width: 100%;
  height: 220px;        /* adjust as needed */
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* 🔥 key property */
  display: block;
}

/* Content */
.service-content {
  padding: 30px;
  text-align: left;
}

.service-content h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #fff;
}

.service-content p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 22px;
  color: #fff;
  letter-spacing: 0.2px;
  
}

/* Button */
.learn-more {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

/* HOVER EFFECT */
.service-card:hover {
  background: #ffffff;
  transform: translateY(-6px);
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover .learn-more {
  color: #0a1f44;
}






/* =========================
   CONTACT CTA SECTION
========================= */

.contact-cta {
  position: relative;
  background-image: url("../images/baneer_home.jpg"); /* change image */
  background-size: cover;
  background-position: center;
  padding: 120px 20px;
  color: #fff;
  margin-top: 12px;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.837);
}

/* Container */
.cta-container {
  position: relative;
  max-width: 1100px;
  margin: auto;
  text-align: center;
  margin-top: -54px;
}

/* Header */
.cta-header h2 {
  font-size: 63px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-header p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #e5e7eb;
}

/* Buttons */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

/* Info Boxes */
.cta-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px 24px;
  border-radius: 16px;
  width: 260px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.cta-box i {
  font-size: 36px;
  color: #007bff;
  margin-bottom: 15px;
}

.cta-box h4 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #fff;
}

.cta-box p {
  font-size: 15px;
  color: #d1d5db;
  margin: 0;
}



/* ================================
   GLOBAL RESPONSIVE FIXES
================================ */

@media (max-width: 768px) {

  /* prevent overflow issues */
  body {
    overflow-x: hidden;
  }

  /* better spacing for all sections */
  section {
    padding-left: 15px;
    padding-right: 15px;
  }

}
@media (max-width: 992px) {

  .counter-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .counter-box {
    padding: 30px 20px;
  }

  .counter-box h2 {
    font-size: 40px;
  }
}

/* counter section*/
@media (max-width: 768px) {

  .counter-container {
    grid-template-columns: 1fr;
  }

  .counter-section {
    background-attachment: scroll;
    height: auto;
    padding: 60px 15px;
  }

  .counter-box {
    width: 100%;
  }

  .counter-box h2 {
    font-size: 34px;
  }

  .counter-box p {
    font-size: 16px;
  }
}

/* services grid*/

@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    margin-bottom: 20px;
  }

  /* fix hover issue on mobile */
  .service-card:hover {
    transform: none;
  }
}

/* About section*/
@media (max-width: 992px) {

  .about-container {
    flex-direction: column;
    text-align: left;
    gap: 30px;
  }

  .about-image {
    width: 100%;
  }

  .values-list li {
    justify-content: left;
  }
}

/* hero section*/
@media (max-width: 992px) {
  .hero-title,
  .hero-content h1 {
    font-size: 48px;
  }

  /* .hero-section{
    min-height: 85vh;
  } */

  .text-rotate{
    padding-bottom: 87px;
  }
}

@media (max-width: 768px) {
  .hero-title,
  .hero-content h1 {
    font-size: 34px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* cta section*/

@media (max-width: 768px) {

  .cta-header h2 {
    font-size: 30px;
  }

  .cta-info {
    flex-direction: column;
    align-items: center;
  }

  .cta-box {
    width: 100%;
  }
}
