
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}
/* ===== LOADING BAR ===== */
.loading-bar {
  width: 180px;
  height: 4px;
  margin: 12px auto 0;
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

/* animated fill */
.loading-bar::before {
  content: "";
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: #000;
  animation: loadingMove 1.2s infinite ease-in-out;
}

@keyframes loadingMove {
  0% { left: -40%; }
  100% { left: 100%; }
}
/* =========================
   HEADER
========================= */
.main-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 0;
}

.logo img {
    height: 45px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-left: 20px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* ================= PRELOADER ================= */

#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-content h2 {
  font-size: 28px;
  letter-spacing: 3px;
  font-weight: 400;
  animation: fadeAnim 1.5s ease-in-out infinite alternate;
}

@keyframes fadeAnim {
  from { opacity: 0.3; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

/* hide state */
#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* responsive */
@media (max-width: 768px) {
  .loader-content h2 {
    font-size: 20px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .loader-content h1 {
    font-size: 16px;
    letter-spacing: 1.5px;
  }
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: #000; /* Safety black */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0; 
    visibility: hidden;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out; 
}



.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    
    transition: opacity 1.5s ease-in-out, transform 6s linear;
}


.hero-slide.exit {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: none; 
}
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 48px;
}

.hero-content p {
    margin: 15px 0;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px;
    background: transparent;
    text-decoration: none;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    background: transparent;
}

 


.hero-buttons .btn:hover {
    background: #1c1c1c;
    color: #fff;
    transition: transform .4s;
    transform: scale(1.1);
}


/* Desktop images */
.slide1 { background-image: url('../images/hero-section-home/hero_section_1.webp'); }
.slide2 { background-image: url('../images/hero-section-home/hero_section_2.webp'); }
.slide3 { background-image: url('../images/hero-section-home/hero_section_3.webp'); }
.slide4 { background-image: url('../images/hero-section-home/hero_section_4.webp'); }
.slide5 { background-image: url('../images/hero-section-home/hero_section_5.webp'); }


/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 999;
    }

    .nav-menu ul {
        flex-direction: column;
    }

    .nav-menu ul li {
        margin: 10px 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
    }

    /* Mobile images */

    .slide1 { background-image: url('../images/hero-section-home/hero_mobile_1.webp'); }
    .slide2 { background-image: url('../images/hero-section-home/hero_mobile_2.webp'); }
    .slide3 { background-image: url('../images/hero-section-home/hero_mobile_3.webp'); }
    .slide4 { background-image: url('../images/hero-section-home/hero_mobile_4.webp'); }
    .slide5 { background-image: url('../images/hero-section-home/hero_mobile_5.webp'); }
}
@media (max-width: 768px) {

    .hero-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
        flex-wrap: nowrap; /* IMPORTANT: prevents wrapping */
        width: 100%;
    }

    .hero-buttons .btn {
      font-size: 12px;       
        letter-spacing: 0.5px;  
        white-space: nowrap;    
        padding: 10px 12px; 
        flex: 1;              
        max-width: 160px;     
        text-align: center;
        display: block;
    }
}

/* PORTFOLIO SECTION CSS - GRID */

/* HEADER */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #111;
  text-transform: uppercase;
}

