/* ═══════════════════════════════════════════════════════════════
   othns — Portfolio Landing Page Styles
   v2.0 — Full Animation & 3D Enhancement
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
:root {
  /* ── Original palette (Hero untouched) ── */
  --bg: #06060a;
  --bg-2: #0c0c14;
  --bg-3: #101020;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.12);
  --text: #f0eff8;
  --text-muted: rgba(240, 239, 248, 0.55);
  --text-dim: rgba(240, 239, 248, 0.30);
  --accent: #7c6aff;
  --accent-2: #a88fff;
  --accent-glow: rgba(124, 106, 255, 0.35);
  --gold: #d4af70;
  --teal: #5de0c5;

  /* ── PRD Enhanced Color System ── */
  --color-white-pure: #FFFFFF;
  --color-white-warm: #F8F8F8;
  --color-white-soft: #F2F2F2;
  --color-white-muted: #EDEDED;
  --color-black-pure: #000000;
  --color-black-rich: #0A0A0A;
  --color-black-deep: #111111;
  --color-black-soft: #1A1A1A;
  --color-gray-900: #1C1C1E;
  --color-gray-800: #2C2C2E;
  --color-gray-700: #3A3A3C;
  --color-gray-600: #48484A;
  --color-gray-500: #636366;
  --color-gray-400: #8E8E93;
  --color-gray-300: #AEAEB2;
  --color-gray-200: #C7C7CC;
  --color-gray-100: #D1D1D6;
  --color-gray-050: #E5E5EA;
  --surface-glass: rgba(255, 255, 255, 0.06);
  --surface-glass-border: rgba(255, 255, 255, 0.12);
  --surface-dark-glass: rgba(0, 0, 0, 0.40);
  --surface-overlay: rgba(10, 10, 10, 0.85);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10), 0 2px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.20), 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px rgba(255, 255, 255, 0.08);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 100%);
  --gradient-edge-light: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);

  --font-main: 'Space Grotesk', 'Noto Sans Arabic', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1200px;
  --nav-h: 72px;
}

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

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 2px;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: none;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── CONTAINER ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ── CURSOR ── */
#cursor {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: screen;
}

#cursor-follower {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(124, 106, 255, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  width: 14px;
  height: 14px;
}

body:has(a:hover) #cursor-follower,
body:has(button:hover) #cursor-follower {
  width: 56px;
  height: 56px;
  background: rgba(124, 106, 255, 0.08);
}

/* ── LOADER ── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar-wrap {
  width: 220px;
  height: 2px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 2px;
}

.loader-percent {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

#navbar.scrolled {
  background: rgba(6, 6, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}





.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: all 0.25s ease;
  position: relative;
  vertical-align: middle;
  transform: translateY(0) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 6, 10, 0.97);
  backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease-in-out);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.mobile-link {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

.mobile-link:hover {
  color: var(--text);
}

/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
  image-rendering: optimizeQuality;
}

#hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#hero-particles canvas {
  position: absolute;
  inset: 0;
}

.hero-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay-sides {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(6, 6, 10, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-noise {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(124, 106, 255, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.95);
}

.hero-title {
  font-size: clamp(5rem, 15vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: #fff;
  opacity: 0;
  position: relative;
}

.title-line {
  display: block;
  filter: drop-shadow(0 0 60px rgba(124, 106, 255, 0.4));
  direction: ltr;
}

.title-line .char {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #5a4ccc);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 0 0 0 var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6a5aff, var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--accent-glow);
}

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

.btn-primary span {
  position: relative;
  z-index: 1;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 1;
}

/* ── RIPPLE EFFECT ── */
.btn-primary .ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0) translate(-50%, -50%);
  animation: rippleAnim 0.7s ease-out forwards;
  pointer-events: none;
  z-index: 2;
}

@keyframes rippleAnim {
  0% {
    transform: scale(0) translate(-50%, -50%);
    opacity: 1;
  }

  80% {
    transform: scale(28) translate(-50%, -50%);
    opacity: 0.4;
  }

  100% {
    transform: scale(32) translate(-50%, -50%);
    opacity: 0;
  }
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(124, 106, 255, 0.08);
}

