/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ROOT VARIABLES ===== */
:root {
  --bg-dark: #050816;
  --bg-dark-2: #0a0f25;
  --text-light: rgba(255, 255, 255, 0.92);
  --text-soft: rgba(255, 255, 255, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);
  --gradient: linear-gradient(90deg, #ff2fb3 0%, #a855f7 50%, #6a5cff 100%);
}

/* ===== BASE ===== */
html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ===== BODY ===== */
body {
  font-family: Arial, sans-serif;
  background: var(--bg-dark);
  color: #fff;

}

    a {
      text-decoration: none;
    }

    .scroll-scene {
      position: relative;
      min-height: 170vh;
      background:
        radial-gradient(circle at top left, rgba(168, 85, 247, 0.22), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 47, 179, 0.18), transparent 30%),
        linear-gradient(135deg, #050816 0%, #060b22 55%, #0a0f25 100%);
      overflow: clip;
    }

    .canvas-wrap {
      position: sticky;
      top: 0;
      width: 100%;
      height: 100vh;
      z-index: 1;
      pointer-events: none;
    }

    #webgl {
      width: 100%;
      height: 100%;
      display: block;
    }

    .hero-inner {
      position: relative;
      z-index: 3;
      min-height: 100vh;
      width: 100%;
      max-width: 1400px;
      margin: 0 auto;
      padding: 80px 6% 120px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
      margin-top: -600px;
    }

    .hero-content {
      width: 100%;
      max-width: 620px;
      z-index: 5;
      position: relative;
      will-change: transform, opacity;
    }

    .hero-badge {
      display: inline-block;
      padding: 10px 18px;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      backdrop-filter: blur(12px);
      font-size: 14px;
      line-height: 1.5;
      margin-bottom: 20px;
      color: rgba(255,255,255,0.88);
    }

    .hero-content h1 {
      font-size: clamp(2.4rem, 6vw, 4.8rem);
      line-height: 1.02;
      font-weight: 800;
      letter-spacing: -1px;
      margin-bottom: 22px;
    }

    .gradient-text {
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
    }

    .hero-content p {
      font-size: clamp(15px, 2vw, 18px);
      line-height: 1.8;
      color: var(--text-soft);
      margin-bottom: 30px;
      max-width: 560px;
    }

    .hero-buttons {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
    }

    .btn-custom {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 14px 28px;
      border-radius: 16px;
      font-size: 15px;
      font-weight: 700;
      transition: 0.3s ease;
    }

    .btn-primary-custom {
      background: var(--gradient);
      color: #fff;
      box-shadow: 0 12px 30px rgba(168, 85, 247, 0.28);
    }

    .btn-outline-custom {
      border: 1px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.04);
      color: #fff;
      backdrop-filter: blur(10px);
    }

    .btn-custom:hover {
      transform: translateY(-3px);
    }

    .hero-side {
      width: 100%;
      max-width: 340px;
      display: flex;
      justify-content: flex-end;
      z-index: 5;
    }

    .floating-card {
      width: 100%;
      padding: 24px;
      border-radius: 24px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(18px);
      box-shadow: 0 20px 50px rgba(0,0,0,0.25);
      will-change: transform, opacity;
    }

    .floating-card h3 {
      font-size: 22px;
      margin-bottom: 12px;
    }

    .floating-card p {
      color: var(--text-soft);
      line-height: 1.8;
      font-size: 14px;
    }

    .scroll-indicator {
      position: absolute;
      left: 6%;
      bottom: 30px;
      z-index: 6;
      color: rgba(255,255,255,0.78);
      font-size: 13px;
      letter-spacing: 2px;
      text-transform: uppercase;
      will-change: transform, opacity;
    }

    .after-section {
      position: relative;
      z-index: 6;
      background: #ffffff;
      color: #111827;
      padding: 110px 7%;
      margin-top: -6vh;
      border-top-left-radius: 34px;
      border-top-right-radius: 34px;
      box-shadow: 0 -20px 50px rgba(0,0,0,0.12);
    }

    .after-section h2 {
      font-size: clamp(2rem, 4vw, 42px);
      margin-bottom: 18px;
    }

    .after-section p {
      max-width: 800px;
      line-height: 1.9;
      color: #4b5563;
      font-size: 17px;
    }

    .services-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 24px;
      margin-top: 45px;
    }

    .service-box {
      background: #ffffff;
      border-radius: 22px;
      padding: 28px;
      box-shadow: 0 14px 40px rgba(0,0,0,0.07);
      border: 1px solid #eef2f7;
      transition: 0.3s ease;
    }

    .service-box:hover {
      transform: translateY(-8px);
    }

    .service-box h4 {
      margin-bottom: 12px;
      font-size: 22px;
      color: #111827;
    }

    .service-box p {
      color: #6b7280;
      font-size: 15px;
      line-height: 1.8;
    }

    @media (max-width: 1100px) {
      .hero-inner {
        gap: 24px;
      }

      .hero-side {
        max-width: 280px;
      }

      .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 768px) {
      .scroll-scene {
        min-height: 155vh;
      }

      .hero-inner {
        min-height: 100vh;
        margin-top: -350px;
        padding: 70px 20px 110px;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        gap: 24px;
      }

      .hero-content {
        max-width: 100%;
        margin-top: 10px;
      }

      .hero-content p {
        max-width: 100%;
      }

      .hero-buttons {
        justify-content: center;
      }

      .btn-custom {
        width: 100%;
      }

      .hero-side {
        max-width: 100%;
        justify-content: center;
      }

      .floating-card {
        max-width: 100%;
        padding: 20px;
      }

      .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
        font-size: 12px;
      }

      .after-section {
        padding: 80px 20px;
        margin-top: -2vh;
        border-top-left-radius: 26px;
        border-top-right-radius: 26px;
      }

      .services-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 480px) {
      .scroll-scene {
        min-height: 145vh;
      }

      .hero-inner {
        padding: 60px 16px 100px;
      }

      .hero-badge {
        font-size: 12px;
        padding: 8px 14px;
      }

      .hero-content h1 {
        font-size: 2rem;
      }

      .hero-content p {
        font-size: 14px;
        line-height: 1.75;
      }

      .floating-card {
        padding: 18px;
        border-radius: 20px;
      }
    }