/* ------------------------------------------------------
    Slider code
    ------------------------------------------------------ */

/* Slider specific styles */
#slider-container {
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
    /* Disable interaction when not visible */
}

.slide-item.active {
    opacity: 1;
    pointer-events: auto;
    /* Enable interaction when active */
}

/* Slider Gradient Overlay */
.slide-gradient-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(200, 30, 30, 0.7) 100%);
}


/* Ensure navigation buttons are centered vertically */
.slider-nav-btn {
    top: 50%;
    transform: translateY(-50%);
}


/* ------------------------------------------------------
   LENIS SMOOTH SCROLLING
   ------------------------------------------------------ */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* ------------------------------------------------------
   HERO BACKGROUND IMAGE
   ------------------------------------------------------ */
.hero-bg {
    background-image: url('../img/clients/image.png');
}

/* ------------------------------------------------------
   PROJECTS SLIDER (Fade In Groups)
   ------------------------------------------------------ */
.project-slide-group {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.project-slide-group.active {
    display: grid;
    opacity: 1;
}

/* ------------------------------------------------------
   PROJECT CARDS (Hover Lift Animation)
   ------------------------------------------------------ */
.project-card-link {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(17, 24, 39, 0.1),
        0 10px 10px -5px rgba(17, 24, 39, 0.04);
}

/* Numbers in Equal Width */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------
   MAP PLACEHOLDER + LOGO
   ------------------------------------------------------ */
.map-placeholder {
    min-height: 150px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    background-image: url('https://placehold.co/300x150/d1d5db/4b5563?text=Map+Location+Placeholder');
    background-size: cover;
    background-position: center;
}


/* ------------------------------------------------------
   BLOB BACKGROUND ANIMATION
   ------------------------------------------------------ */
@keyframes blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ------------------------------------------------------
   FADE-IN + SLIDE-UP ANIMATIONS
   ------------------------------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-600 {
    animation-delay: 0.6s;
}

/* Bounce-In Animation */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-bounceIn {
    animation: bounceIn 0.6s ease-out forwards;
}

/* ------------------------------------------------------
   TEXT SHIFT ANIMATION
   ------------------------------------------------------ */
.animate-text-shift {
    animation: textShift 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes textShift {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------
   IMAGE SLIDE-IN ANIMATION
   ------------------------------------------------------ */
.animate-image-slide {
    animation: imageSlide 1.5s ease-out forwards;
    opacity: 0;
    transform: translateX(-100px);
}

@keyframes imageSlide {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ------------------------------------------------------
   IMAGE TILT EFFECT
   ------------------------------------------------------ */
.tilt-container {
    transition: transform 0.3s ease-out;
}

.tilt-top-left:hover~.tilt-container {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
}

.tilt-top-right:hover~.tilt-container {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.tilt-bottom-left:hover~.tilt-container {
    transform: perspective(1000px) rotateX(-5deg) rotateY(-5deg);
}

.tilt-bottom-right:hover~.tilt-container {
    transform: perspective(1000px) rotateX(-5deg) rotateY(5deg);
}

/* ------------------------------------------------------
   SCROLL REVEAL ANIMATION
   ------------------------------------------------------ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: both;
    animation-timing-function: ease-out;
}

.reveal-active {
    animation-name: slideInUp;
    opacity: 1;
}

/* Stagger Animation */
.reveal-on-scroll:nth-child(1) {
    animation-delay: 0.1s;
}

.reveal-on-scroll:nth-child(2) {
    animation-delay: 0.2s;
}

.reveal-on-scroll:nth-child(3) {
    animation-delay: 0.3s;
}

.reveal-on-scroll:nth-child(4) {
    animation-delay: 0.4s;
}














/* ------------------------------------------------------
   Why Choose US STYLES CSS
   ------------------------------------------------------ */

  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #1d1d1d;
    line-height: 1.6;
  }

  .diamond-grid-modern {
    max-width: 1400px; /* Wider section */
    margin: 30px auto; /* Less vertical space */
    padding: 0 20px;
  }

  .diamond-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); /* Wider layout */
    gap: 52px; /* Reduced height spacing */
    justify-content: center;
  }

  .diamond-grid-modern h6 {
    color: #565969;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 70px;
    text-align: center;
    font-size: 2rem;
  }

  .diamond-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    padding: 20px; /* Reduced padding */
    flex-direction: row-reverse;
    background: transparent;
    border-radius: 0;
    transition: transform 0.3s ease;
  }

  .diamond-image {
    width: 220px; /* Keep the original diamond size */
    height: 220px; /* Perfect square for diamond */
    transform: rotate(45deg);
    border-left: 2px solid #b71c1c;
    border-top: 2px solid #555555;
    border-right: 2px solid #b71c1c;
    border-bottom: 2px solid #555555;
  
    overflow: hidden;
    outline-offset: 10px;
    flex-shrink: 0;
    border-width: 15px;
    transition: all 0.3s ease;
  }

  .diamond-card:hover .diamond-image {
    border-color: #b71c1c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .diamond-image img {
    width: 100%;
    height: 100%;
    transform: rotate(-45deg) scale(1.4); /* Keep diamond rotation same */
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .diamond-card:hover .diamond-image img {
    transform: rotate(-45deg) scale(1.5);
  }

  .diamond-info {
    padding-right: 10px;
    flex: 1;
  }

  .diamond-info h2 {
    color: #333;
    letter-spacing: 0.5px;
    font-weight: 700;
    line-height: 2rem;
    font-size: 1.6rem;
    margin-bottom: 0.5em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 8px;
  }

  .diamond-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #d32f2f;
  }

  .diamond-info p {
    font-size: 1rem;
    line-height: 1.5rem;
    color: #555;
    margin: 0;
    font-weight: 400;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .diamond-container {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .diamond-card {
      flex-direction: column;
      text-align: center;
      padding: 25px 15px;
    }

    .diamond-image {
      width: 180px;
      height: 180px;
      margin-bottom: 15px;
    }

    .diamond-info h2 {
      font-size: 1.4rem;
    }

    .diamond-info h2::after {
      left: 50%;
      transform: translateX(-50%);
    }

    .diamond-info p {
      max-width: 100%;
      font-size: 1.05rem;
    }
  }

  @media (max-width: 480px) {
    .diamond-card {
      padding: 20px 10px;
    }

    .diamond-image {
      width: 150px;
      height: 150px;
    }
  }


/* ------------------------------------------------------
   zig zag scroll animation for product features
   ------------------------------------------------------ */
.zigzag-item {
    transition-duration: 1s; 
    
    opacity: 0;
   
    
    transform: translateX(-50px);
    transition-property: opacity, filter, transform;
    transition-timing-function: ease-in-out; 
}

.zigzag-item:nth-child(2n) { 
    transform: translateX(50px);
}

.zigzag-item.zigzag-active {
    opacity: 3;
   
    transform: translateX(0);
}


/* ------------------------------------------------------
   side scroll image animation for product features
   ------------------------------------------------------ */
   
.side-scroll-image {
    opacity: 0;
    transform: translateX(100px); /* Adjust the distance for the slide effect */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* 2. Active state: Image is in its final visible position.
     When 'slide-in-active' is added by JavaScript, the transition occurs.
*/
.side-scroll-image.slide-in-active {
    opacity: 1;
    transform: translateX(0); /* Move it to its final position */
}


/* =================================== */
/* NEW POP-UP ANIMATION STYLES */
/* =================================== */
.pop-on-scroll {
    /* शुरुआत: छोटा और अदृश्य */
    opacity: 0;
    transform: scale(0.7);
    
    /* एनीमेशन की गति: तेज़ (0.6 सेकंड) */
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 'cubic-bezier' वैल्यू एक "बाउंस" या "पॉप" प्रभाव देती है */
}

/* सक्रिय स्थिति: अपनी मूल स्थिति और आकार में वापस */
.pop-on-scroll.pop-active {
    opacity: 1;
    transform: scale(1);
}