/* ── SCROLL INDICATOR ── */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── STORYTELLING NARRATIVE ── */
.hero-story-narrative {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 9;
}

.story-step {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 860px;
  padding: 0 32px;
  opacity: 0;
  will-change: opacity, transform;
}

.story-label {
  display: block;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 1;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.4),
    0 0 20px rgba(124, 106, 255, 0.2),
    0 2px 10px rgba(0, 0, 0, 0.95);
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  margin-bottom: 8px;
}

.story-headline {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: block;
  background: linear-gradient(160deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(124, 106, 255, 0.3));
}

/* ── HERO STATS ── */
.hero-stats {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 0 60px;
  gap: 0;
  opacity: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 32px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 12px 0;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-plus {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ── MARQUEE ── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
}

.marquee-track {
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: marqueeScroll 28s linear infinite;
}

.marquee-content span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee-content .dot {
  color: var(--accent);
  font-size: 0.6rem;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ── SECTION COMMONS ── */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '// ';
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 60px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── ABOUT ── */
.about-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay for about section */
.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 106, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 106, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.tag {
  padding: 7px 16px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px rgba(124, 106, 255, 0.15);
}

.visual-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.visual-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 20px 60px rgba(124, 106, 255, 0.1);
}

.visual-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(124, 106, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  transition: opacity 0.4s;
}

.code-block {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 2;
  position: relative;
}

.code-line {
  color: var(--text-muted);
}

.code-line.ml {
  padding-right: 20px;
}

.c-kw {
  color: #c792ea;
}

.c-var {
  color: #82aaff;
}

.c-key {
  color: #f78c6c;
}

.c-str {
  color: #c3e88d;
}

.code-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
  color: var(--accent);
  font-weight: bold;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── SERVICES ── */
.services-section {
  padding: 140px 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Animated gradient border on cards */
.service-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  transform-style: preserve-3d;
  cursor: none;
  /* Gradient border via pseudo */
  isolation: isolate;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.08), rgba(124, 106, 255, 0.0), rgba(124, 106, 255, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: background 0.4s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124, 106, 255, 0.12), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.4), rgba(93, 224, 197, 0.2), rgba(124, 106, 255, 0.1));
}

.service-icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: rgba(124, 106, 255, 0.08);
  transition: all 0.4s var(--ease-spring);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  transition: color 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(124, 106, 255, 0.18);
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(124, 106, 255, 0.25);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.service-arrow {
  position: absolute;
  top: 36px;
  left: 36px;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all 0.3s var(--ease-out);
}

.service-arrow svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.service-card:hover .service-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.service-glow {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover .service-glow {
  opacity: 1;
}

/* ── WORK ── */
.work-section {
  padding: 140px 0;
  position: relative;
}

.work-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s var(--ease-out);
  cursor: none;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: var(--accent);
  background: rgba(124, 106, 255, 0.1);
  box-shadow: 0 4px 20px rgba(124, 106, 255, 0.15);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.work-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: none;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.work-card:hover {
  border-color: var(--border-2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.work-card-wrapper--wide {
  grid-column: span 2;
}

.work-card-wrapper {
  grid-column: span 1;
  perspective: 1000px;
  will-change: transform;
}

.work-img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.6s var(--ease-out);
}

/* Clip-path reveal base state (applied via JS) */
.work-card-wrapper.reveal-ready .work-img-wrap {
  clip-path: inset(100% 0% 0% 0%);
}

.work-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out);
}

.work-placeholder-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.15);
}

.work-card:hover .work-img {
  transform: scale(1.07);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-view {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
}

.work-info {
  padding: 20px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-cat {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-mono);
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 6px;
}

/* ── AI AGENT ── */
.ai-agent-section {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 0%, rgba(124,106,255,0.03) 50%, transparent 100%);
}

.ai-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
}

.ai-neural-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  z-index: 0;
}

.ai-neural-lines svg { width: 100%; height: 100%; }

@keyframes aiNodePulse {
  0%, 100% { opacity: 0.4; r: 4; }
  50% { opacity: 0.9; r: 6; }
}

