/* index.html — page-specific styles */

/* =====================================================================
   HERO
   ===================================================================== */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 160px 24px 100px;
      position: relative;
      overflow: hidden;
    }

    #heroCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      opacity: 0.55;
    }

    /* Radial glow behind hero text */
    .hero::after {
      content: '';
      position: absolute;
      top: 40%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 700px;
      height: 500px;
      background: radial-gradient(ellipse, rgba(123, 92, 246, 0.14) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--color-border-hover);
      border-radius: 100px;
      padding: 6px 16px;
      font-size: 13px;
      font-weight: 500;
      color: var(--color-purple);
      margin-bottom: 32px;
      opacity: 0;
      transform: translateY(20px);
      background: var(--color-purple-soft);
      position: relative;
      z-index: 1;
    }

    .hero-badge-dot {
      width: 6px;
      height: 6px;
      background: var(--color-purple);
      border-radius: 50%;
      animation: pulse-dot 2s infinite;
    }

    @keyframes pulse-dot {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.5;
        transform: scale(1.5);
      }
    }

    .hero-title {
      font-family: var(--font-display);
      font-size: clamp(44px, 7vw, 88px);
      font-weight: 640;
      line-height: 1.07;
      letter-spacing: 0;
      max-width: 900px;
      position: relative;
      z-index: 1;
      opacity: 1;
      overflow: visible;
      background: linear-gradient(180deg, #ffffff 0%, #e3efff 39%, #bbcdf8 68%, #8472f4 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      display: block;
      filter: drop-shadow(0 18px 32px rgba(42, 88, 170, 0.24))
              drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
    }

    .hero-title.hero-title--gsap {
      transform: none;
    }

    .hero-sub.hero-copy--gsap,
    .hero-cta.hero-copy--gsap {
      animation: none;
    }

    @keyframes hero-title-reveal {
      from {
        opacity: 0;
        transform: translateY(12px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-word {
      display: inline-block;
      opacity: 0;
      transform: translateY(8px);
      background: linear-gradient(180deg, #ffffff 0%, #e3efff 39%, #bbcdf8 68%, #8472f4 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: hero-word-fade 0.45s ease-out var(--word-delay, 0s) forwards;
    }

    .hero-title.hero-title--gsap .hero-word {
      animation: none;
    }

    .hero-title.hero-title--gsap em.hero-word {
      animation: understand-gradient-flow 4.4s linear infinite;
    }

    @keyframes hero-word-fade {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .hero-title em {
      font-family: var(--font-accent);
      font-style: italic;
      font-weight: 540;
      line-height: 1.12;
      padding: 0.04em 0.14em 0.12em 0.02em;
      margin: -0.04em -0.1em -0.12em -0.02em;
      vertical-align: baseline;
      overflow: visible;
      background: linear-gradient(90deg, #7568ff 0%, #f4efff 24%, #c084fc 48%, #8ec5ff 72%, #7568ff 100%);
      background-size: 240% auto;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      animation: understand-gradient-flow 4.4s linear infinite;
    }

    .hero-title em.hero-word {
      animation: hero-word-fade 0.45s ease-out var(--word-delay, 0s) forwards,
                 understand-gradient-flow 4.4s linear infinite;
    }

    @keyframes understand-gradient-flow {
      0% { background-position: 0% center; }
      100% { background-position: 240% center; }
    }

    .gradient-text {
      font-family: var(--font-accent);
      font-style: italic;
      font-weight: 540;
      background: var(--accent-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: inline-block;
      line-height: 1.12;
      padding: 0.04em 0.14em 0.12em 0.02em;
      margin: -0.04em -0.1em -0.12em -0.02em;
      vertical-align: baseline;
      overflow: visible;
      filter: drop-shadow(0 10px 22px rgba(123, 92, 246, 0.18));
    }

    .hero-sub {
      margin-top: 24px;
      font-size: 18px;
      font-weight: 400;
      color: var(--color-muted);
      max-width: 560px;
      line-height: 1.7;
      opacity: 0;
      transform: translateY(12px);
      position: relative;
      z-index: 1;
      animation: hero-title-reveal 0.75s var(--ease-out-expo) 0.35s forwards;
    }

    .hero-cta {
      margin-top: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 16px;
      opacity: 0;
      transform: translateY(12px);
      position: relative;
      z-index: 1;
      animation: hero-title-reveal 0.75s var(--ease-out-expo) 0.5s forwards;
    }

    /* Floating shapes */
    .hero-shape {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }

    .hero-shape-1 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(123, 92, 246, 0.08), transparent 70%);
      top: 10%;
      left: -10%;
      animation: float1 8s ease-in-out infinite;
    }

    .hero-shape-2 {
      width: 300px;
      height: 300px;
      background: radial-gradient(circle, rgba(123, 92, 246, 0.06), transparent 70%);
      bottom: 15%;
      right: -5%;
      animation: float2 10s ease-in-out infinite;
    }

    @keyframes float1 {

      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }

      50% {
        transform: translate(30px, -40px) scale(1.05);
      }
    }

    @keyframes float2 {

      0%,
      100% {
        transform: translate(0, 0) scale(1);
      }

      50% {
        transform: translate(-20px, 30px) scale(0.95);
      }
    }

/* =====================================================================
   SECTION COMMONS
   ===================================================================== */
    .section {
      padding: 100px 48px;
    }

    .section-sm {
      padding: 72px 48px;
    }

    .container {
      max-width: 1160px;
      margin: 0 auto;
    }

    .section-label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--color-purple);
      margin-bottom: 16px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(32px, 4vw, 54px);
      font-weight: 640;
      line-height: 1.12;
      letter-spacing: 0;
      text-wrap: balance;
      overflow: visible;
    }

    .depth-gradient-heading {
      --depth-angle: 118deg;
      display: inline-block;
      background: linear-gradient(
        var(--depth-angle),
        #ffffff 0%,
        #f4f0ff 28%,
        #d9ceff 58%,
        #8f7cff 100%
      );
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      -webkit-text-fill-color: transparent;
      overflow: visible;
      filter: drop-shadow(0 14px 26px rgba(123, 92, 246, 0.16))
              drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
    }

    .depth-gradient-heading--showreel { --depth-angle: 102deg; }
    .depth-gradient-heading--services { --depth-angle: 132deg; }
    .depth-gradient-heading--industries { --depth-angle: 74deg; }
    .depth-gradient-heading--portfolio { --depth-angle: 158deg; }
    .depth-gradient-heading--about { --depth-angle: 121deg; }
    .depth-gradient-heading--team { --depth-angle: 88deg; }
    .depth-gradient-heading--why { --depth-angle: 146deg; }
    .depth-gradient-heading--testimonials { --depth-angle: 66deg; }
    .depth-gradient-heading--faq { --depth-angle: 111deg; }
    .depth-gradient-heading--cta { --depth-angle: 169deg; }

    /* Reveal animation base */
    .reveal {
      opacity: 0;
      transform: translateY(48px);
      transition: opacity 0.7s var(--ease-out-expo),
        transform 0.7s var(--ease-out-expo);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal-clip {
      clip-path: inset(0 0 100% 0);
      transition: clip-path 0.8s var(--ease-out-expo);
    }

    .reveal-clip.visible {
      clip-path: inset(0 0 0% 0);
    }

/* =====================================================================
   SHOWREEL SECTION
   ===================================================================== */
    .showreel-section {
      padding: 100px 48px;
      background: var(--color-bg-2);
      border-top: 1px solid var(--color-border);
      border-bottom: 1px solid var(--color-border);
    }

    .showreel-header,
    .section-header {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 52px;
    }

    .showreel-sub {
      font-size: 17px;
      color: var(--color-muted);
      margin-top: 14px;
      line-height: 1.7;
      max-width: 520px;
      margin-left: auto;
      margin-right: auto;
    }

    .showreel-frame {
      position: relative;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid var(--color-border);
      aspect-ratio: 16/9;
      background: #0A0A14;
      cursor: pointer;
      transition: border-color .3s, box-shadow .4s;
    }

    .showreel-frame:hover {
      border-color: var(--color-border-hover);
      box-shadow: 0 0 60px rgba(123, 92, 246, .15);
    }

    .showreel-poster {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .showreel-thumb {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .6s var(--ease-out-expo), filter .4s;
    }

    .showreel-frame:hover .showreel-thumb {
      transform: scale(1.03);
      filter: brightness(.75);
    }

    .showreel-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(9, 9, 15, .1) 0%, rgba(9, 9, 15, .35) 60%, rgba(9, 9, 15, .7) 100%);
    }

    .showreel-play-btn {
      position: relative;
      z-index: 2;
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: var(--color-purple);
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      padding-left: 4px;
      transition: transform .35s var(--ease-out-expo), box-shadow .35s;
    }

    .showreel-play-btn:hover {
      transform: scale(1.12);
      box-shadow: 0 0 0 16px rgba(123, 92, 246, .18), 0 0 40px rgba(123, 92, 246, .4);
    }

    .play-pulse {
      position: absolute;
      inset: -10px;
      border-radius: 50%;
      border: 1.5px solid rgba(123, 92, 246, .5);
      animation: pulse-ring 2.5s ease-out infinite;
    }

    @keyframes pulse-ring {
      0% {
        transform: scale(.85);
        opacity: .8
      }

      80%,
      100% {
        transform: scale(1.5);
        opacity: 0
      }
    }

    .showreel-meta {
      position: absolute;
      bottom: 24px;
      left: 28px;
      display: flex;
      align-items: center;
      gap: 12px;
      z-index: 2;
    }

    .showreel-duration {
      font-size: 12px;
      font-weight: 700;
      color: rgba(255, 255, 255, .55);
      background: rgba(0, 0, 0, .45);
      padding: 3px 9px;
      border-radius: 4px;
      backdrop-filter: blur(6px);
    }

    .showreel-label {
      font-size: 13px;
      font-weight: 600;
      color: rgba(255, 255, 255, .7);
      letter-spacing: .03em;
    }

    .showreel-player {
      position: absolute;
      inset: 0;
    }

/* =====================================================================
   SERVICES TABS
   ===================================================================== */
    .services-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 40px;
      border-bottom: 1px solid var(--color-border);
      padding-bottom: 0;
    }

    .tab-btn {
      padding: 12px 24px;
      font-family: var(--font-body);
      font-size: 15px;
      font-weight: 500;
      color: var(--color-muted);
      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: color 0.25s, border-color 0.25s;
      margin-bottom: -1px;
      position: relative;
    }

    .tab-btn.active {
      color: var(--color-text);
      border-bottom-color: var(--color-purple);
    }

    .tab-btn:hover:not(.active) {
      color: var(--color-text);
    }

    .tab-panels-wrapper {
      position: relative;
      transition: height 0.32s var(--ease-out-expo);
    }

    .tab-panel {
      display: none;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
      transform: translateY(8px);
      transition: opacity 0.28s ease, transform 0.32s var(--ease-out-expo);
    }

    .tab-panel.active {
      display: grid;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateY(0);
    }

    .tab-panel.is-fading,
    .tab-panel.is-entering {
      opacity: 0;
      transform: translateY(8px);
      pointer-events: none;
    }

    .tab-panel-content {
      padding-top: 8px;
    }

    .tab-badge {
      display: inline-block;
      padding: 4px 12px;
      border-radius: 100px;
      font-size: 12px;
      font-weight: 600;
      background: rgba(123, 92, 246, 0.15);
      color: var(--color-purple);
      border: 1px solid rgba(123, 92, 246, 0.3);
      margin-bottom: 20px;
    }

    .tab-panel-content h3 {
      font-family: var(--font-display);
      font-size: clamp(22px, 2.5vw, 30px);
      font-weight: 700;
      line-height: 1.2;
      margin-bottom: 16px;
    }

    .service-list {
      list-style: none;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 20px 0 28px;
    }

    .service-list li {
      padding: 6px 14px;
      border: 1px solid var(--color-border);
      border-radius: 6px;
      font-size: 13px;
      font-weight: 500;
      color: var(--color-muted);
      transition: border-color 0.2s, color 0.2s;
    }

    .service-list li:hover {
      border-color: var(--color-border-hover);
      color: var(--color-text);
    }

    .built-for {
      display: none;
      padding: 20px;
      background: var(--color-bg-card);
      border: 1px solid var(--color-border);
      border-left: 3px solid var(--color-purple);
      border-radius: 0 10px 10px 0;
      font-size: 14px;
      color: var(--color-muted);
      line-height: 1.6;
    }

    /* Service image with 3D tilt */
    .tab-image-wrap {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--color-border);
      transform-style: preserve-3d;
      perspective: 1000px;
      transition: border-color 0.3s;
    }

    .tab-image-wrap:hover {
      border-color: var(--color-border-hover);
    }

    .tab-image-wrap img {
      width: 100%;
      display: block;
      border-radius: 16px;
      transition: transform 0.15s ease;
    }
