/* ============================================================
   Shoobaddak Online — site.css
   Custom styles on top of Tailwind (CDN). Loaded after Tailwind.
   ============================================================ */

:root {
  --ink-950: #050b14;
  --ink-900: #0a1322;
  --ink-800: #101d31;
  --ink-700: #1a2c47;
  --mint-300: #7cf3c4;
  --mint-400: #2ee6a6;
  --mint-500: #17c98c;
  --mint-600: #0fa873;
  --cyan-300: #67e8f9;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background-color: var(--ink-950);
  color: #e6edf5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Arabic mode: swap to Tajawal everywhere (Space Grotesk has no Arabic) */
[dir="rtl"] body,
[dir="rtl"] .font-display {
  font-family: "Tajawal", "Inter", system-ui, sans-serif;
}

.font-display {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}

::selection {
  background: rgba(46, 230, 166, 0.35);
  color: #ffffff;
}

/* ---------- Scrollbar ---------- */
* {
  scrollbar-width: thin;
  scrollbar-color: #1a2c47 transparent;
}
*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
*::-webkit-scrollbar-thumb {
  background: #1a2c47;
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #24395c;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--mint-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hero canvas ---------- */
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Gradient text ---------- */
.text-gradient-mint {
  background: linear-gradient(100deg, var(--mint-300) 0%, var(--mint-400) 45%, var(--cyan-300) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Cursor glow ---------- */
#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 5;
  background: radial-gradient(circle, rgba(46, 230, 166, 0.07) 0%, rgba(46, 230, 166, 0.03) 40%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  #cursor-glow.active {
    opacity: 1;
  }
}

/* ---------- Marquee ---------- */
@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-ltr 36s linear infinite;
}
[dir="rtl"] .marquee-track {
  animation: marquee-rtl 36s linear infinite;
}
.marquee-mask {
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

/* ---------- Process timeline ---------- */
.process-line {
  transform-origin: left center;
}
[dir="rtl"] .process-line {
  transform-origin: right center;
}

/* ---------- Cards ---------- */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease;
  will-change: transform;
}
.card-lift:hover {
  border-color: rgba(46, 230, 166, 0.45);
  box-shadow: 0 18px 50px -18px rgba(46, 230, 166, 0.25);
}

/* tilt cards get JS-driven transform; keep transition for leave */
[data-tilt] {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease, box-shadow 0.35s ease;
}

/* ---------- Nav ---------- */
#site-nav {
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
#site-nav.nav-scrolled {
  background-color: rgba(5, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

/* mobile menu */
#mobile-menu {
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Word reveal (GSAP targets .word) ---------- */
[data-split] .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- Scroll hint ---------- */
@keyframes scroll-hint {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}
.scroll-hint-dot {
  animation: scroll-hint 1.8s ease-in-out infinite;
}

/* ---------- CTA band glow ---------- */
.cta-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(60% 120% at 20% 0%, rgba(46, 230, 166, 0.22) 0%, transparent 60%),
    radial-gradient(50% 100% at 90% 100%, rgba(103, 232, 249, 0.14) 0%, transparent 60%);
  pointer-events: none;
}

/* ---------- Form ---------- */
input, select, textarea {
  color-scheme: dark;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track,
  .scroll-hint-dot {
    animation: none;
  }
  [data-tilt] {
    transition: none;
  }
}