.ai-node { animation: aiNodePulse 3s ease-in-out infinite; }
.ai-node:nth-child(2) { animation-delay: 0.5s; }
.ai-node:nth-child(3) { animation-delay: 1s; }
.ai-node:nth-child(4) { animation-delay: 1.5s; }

.ai-header {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
}

/* ── AI Main Grid ── */
.ai-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 2;
}

/* ── Stat Cards ── */
.ai-stats-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ai-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 16px;
  row-gap: 4px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.ai-stat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,106,255,0.1);
}

.ai-stat-icon {
  grid-row: 1 / 4;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(124,106,255,0.12);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin-top: 2px;
}

.ai-stat-icon--teal {
  background: rgba(93,224,197,0.12);
  color: var(--teal);
}

.ai-stat-icon--gold {
  background: rgba(212,175,112,0.12);
  color: var(--gold);
}

.ai-stat-icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.ai-stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text);
  line-height: 1;
}

.ai-stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.ai-stat-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Benefits Column ── */
.ai-benefits-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ai-benefits-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.ai-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(93,224,197,0.5);
  animation: pulseDot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(93,224,197,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(93,224,197,0); }
  100% { box-shadow: 0 0 0 0 rgba(93,224,197,0); }
}

.ai-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.ai-benefit-item:last-child { border-bottom: none; }

.ai-benefit-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(124,106,255,0.1);
  color: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.ai-benefit-icon--teal {
  background: rgba(93,224,197,0.1);
  color: var(--teal);
}

.ai-benefit-icon--gold {
  background: rgba(212,175,112,0.1);
  color: var(--gold);
}

.ai-benefit-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.ai-benefit-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.ai-benefit-text p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Platform Badges ── */
.ai-platforms {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.ai-platform-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ai-platform-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.ai-platform-badge:hover {
  border-color: var(--border-2);
  color: var(--text);
}
.ai-platform-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-ai-order svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── AI CTA ── */
.ai-cta-wrap {
  margin-top: 48px;
  text-align: center;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ai-cta-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124,106,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.btn-ai-order {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
  box-shadow: 0 4px 24px rgba(124,106,255,0.35);
  font-family: var(--font-main);
}

.btn-ai-order:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 36px rgba(124,106,255,0.5);
}

.ai-order-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-order-icon svg { width: 18px; height: 18px; }

.ai-cta-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── AI Modal ── */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.ai-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ai-modal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s;
}

.ai-modal-overlay.open .ai-modal {
  transform: translateY(0);
}

.ai-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ai-modal-close:hover {
  border-color: var(--border-2);
  color: var(--text);
}

.ai-modal-close svg { width: 16px; height: 16px; }


.ai-modal-header { margin-bottom: 28px; }

.ai-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93,224,197,0.08);
  border: 1px solid rgba(93,224,197,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: var(--teal);
  margin-bottom: 16px;
}

.ai-modal-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.ai-modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ai-modal-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-action-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 16px;
  row-gap: 0;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.ai-action-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.ai-action-card:hover::before {
  transform: translateX(100%);
}

.ai-action-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ai-action-card--primary {
  border-color: rgba(93, 224, 197, 0.15);
}

.ai-action-card--primary:hover {
  border-color: var(--teal);
  background: rgba(93, 224, 197, 0.03);
  box-shadow: 0 8px 30px rgba(93, 224, 197, 0.06);
}

.ai-action-card--fb {
  border-color: rgba(24, 119, 242, 0.15);
}

.ai-action-card--fb:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.03);
  box-shadow: 0 8px 30px rgba(24, 119, 242, 0.06);
}

.ai-action-card--ig {
  border-color: rgba(225, 48, 108, 0.15);
}

.ai-action-card--ig:hover {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.03);
  box-shadow: 0 8px 30px rgba(225, 48, 108, 0.06);
}

.ai-action-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.3s var(--ease-out);
}

.ai-action-card--primary .ai-action-icon {
  background: rgba(93, 224, 197, 0.1);
  color: var(--teal);
}

