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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%)!important;
      color: #1e293b;
      overflow-x: hidden;
      min-height: 100vh;
      line-height: 1.6;
    }

    /* Animated gradient background */
    .background {
      position: fixed;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #bfdbfe 0%, #93c5fd 25%, #dbeafe 50%, #e0f2fe 75%, #f0f9ff 100%);
      background-size: 400% 400%;
      animation: gradientShift 15s ease infinite;
      z-index: -2;
      opacity: 0.9;
    }

    @keyframes gradientShift {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Floating orbs 
    .orb {
      position: fixed;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.4;
      animation: float 20s infinite ease-in-out;
      z-index: -1;
    }

    .orb1 {
      width: 400px;
      height: 400px;
      background: #3b82f6;
      top: -200px;
      left: -200px;
      animation-delay: 0s;
      opacity: 0.25;
    }

    .orb2 {
      width: 300px;
      height: 300px;
      background: #0ea5e9;
      bottom: -150px;
      right: -150px;
      animation-delay: 5s;
      opacity: 0.25;
    }

    .orb3 {
      width: 350px;
      height: 350px;
      background: #06b6d4;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      animation-delay: 10s;
      opacity: 0.25;
    }

    @keyframes float {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(30px, -30px) scale(1.1); }
      66% { transform: translate(-20px, 20px) scale(0.9); }
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }*/

    /* Container */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      position: relative;
      z-index: 1;
    }

    /* Hero Section */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;   /* stack heading + content vertically */
    align-items: center;      /* center horizontally */
    justify-content: center;  /* center vertically */
    text-align: center;
    background-image: url('../../img/case-studies/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    overflow: hidden;
    opacity: 1.0;
    padding: 0 1rem; /* add breathing space on mobile */
}

/* Heading */
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem; /* spacing from paragraph */
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    line-height: 1.2;
}

/* Paragraph */
.hero p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    max-width: 800px;   /* keep text readable */
    margin: 0 auto;
}


    /* Industry Filters */
    .industry-filters {
      display: flex;
      gap: 15px;
      margin-top: 20px;
      margin-bottom: 40px;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      animation: fadeInUp 1s ease-out;
      animation-delay: 0.2s;
      animation-fill-mode: both;
    }

    .industry-label {
      font-weight: 600;
      color: #1e293b;
      font-size: 16px;
      margin-right: 10px;
    }

    .filter-btn {
      padding: 10px 20px;
      border: 2px solid rgba(59, 130, 246, 0.3);
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(10px);
      border-radius: 30px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 14px;
      font-weight: 500;
      color: #1e293b;
    }

    .filter-btn:hover {
      border-color: #0066ff;
      color: #0066ff;
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(0, 102, 255, 0.2);
    }

    .filter-btn.active {
      background: linear-gradient(135deg, #4f46e5, #0066ff);
      border-color: transparent;
      color: white;
      box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    }

      /* Sticky Navigation */
        .case-study-sticky-nav {
            position: sticky;
            top: 80px;
            z-index: 999;
            background-color: #ffffff;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            /* border-bottom: 1px solid rgba(226, 232, 240, 0.8); */
            transition: background 0.3s ease;
            box-shadow: none;
        }
        .case-study-sticky-nav .container {
            background-color: #ffffff;
        }

        .case-study-sticky-nav.visible {
            transform: translateY(0);
        }

        .case-study-sticky-nav.scrolled {
            background-color: #ffffff;
            box-shadow: var(--shadow-md);
        }

        .case-study-nav-content {
            display: flex;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 2rem;
            padding: 1rem 0;
        }

        .case-study-nav-link {
            color: var(--text-gray);
            font-weight: 500;
            text-decoration: none;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            transition: all 0.3s ease;
            position: relative;
        }

        .case-study-nav-link.active {
            color: var(--primary-blue);
            background: rgba(59, 130, 246, 0.2);
            font-weight: 600;
        }
        
        .case-study-nav-link:hover {
            color: var(--primary-blue);
            background: rgba(59, 130, 246, 0.1);
        }
        



         @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }

            .case-study-sticky-nav {
                top: 70px;

            }
            .case-study-nav-content {
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.5rem;
                padding: 0.75rem;
            }

            .case-study-nav-link {
                padding: 0.4rem 0.75rem;
                font-size: 0.9rem;
            }

            .service-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .section {
                padding: 3rem 0;
            }

        }



  /* Case Studies Grid */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 10px;
}

.case-study-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
  position: relative;
}

.case-study-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.card-image {
  position: relative;
  height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Keep content at the bottom */
  border-radius: 20px;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.card-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;  /* Adjust this to control gradient height */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
  border-radius: inherit;
}

.case-study-card:hover .card-image img {
  transform: scale(1.05);
  filter: blur(4px);
  transition: transform 0.3s ease, filter 0.3s ease;
}
/* Text sits above the gradient */
.card-overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 25px;
  text-align: center;
}

