/* Futuristic elements */
:root {
    --ai-primary: #0066ff;
    --ai-secondary: #00ccff;
    --accent: #8a2be2;
    --neon: #00ffcc;
    --ai-light: #ffffff;
    --ai-dark: #0a0e17;
    --ai-gray: #a0aec0;
    --gradient-ai: linear-gradient(135deg, var(--ai-primary), var(--ai-secondary), var(--accent));
    --gradient-neon: linear-gradient(90deg, var(--ai-secondary), var(--neon));
  }

  body {
    background: #f7fafc;
    color: #2d3748;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.5px;
  }

.circuit-bg {
    background-image:
      radial-gradient(circle at 10% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 20%),
      radial-gradient(circle at 90% 70%, rgba(138, 43, 226, 0.1) 0%, transparent 20%),
      linear-gradient(0deg, transparent 98%, rgba(0, 102, 255, 0.1) 100%);
    background-size: 100% 100%, 100% 100%, 100% 30px;
  }

  .grid-pattern {
    background-image:
      linear-gradient(rgba(0, 102, 255, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 102, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
  }

  /* Section Title */
  .ai-section-title {
    text-align: center;
    margin-bottom: 60px;
  }

  .ai-section-title h2 {
    font-size: 2.5rem;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    padding: 0 10px;
  }

  .ai-section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-ai);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.5);
  }

  .ai-section-title p {
    color: var(--ai-gray);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 25px auto 0;
    line-height: 1.6;
  }

  /* Hero */
  .hero {
    padding: 160px 0 120px;
    /* background: linear-gradient(125deg, #f0f9ff 0%, #e0f2fe 50%, #ede9fe 100%); */
    position: relative;
    overflow: hidden;
  }

  /* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
      radial-gradient(circle at 20% 80%, rgba(0, 204, 255, 0.2) 0%, transparent 25%),
      radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.2) 0%, transparent 25%);
    pointer-events: none;
  } */

  .hero h1 {
    font-size: 3rem;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 1.15rem;
    color: #4a5568;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 90%;
  }

  .hero .btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .btn-ai-primary {
    background: var(--gradient-ai);
    border: none;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
  }

  .btn-ai-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--ai-primary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
  }

  .btn-ai-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5);
  }

  .btn-ai-primary:hover::before {
    opacity: 1;
  }

  .btn-outline-ai-primary {
    border: 2px solid var(--ai-primary);
    color: var(--ai-primary);
    background: transparent;
  }

  .btn-outline-ai-primary:hover {
    background: var(--ai-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
  }

  .hero-image {
    position: relative;
    perspective: 1000px;
  }

  .hero-image img {
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    height: 350px;
  }

  .hero-image::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 30px;
    bottom: -20px;
    left: 10%;
    background: rgba(0, 102, 255, 0.5);
    filter: blur(15px);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 6s ease-in-out infinite;
  }

  @keyframes float {
    0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(2deg); }
    50% { transform: translateY(-20px) rotateX(-2deg) rotateY(-2deg); }
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.5; width: 80%; }
    50% { opacity: 0.8; width: 85%; }
  }

  /* Service Cards */
  .ai-service-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    height: 100%;
  }

  .ai-service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-ai);
    opacity: 0;
    transform: rotate(45deg);
    transition: opacity 0.5s ease;
    z-index: 0;
  }

  .ai-service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.2);
    border-color: rgba(0, 102, 255, 0.3);
  }

  .ai-service-card:hover::before {
    opacity: 0.03;
  }

  .service-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-ai);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 36px;
    margin: 0 auto 25px;
    box-shadow: 0 0 25px rgba(0, 102, 255, 0.4);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
  }

  .ai-service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.5);
  }

  .ai-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }

  .ai-service-card p {
    color: #64748b;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
  }

  /* Process Steps */
  .process-container {
    position: relative;
  }

  .process-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-ai);
    z-index: 0;
  }

  .step {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
  }

  .step-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient-ai);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
    position: relative;
    transition: all 0.3s ease;
  }

  .step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
  }

  .step h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
  }

  .step p {
    color: #64748b;
    max-width: 250px;
    margin: 0 auto;
    line-height: 1.6;
  }

  /* Case Studies */
  .case-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
  }

  .case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 102, 255, 0.2);
  }

  .case-image {
    height: 240px;
    overflow: hidden;
    position: relative;
  }

  .case-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .case-card:hover .case-image::after {
    opacity: 1;
  }

  .case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .case-card:hover .case-image img {
    transform: scale(1.1);
  }

  .case-content {
    padding: 25px;
  }

  .case-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  .case-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
  }

  /* Tech Items */
  .ai-tech-item {
    background: #fff;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    height: 100%;
  }

  .ai-tech-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.15);
    border-color: rgba(0, 102, 255, 0.3);
  }

  .tech-icon {
    font-size: 46px;
    margin-bottom: 20px;
    background: var(--gradient-ai);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
  }

  .ai-tech-item:hover .tech-icon {
    transform: scale(1.2);
  }

  .ai-tech-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .ai-tech-item p {
    color: #64748b;
    line-height: 1.6;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .hero { 
      padding: 60px 0 30px; 
    }
    .hero h1 { font-size: 2.5rem; }
    .process-container::before { display: none; };

    .hero h1 {
      font-size: 2.6rem;
    }

    .hero .btn {
      padding: 10px 36px;
    }

    .hero p {
      font-size: 1rem;
      margin: auto;
    }

    .ai-service-card {
      flex: 1;
    }

    .ai-tech-item {
      padding: 15px;
    }
  }

  @media (max-width: 576px) {
    .hero h1 { font-size: 2rem; }
    .hero .btn {
      display: block;
      margin-right: 0;
      margin: 15px;
      width: 100% auto;
    }

    .ai-service-card {
      padding: 15px;
    }
  }