.ai-action-card--primary:hover .ai-action-icon {
  background: var(--teal);
  color: #06060a;
}

.ai-action-card--fb .ai-action-icon {
  background: rgba(24, 119, 242, 0.1);
  color: #1877f2;
}

.ai-action-card--fb:hover .ai-action-icon {
  background: #1877f2;
  color: #fff;
}

.ai-action-card--ig .ai-action-icon {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
}

.ai-action-card--ig:hover .ai-action-icon {
  background: #e1306c;
  color: #fff;
}

.ai-action-icon svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.ai-action-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.ai-action-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.ai-action-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.ai-action-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  transition: transform 0.3s var(--ease-out), color 0.3s;
  flex-shrink: 0;
}

.ai-action-card:hover .ai-action-arrow {
  transform: translate(-3px, -3px);
  color: var(--text);
}

.ai-fb-note, .ai-ig-note {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 10px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 8px;
  width: 100%;
}

.ai-fb-note svg, .ai-ig-note svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}


/* ── animate-card for scroll entrance ── */
.animate-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-card.in-view {
  opacity: 1;
  transform: translateY(0);
}
.animate-card:nth-child(2) { transition-delay: 0.1s; }
.animate-card:nth-child(3) { transition-delay: 0.2s; }

@media (max-width: 900px) {
  .ai-main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .ai-agent-section { padding: 80px 0; }
  .ai-stat-card { padding: 16px; }
  .ai-platforms { flex-direction: column; align-items: flex-start; }
}

/* ── PROCESS ── */
.process-section {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}

/* Subtle animated grid bg for process */
.process-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 224, 197, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 224, 197, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

.process-section .container {
  position: relative;
  z-index: 1;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 60px;
  position: relative;
  /* needed for the progress bar absolute child */
}

/* Progress line container — inside .process-steps for correct relative positioning */
.process-progress-wrap {
  position: absolute;
  top: -20px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--border);
  z-index: 2;
  overflow: hidden;
  border-radius: 2px;
}

.process-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(124, 106, 255, 0.5);
}

.process-step {
  flex: 1;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
  /* opacity & transform are set by GSAP */
}

.process-step:hover {
  border-color: var(--border-2);
  box-shadow: 0 20px 50px rgba(124, 106, 255, 0.08);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
  line-height: 1;
  transition: opacity 0.3s;
}

.process-step:hover .step-num {
  opacity: 0.8;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.process-connector {
  width: 40px;
  flex-shrink: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  margin-top: 52px;
  opacity: 0;
  transform: scaleX(0);
}

/* ── CTA ── */
.cta-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-bg-canvas canvas {
  width: 100% !important;
  height: 100% !important;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cta-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Split text word spans (added by JS) */
.cta-title .word {
  display: inline-block;
  overflow: hidden;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 460px;
  line-height: 1.7;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  gap: 40px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--text);
}

/* ── SOCIAL BUTTONS (UIVERSE) ── */
.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

.social-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  padding: 0;
  text-decoration: none;
}

.footer-col .social-btn {
  color: unset;
  font-size: unset;
  transition: all 0.3s var(--ease-out);
}

.footer-col .social-btn:hover {
  color: unset;
}

.social-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  border-radius: 10px;
  transition: all 0.3s var(--ease-out);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-bg {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.3s var(--ease-out);
}