/* line under heading */
.section-header .line {
  width: 180px;
  height: 1px;
  background: linear-gradient(to right, #8a8888, transparent);
  margin: 10px auto 0;
}


.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-section {
  padding: 80px 8%;   
  background: #fff;
}
/* ITEM */

.portfolio-item {
  height: 520px;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
  /* animation start state */
  opacity: 0;
  transform: translateY(40px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* 👈 THIS prevents half/overflow issue */
  display: block;      /* removes inline spacing bug */
  transition: transform 0.5s ease;
}


/* HOVER ZOOM */
.portfolio-item:hover img {
  transform: scale(1.08);
  
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;

  max-width: 1200px;
  margin: 0 auto;   
}
.portfolio-cta {
  display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* IMPORTANT */
  text-align: center;
  margin-top: 40px;

}


.portfolio-btn {
  display: inline-block;
  margin: 2px;
  padding: 10px 24px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  background: transparent;
}

/* hover effect */
.portfolio-btn:hover {
  background: #111;
  color: #fff;
}
.portfolio-btn .icon {
  font-size: 14px;
  line-height: 1;
}
/* RESPONSIVE */
@media (max-width: 768px) {
    /* Main Hero Heading */
    .hero-content h1 {
        font-size: 24px;
    }

    /* Portfolio/Services Section Headings */
    .section-header h2 {
        font-size: 20px;
    }

    /* Why Choose Us Section Heading */
    .section-title {
        font-size: 26px;
    }
}
@media (max-width: 768px) {
  
.portfolio-section {
    padding: 50px 20px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item {
    height: 450px;
  }
   .portfolio-btn {
        font-size: 13px;
        padding: 10px 14px;
        gap: 4px;
    }
  .portfolio-cta {
    flex-direction: row;
    flex-wrap: nowrap;
}
}
/* PORTFOLIO SECTION ENDS */

/* WHY CHOOSE US SECTION */
.why-choose-us {
    background: #1e1e1e;
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.container-choose {
    max-width: 1200px;
    margin: auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #aaa;
    margin-bottom: 50px;
}

/* CARDS GRID */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* CARD STYLE */
.card {
    background: #292929;
    padding: 30px 20px;
    min-height: 280px; /* Forces the card to be at least 300px tall */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 12px;
    transition: 0.3s ease;
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-8px);
    border-color: #444;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* ICON */
.icon {
    font-size: 30px;
    margin-bottom: 15px;
}

/* TEXT */
.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    color: #bbb;
    font-size: 14px;
}
.section-header p {
  text-align: center;
  color: #666;
  margin-top: 10px;
  font-size: 14px;
}
/* RESPONSIVE */

/* Tablet */
@media (max-width: 992px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);

    }
}

/* Mobile */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    .mobile-padding-x {
        padding-left: 8% ;
        padding-right: 8% 
    }
    .card {
        width: 100%;
        min-width: 100%;
        box-sizing: border-box;
    }

    .why-choose-us {
        padding: 60px 15px;
    }

    .container-choose {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* Why Choose Us Section ends */

/* Services Section CSS */
.services-preview {
  padding: 80px 8%;
  background: #fff;
}

.services-preview p {
  text-align: center;
  color: #666;
  margin-top: 10px;
  font-size: 14px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.service-card {
  padding: 25px;
  border: 1px solid #eee;
  transition: 0.3s ease;
  background: #fff;
}

.service-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #111;
}

.service-card p {
  font-size: 13px;
  color: #666;
  text-align: left;
}

/* hover effect */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: #111;
}

/* responsive */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Services section css ends */

/* SPLIT SECTION */
.split-section {
    background: #202020;
    color: #fff;
    
}

/* CONTAINER */
.split-container {
    display: flex;
    align-items: center;
    min-height: 500px;
}

/* IMAGE SIDE */
.split-image {
    flex: 1;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}

/* CONTENT SIDE */
.split-content {
    flex: 1;
    padding: 60px;
}

.split-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.split-content p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* FEATURES LIST */
.features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.features li {
    margin-bottom: 10px;
    color: #ccc;
}

/* BUTTON */
.cta-btn {
    display: inline-block;
  padding: 12px 28px;
  border: 1px solid #f2f2f2;
  color: #f1f1f1;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  background: transparent;
}

.cta-btn:hover {
    background: #ffffff;
    color: #121212;
}

/* RESPONSIVE */

/* Tablet */
@media (max-width: 992px) {
    .split-container {
        flex-direction: column;
    }

    .split-content {
        padding: 40px 20px;
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .split-content h2 {
        font-size: 28px;
    }
}



  @media (max-width: 480px) {
    .card {
      width: 130px;
      height: 180px;
    }

    button {
      width: 34px;
      height: 34px;
      font-size: 18px;
    }
  }

/* =========================
   TESTIMONIALS
========================= */


.testimonials-section {
  padding: 50px 8%;
  background: #fff;
}

.testimonials-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* CARD */
.testimonial-card {
  border: 1px solid #eee;
  padding: 25px;
  border-radius: 8px;
  background: #fff;
  transition: 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* IMAGE */
.client-img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-bottom: 15px;
  background-size: cover;
  background-position: center;
}

/* Individual images */
.img1 { background-image: url('../images/testimonials/client1.webp'); }
.img2 { background-image: url('../images/testimonials/client1.webp'); }
.img3 { background-image: url('../images/testimonials/client1.webp'); }
.img4 { background-image: url('../images/testimonials/client1.webp'); }
.img5 { background-image: url('../images/testimonials/client1.webp'); }
.img6 { background-image: url('../images/testimonials/client1.webp'); }

/* TEXT */
.testimonial-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.testimonial-card h4 {
  margin-top: 12px;
  font-size: 14px;
  color: #111;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
/* Testimonials ends here */

/* Carousel CSS Starts here */
 .carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: grab;
    margin-top: 5px;
    margin-bottom: 20px;
    
  }

.motion-section-wrapper {
    padding: 30px 0 30px 0; /* reduced top/bottom */
}

  .track {
    display: flex;
    gap: 15px;
    width: max-content;
    will-change: transform;
    

  }

  .card-carousel {
    width: 200px;
    height: 250px;
    flex-shrink: 0;
    border-radius: 5px;
    overflow: hidden;
  }

  .card-carousel {
    overflow: hidden;
}



  .card-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
    transition: transform 0.4s ease;
  }
.card-carousel:hover img {
    transform: scale(1.02);
    filter:  grayscale(100%);
}
  .carousel:active {
    cursor: grabbing;
  }
  .motion-section {
    width: 100%;
    padding: 80px 20px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
  }

  .motion-section h2 {
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 1px;
    color: #111;
  }

  .motion-section-wrapper p {
    padding-left: 8%;
        padding-right: 8%;
    text-align: center;
  color: #666;
  margin-top: 10px;
  font-size: 14px;
  }
   @media (max-width: 768px) {
    .card-carousel {
      width: 150px;
      height: 200px;
    }

    .track {
      padding: 0px;
      gap: 10px;
    }
  }

  @media (max-width: 480px) {
    .card-carousel {
      width: 130px;
      height: 180px;
    }

    button {
      width: 34px;
      height: 34px;
      font-size: 18px;
    }
  }