.company-name {
      font-size: 1.8rem;
      font-weight: 700;
      margin-bottom: 16px;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
      color: #ffffff;
    }

    .project-description {
      font-size: 1rem;
      line-height: 1.6;
      margin-bottom: 32px;
      color: #ffffff;
      text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
      font-weight: 400;
    }
    
    .case-study-card:hover .card-overlay{
      transform: scale(1.05);
      transition: transform 0.3s ease;
    }

    .case-study-card:hover .company-name {
      text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
    }

    .case-study-card:hover .project-description {
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }
    /* Transparent button — no background */
    .view-case-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: #0066ff;
      border: 2px solid #ffffff;
      border-radius: 30px;
      padding: 12px 24px;
      text-decoration: none;
      font-weight: 600;
      font-size: 0.95rem;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(10px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      z-index: 2;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

    /* Optional: subtle hover effect */
    .view-case-btn:hover {
      background: rgba(255, 255, 255, 1);
      transform: translateY(-4px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

    .arrow {
      font-size: 1.2rem;
      transition: transform 0.3s ease;
    }
    .card-1, .card-2, .card-3, .card-4, .card-5, .card-6 {
      background-image: none;
    }


    /* Testimonials Section */
    .testimonials {
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(20px);
      padding: 80px 0;
      margin: 80px 0 0 0; 
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .section-title {
      text-align: center;
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 500;
      margin-bottom: 20px;
      background: linear-gradient(135deg, #4f46e5 0%, #0066ff 50%, #06b6d4 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .section-subtitle {
      text-align: center;
      color: #64748b;
      font-size: 1.1rem;
      margin-bottom: 60px;
      font-weight: 400;
    }

    .testimonials-carousel {
      position: relative;
      max-width: 1400px;
      margin: 0 auto;
      padding: 2rem 0;
    }

    .carousel-wrapper {
      overflow: hidden;
      margin: 0 60px;
      position: relative;
    }

    .carousel-track {
      display: flex;
      width: max-content;
      transition: transform 0.5s ease;
    }

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

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

    .testimonial-card {
      flex: 0 0 400px;
      margin: 0 1rem;
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(20px);
      padding: 40px 30px;
      border-radius: 24px;
      box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
      position: relative;
      transition: all 0.4s ease;
      border: 1px solid rgba(255, 255, 255, 0.8);
    }

    .testimonial-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 30px 60px rgba(59, 130, 246, 0.2);
      background: rgba(255, 255, 255, 1);
    }

    .quote-icon {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #4f46e5, #0066ff);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: white;
      opacity: 0.9;
    }

    .testimonial-header {
      display: flex;
      align-items: center;
      margin-bottom: 20px;
    }

    .avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: linear-gradient(135deg, #4f46e5, #0066ff);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.3rem;
      font-weight: 600;
      margin-right: 15px;
      box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
    }

    .client-info {
      flex: 1;
    }

    .client-name {
      font-weight: 700;
      font-size: 1.1rem;
      color: #1e293b;
      margin-bottom: 5px;
    }

    .client-position {
      font-size: 0.9rem;
      color: #64748b;
    }

    .rating {
      display: flex;
      gap: 0.2rem;
      margin-bottom: 15px;
    }

    .star {
      color: #fbbf24;
      font-size: 1.2rem;
    }

    .testimonial-text {
      font-size: 1rem;
      line-height: 1.7;
      color: #475569;
      font-style: italic;
      position: relative;
      padding-left: 15px;
    }

    .testimonial-text::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      bottom: 0;
      width: 3px;
      background: linear-gradient(135deg, #4f46e5, #0066ff);
      border-radius: 3px;
    }

    /* Navigation Dots */
    .carousel-dots {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 40px;
      padding: 0 20px;
    }

    .dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: rgba(79, 70, 229, 0.3);
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      padding: 0;
    }

    .dot:hover {
      background: rgba(79, 70, 229, 0.6);
      transform: scale(1.2);
    }

    .dot.active {
      width: 32px;
      border-radius: 6px;
      background: linear-gradient(135deg, #4f46e5, #0066ff);
      box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    }

    /* CTA Section */
    .cta-section {
            background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
            color: white;
            text-align: center;
            padding: 4rem 0;
            margin-top: 0;
            width: 100%;
        }

        .cta-title {
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .cta-text {
            font-size: 1.1rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }

        .cta-button {
            display: inline-block;
            background: white;
            color: #3b82f6;
            padding: 1rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
            color: #1e40af;
        }
        

    /* Responsive Design */
    @media (max-width: 1024px) {
      .case-studies-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
      }
      .card-image {
        height: 380px;
      }
    }

    @media (max-width: 768px) {
      .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
      }
      .card-image {
        height: 350px;
      }
      .company-name {
        font-size: 1.6rem;
      }
      .project-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
      }
      .industry-filters {
        justify-content: center;
      }
      
      .carousel-wrapper {
        margin: 0 20px;
      }
      
      .testimonial-card {
        flex: 0 0 320px;
      }
      
      .container {
        padding: 20px 15px;
      }

      .orb1, .orb2, .orb3 {
        display: none;
      }
    }

    @media (max-width: 480px) {
      .case-studies-grid {
        grid-template-columns: 1fr;
      }
      
      .case-study-card {
        margin: 0 10px;
      }
      
      .testimonials {
        margin: 40px 10px;
        padding: 60px 20px;
      }
      
      .cta-section {
        margin: 20px 10px;
        padding: 60px 20px;
      }
    }
    /* Loading animation
    .case-study-card {
      animation: fadeInUp 0.6s ease-out forwards;
      opacity: 0;
      transform: translateY(30px);
    }

    .case-study-card:nth-child(1) { animation-delay: 0.1s; }
    .case-study-card:nth-child(2) { animation-delay: 0.2s; }
    .case-study-card:nth-child(3) { animation-delay: 0.3s; }
    .case-study-card:nth-child(4) { animation-delay: 0.4s; }
    .case-study-card:nth-child(5) { animation-delay: 0.5s; }
    .case-study-card:nth-child(6) { animation-delay: 0.6s; }

    @keyframes fadeInUp {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    } */