.social-btn:hover .social-bg {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.social-btn:hover .social-svg-container {
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Brand configurations */
.social-btn--x .social-bg {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* WhatsApp Button from Uiverse */
.Btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: transparent;
  position: relative;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  text-decoration: none;
}

.svgContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  backdrop-filter: blur(0px);
  border-radius: 10px;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.BG {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: #075e54;
  z-index: -1;
  border-radius: 10px;
  pointer-events: none;
  transition: all 0.3s;
}

.Btn:hover .BG {
  transform: rotate(35deg);
  transform-origin: bottom;
}

.Btn:hover .svgContainer {
  background-color: rgba(156, 156, 156, 0.466);
  backdrop-filter: blur(4px);
  border-color: rgba(255, 255, 255, 0.3);
}

.footer-col .Btn {
  color: unset;
  font-size: unset;
  transition: all 0.3s;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-made {
  color: var(--text-dim);
}

/* ── ANIMATIONS BASE ── */
.fade-up {
  opacity: 0;
  transform: translateY(60px);
}

.animate-card {
  opacity: 0;
  transform: translateY(40px);
}

/* ── TILT CARDS ── */
.tilt-card {
  transform-style: preserve-3d;
}

/* ── MAGNETIC BUTTON ── */
.magnetic-btn {
  display: inline-flex;
  position: relative;
}

/* ── AMBIENT CINEMATIC BACKGROUND ── */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: #06060a;
}

.ambient-blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 750px;
  max-height: 750px;
  border-radius: 50%;
  opacity: 0.08;
  filter: blur(140px);
  will-change: transform;
}

.blob-1 {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -10%;
  left: -10%;
}

.blob-2 {
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
}

.blob-3 {
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  top: 35%;
  right: 5%;
}

.blob-4 {
  background: radial-gradient(circle, #ff5d9f 0%, transparent 70%);
  bottom: 15%;
  left: 10%;
}

/* Semi-transparent glass backgrounds for sections over ambient bg */
.services-section {
  background: rgba(12, 12, 20, 0.45) !important;
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-section {
  background: rgba(16, 16, 32, 0.45) !important;
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.marquee-section {
  background: rgba(12, 12, 20, 0.5) !important;
  backdrop-filter: blur(16px);
}

/* ── SECTION REVEAL GLOW LINES ── */
.section-reveal-line {
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal), transparent);
  margin-bottom: 32px;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(124, 106, 255, 0.4);
}

/* ── ICON ANIMATION STATES ── */
.service-icon.is-spinning svg {
  animation: iconSpin 0.5s ease-out;
}

@keyframes iconSpin {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.25);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .fade-up,
  .animate-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .process-step {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

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

  .work-card-wrapper--wide {
    grid-column: span 2;
  }

  .process-steps {
    flex-wrap: wrap;
    gap: 16px;
  }

  .process-connector {
    display: none;
  }
}

  @media (max-width: 768px) {
  
    .nav-links {
        display: none;
      }

    .nav-actions {
      gap: 12px;
    }
    
    .nav-cta {
      padding: 6px 14px;
      font-size: 0.75rem;
    }
    .lang-switch-wrapper {
      font-size: 10px;
    }

    .nav-logo {
      font-size: 1.1rem;
    }

    #navbar {
      padding: 0 16px;
    }

    .nav-burger {
      display: flex;
    }

    :root {
      --nav-h: 60px;
    }

    .hero-stats {
      display: none;
    }

    .scroll-indicator {
      display: none;
    }
}



/* ── LANG SWITCH ── */
.lang-switch-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  direction: ltr;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35em 0.8em;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  font-size: 12px;
  line-height: 1;
}

.lang-switch-wrapper:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.lang-text {
  font-size: 0.9em;
  font-weight: 700;
  color: var(--text-dim);
  transition: color 0.25s;
  cursor: pointer;
  user-select: none;
  line-height: 1;
  display: inline-block;
}

.lang-text.active {
  color: var(--text);
}

.switch {
  position: relative;
  display: inline-block;
  width: 2.6em;
  height: 1.3em;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.slider {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  transition: all 0.3s var(--ease-out);
  border-radius: 100px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.slider:before {
  position: absolute;
  content: "";
  height: 1em;
  width: 1em;
  border-radius: 50%;
  left: 0.15em;
  top: 0.15em;
  background-color: var(--text);
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--teal);
}

input:checked + .slider:before {
  transform: translateX(1.3em);
  background-color: #06060a;
}

/* ── PRIVACY POLICY MODAL ── */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(6, 6, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.privacy-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.privacy-modal {
  background: rgba(12, 12, 20, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-2);
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  padding: 40px;
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.privacy-modal-overlay.open .privacy-modal {
  transform: translateY(0) scale(1);
}

.privacy-modal-close {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  z-index: 10;
}

.privacy-modal-close:hover {
  border-color: var(--border-2);
  color: var(--text);
  transform: rotate(90deg);
}

.privacy-modal-close svg {
  width: 16px;
  height: 16px;
}

.privacy-modal-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.privacy-modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.privacy-modal-content {
  overflow-y: auto;
  flex-grow: 1;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: right; /* Default RTL */
}

/* Scrollbar inside modal */
.privacy-modal-content::-webkit-scrollbar {
  width: 4px;
}

.privacy-modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-modal-content::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 2px;
}

/* LTR layout alignment when html lang="en" */
html[lang="en"] .privacy-modal-content {
  text-align: left;
}

html[lang="en"] .privacy-modal-close {
  left: auto;
  right: 24px;
}

.privacy-modal-content h1,
.privacy-modal-content h2,
.privacy-modal-content h3,
.privacy-modal-content h4 {
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}

.privacy-modal-content h1 {
  font-size: 1.8rem;
}

.privacy-modal-content h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.privacy-modal-content h3 {
  font-size: 1.15rem;
}

.privacy-modal-content h4 {
  font-size: 1rem;
}

.privacy-modal-content p {
  margin-bottom: 16px;
}

.privacy-modal-content ul {
  margin-bottom: 16px;
  padding-right: 20px;
  list-style-type: square;
}

html[lang="en"] .privacy-modal-content ul {
  padding-right: 0;
  padding-left: 20px;
}

.privacy-modal-content li {
  margin-bottom: 8px;
}

.privacy-modal-content strong {
  color: var(--text);
}

.privacy-modal-content a {
  color: var(--teal);
  text-decoration: underline;
}

.privacy-modal-content a:hover {
  color: var(--accent-2);
}

/* Privacy policy button in footer */
.footer-privacy-btn {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.25s, transform 0.2s;
  padding: 0;
}

.footer-privacy-btn:hover {
  color: var(--text);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AI AGENT CHAT WIDGET & LAUNCHER (n8n Webhook Integration)
   Cyber-Luxury Glassmorphism System
   ═══════════════════════════════════════════════════════════════ */

/* ── Floating Launcher Trigger ── */
.ai-chat-launcher {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  background: rgba(12, 12, 22, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(124, 106, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 25px rgba(124, 106, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  user-select: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="en"] .ai-chat-launcher {
  padding: 8px 8px 8px 18px;
}

.ai-chat-launcher:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(93, 224, 197, 0.6);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 35px rgba(93, 224, 197, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ai-chat-launcher.chat-open {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8) translateY(20px);
}

/* Pulsing Outer Ring */
.ai-launcher-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1.5px solid rgba(124, 106, 255, 0.6);
  pointer-events: none;
  animation: launcherRingPulse 2.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes launcherRingPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0;
  }
  100% {
    transform: scale(0.96);
    opacity: 0;
  }
}

.ai-launcher-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.35), rgba(93, 224, 197, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.ai-bot-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 6px rgba(124, 106, 255, 0.8));
}

.ai-launcher-status-dot {
  position: absolute;
  bottom: 1px;
  inset-inline-end: 1px;
  width: 11px;
  height: 11px;
  background: var(--teal);
  border: 2px solid #06060a;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
}

.ai-launcher-badge {
  display: flex;
  flex-direction: column;
}

.ai-launcher-text {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* ── AI Chat Widget Container ── */
.ai-chat-widget {
  position: fixed;
  bottom: 28px;
  inset-inline-end: 28px;
  z-index: 9995;
  width: 410px;
  max-width: calc(100vw - 36px);
  height: 610px;
  max-height: calc(100vh - 100px);
  background: rgba(10, 10, 18, 0.88);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.75), 
    0 0 50px rgba(124, 106, 255, 0.2), 
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.92);
  transform-origin: bottom right;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="en"] .ai-chat-widget {
  transform-origin: bottom right;
}

html[lang="ar"] .ai-chat-widget {
  transform-origin: bottom left;
}

.ai-chat-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* ── Chat Header ── */
.ai-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-header-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-chat-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
}

.ai-chat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6aff 0%, #4f46e5 50%, #5de0c5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 16px rgba(124, 106, 255, 0.5);
}

.ai-chat-avatar svg {
  width: 22px;
  height: 22px;
}

.ai-chat-live-pulse {
  position: absolute;
  bottom: 0;
  inset-inline-end: 0;
  width: 11px;
  height: 11px;
  background: #10b981;
  border: 2px solid #0a0a12;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.ai-chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-chat-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.ai-chat-chip-status {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(93, 224, 197, 0.15);
  border: 1px solid rgba(93, 224, 197, 0.35);
  color: var(--teal);
}

.ai-chat-status {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.ai-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ai-chat-btn-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: scale(1.08);
}

.ai-chat-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
}

/* ── Chat Messages Scroll Area ── */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 18px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar {
  width: 4px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

/* Welcome Box */
.ai-chat-welcome-box {
  position: relative;
  padding: 16px;
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.12) 0%, rgba(93, 224, 197, 0.06) 100%);
  border: 1px solid rgba(124, 106, 255, 0.25);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.ai-welcome-sparkle {
  font-size: 1.1rem;
  color: var(--teal);
  margin-bottom: 4px;
  filter: drop-shadow(0 0 6px var(--teal));
}

.ai-chat-welcome-box h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ai-chat-welcome-box p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ai-chat-welcome-box strong {
  color: var(--teal);
}

/* Quick Prompts Container */
.ai-chat-quick-prompts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 10px;
}

.ai-prompt-chip {
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text);
  font-size: 0.8rem;
  text-align: start;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.4;
  font-family: inherit;
}

.ai-prompt-chip:hover {
  background: rgba(124, 106, 255, 0.16);
  border-color: rgba(124, 106, 255, 0.45);
  color: #fff;
  transform: translateX(-3px);
}

html[lang="en"] .ai-prompt-chip:hover {
  transform: translateX(3px);
}

/* ── Chat Messages Log ── */
.ai-chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Base Message Row */
.ai-msg-row {
  display: flex;
  gap: 10px;
  width: 100%;
  animation: msgSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes msgSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-msg-row--user {
  justify-content: flex-end;
}

.ai-msg-row--bot {
  justify-content: flex-start;
}

.ai-msg-bot-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6aff, #5de0c5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  margin-top: 4px;
  box-shadow: 0 0 10px rgba(124, 106, 255, 0.4);
}

/* Bubble Design */
.ai-msg-bubble {
  max-width: 82%;
  padding: 12px 15px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
  position: relative;
}

.ai-msg-row--user .ai-msg-bubble {
  background: linear-gradient(135deg, #7c6aff 0%, #6350e4 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 16px rgba(124, 106, 255, 0.3);
}

html[lang="en"] .ai-msg-row--user .ai-msg-bubble {
  border-radius: 18px 18px 18px 4px;
}

.ai-msg-row--bot .ai-msg-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 18px 18px 18px 4px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

html[lang="en"] .ai-msg-row--bot .ai-msg-bubble {
  border-radius: 18px 18px 4px 18px;
}

.ai-msg-bubble a {
  color: var(--teal);
  text-decoration: underline;
  word-break: break-all;
}

.ai-msg-bubble strong {
  color: #ffffff;
  font-weight: 700;
}

.ai-msg-bubble ul, .ai-msg-bubble ol {
  margin: 6px 0;
  padding-inline-start: 18px;
}

.ai-msg-bubble li {
  margin-bottom: 4px;
}

.ai-msg-time {
  display: block;
  font-size: 0.65rem;
  margin-top: 4px;
  opacity: 0.6;
  text-align: end;
}

/* ── Typing Indicator Bubble ── */
.ai-chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: msgSlideIn 0.3s ease;
}

.ai-typing-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c6aff, #5de0c5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.ai-typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.ai-typing-bubble span {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: typingDot 1.4s infinite ease-in-out both;
}

.ai-typing-bubble span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-bubble span:nth-child(2) { animation-delay: -0.16s; }
.ai-typing-bubble span:nth-child(3) { animation-delay: 0s; }

@keyframes typingDot {
  0%, 80%, 100% {
    transform: scale(0.5);
    opacity: 0.4;
  }
  40% {
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 0 6px var(--teal);
  }
}

.ai-typing-text {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ── Chat Footer Input Bar ── */
.ai-chat-footer {
  padding: 12px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 4px 6px 4px 14px;
  transition: all 0.25s ease;
}

html[lang="en"] .ai-chat-input-wrap {
  padding: 4px 14px 4px 6px;
}

.ai-chat-input-wrap:focus-within {
  border-color: rgba(124, 106, 255, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 16px rgba(124, 106, 255, 0.2);
}

.ai-chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  padding: 8px 0;
}

.ai-chat-input::placeholder {
  color: var(--text-dim);
}

.ai-chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c6aff 0%, #5de0c5 100%);
  border: none;
  color: #06060a;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 10px rgba(124, 106, 255, 0.4);
  flex-shrink: 0;
}

html[lang="ar"] .ai-chat-send-btn svg {
  transform: scaleX(-1);
}

.ai-chat-send-btn:hover:not(:disabled) {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(93, 224, 197, 0.5);
}

.ai-chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.ai-chat-powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.ai-n8n-icon {
  color: #f59e0b;
  font-size: 0.75rem;
}

/* ── Mobile Responsive Overrides ── */
@media (max-width: 600px) {
  .ai-chat-launcher {
    bottom: 20px;
    inset-inline-end: 18px;
    padding: 6px 14px 6px 6px;
  }

  html[lang="en"] .ai-chat-launcher {
    padding: 6px 6px 6px 14px;
  }

  .ai-launcher-avatar {
    width: 38px;
    height: 38px;
  }

  .ai-launcher-text {
    font-size: 0.8rem;
  }

  .ai-chat-widget {
    bottom: 0;
    inset-inline-end: 0;
    inset-inline-start: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
    transform: translateY(100%);
  }

  .ai-chat-widget.active {
    transform: translateY(0);
  }

  .ai-chat-header {
    padding: 14px 16px;
  }

  .ai-chat-messages {
    padding: 14px 14px 8px;
  }

  .ai-chat-footer {
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── AI Section CTA Buttons Row & Live Trigger ── */
.ai-cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-ai-chat-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: rgba(124, 106, 255, 0.12);
  border: 1px solid rgba(124, 106, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(124, 106, 255, 0.2);
}

.btn-ai-chat-live:hover {
  background: rgba(124, 106, 255, 0.25);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(93, 224, 197, 0.3);
}

.ai-live-dot {
  width: 9px;
  height: 9px;
  background: var(--teal);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--teal);
  animation: typingDot 1.6s infinite ease-in-out;
}

/* ═══════════════════════════════════════════════════════
   SEO FAQ SECTION
   ═══════════════════════════════════════════════════════ */
.seo-faq-section {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.seo-faq-inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.seo-faq-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  text-align: right;
}

.seo-faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.seo-faq-item:hover,
.seo-faq-item[open] {
  border-color: rgba(124, 106, 255, 0.4);
  box-shadow: 0 4px 30px rgba(124, 106, 255, 0.08);
}

.seo-faq-item summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.97rem;
  color: var(--text);
  user-select: none;
  transition: color 0.2s;
}

.seo-faq-item summary::-webkit-details-marker { display: none; }

.seo-faq-item summary::before {
  content: '＋';
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-right: auto;
}

.seo-faq-item[open] summary::before {
  content: '－';
}

.seo-faq-item[open] summary {
  color: var(--accent-2);
}

.seo-faq-item p {
  padding: 0 1.5rem 1.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  margin-top: 0.2rem;
  padding-top: 1rem;
}

.seo-faq-item strong {
  color: var(--text);
}

@media (max-width: 768px) {
  .seo-faq-section { padding: 3.5rem 0 2.5rem; }
  .seo-faq-item summary { font-size: 0.9rem; padding: 1rem 1.2rem; }
  .seo-faq-item p { padding: 0 1.2rem 1.1rem; font-size: 0.85rem; }
}
