﻿/* ═══════════════════════════════════════════════════════════════════════════
   NSNTECH – DEEP SPACE THEME  |  theme.css
   "Cyberpunk Corporate meets Saudi Futurism"
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
  --cosmic:        #050B14;
  --cosmic-mid:    #0A1628;
  --cosmic-light:  #0F2040;
  --neon-cyan:     #00E5FF;
  --neon-violet:   #7B61FF;
  --desert-gold:   #F5A623;
  --trust-blue:    #007BFF;
  --glass-bg:      rgba(0, 229, 255, 0.06);
  --glass-border:  rgba(0, 229, 255, 0.15);
  --glass-border-h:rgba(0, 229, 255, 0.40);
  --text-primary:  #F0F6FF;
  --text-secondary:#8BA3C0;
  --text-dim:      #4A6080;
  --font-head:     'Syne', sans-serif;
  --font-body:     'Plus Jakarta Sans', sans-serif;
  --font-ar:       'Noto Kufi Arabic', sans-serif;
  --nav-h:         72px;
  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-cyan:     0 0 20px rgba(0, 229, 255, 0.3), 0 0 60px rgba(0, 229, 255, 0.1);
  --glow-violet:   0 0 20px rgba(123, 97, 255, 0.3), 0 0 60px rgba(123, 97, 255, 0.1);
  --glow-gold:     0 0 20px rgba(245, 166, 35, 0.3), 0 0 60px rgba(245, 166, 35, 0.1);
}

/* ── Base Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--cosmic);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

[dir="rtl"] body,
[dir="rtl"] * { font-family: var(--font-ar); }

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────────── */
.font-head, h1, h2, h3, h4 { font-family: var(--font-head); }

h1 { font-size: clamp(2.4rem, 6vw, 5rem);  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.25rem; font-weight: 600; }

.text-neon-cyan   { color: var(--neon-cyan); }
.text-neon-violet { color: var(--neon-violet); }
.text-desert-gold { color: var(--desert-gold); }
.text-trust-blue  { color: var(--trust-blue); }
.text-dim         { color: var(--text-secondary); }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--desert-gold) 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Cursor Glow ───────────────────────────────────────────────────────────── */
#cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  transition: opacity 0.3s;
  will-change: transform;
}

/* ── Background Orbs ─────────────────────────────────────────────────────── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.orb-1 {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.12) 0%, transparent 70%);
  animation: orbDrift1 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 500px;
  height: 500px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.10) 0%, transparent 70%);
  animation: orbDrift2 25s ease-in-out infinite alternate;
}

.orb-3 {
  width: 400px;
  height: 400px;
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.08) 0%, transparent 70%);
  animation: orbDrift3 18s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 120px) scale(1.15); }
}
@keyframes orbDrift2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, 80px) scale(1.2); }
}
@keyframes orbDrift3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -60px) scale(1.1); }
}

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 11, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.mini-logo-canvas { width: 36px; height: 36px; }

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.logo-nex   { color: var(--neon-cyan); }
.logo-sight { color: var(--text-primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: left var(--transition), right var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(0, 229, 255, 0.06);
}

.nav-link:hover::after, .nav-link.active::after {
  left: 0.85rem;
  right: 0.85rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}
.lang-switcher a { transition: color var(--transition); }
.lang-switcher a:hover, .lang-switcher a.active { color: var(--neon-cyan); }

/* Mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-cyan);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(5, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateY(0); display: block; }

.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-menu a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all var(--transition);
}
.mobile-menu a:hover {
  color: var(--neon-cyan);
  border-color: var(--glass-border);
  background: var(--glass-bg);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #0099BB 100%);
  color: var(--cosmic);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--neon-cyan);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-outline:hover {
  background: var(--glass-bg);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--desert-gold) 0%, #E8960F 100%);
  color: var(--cosmic);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 14px;
}

/* Magnetic effect class (JS applies inline translate) */
.btn-magnetic { transition: transform 0.15s ease, box-shadow var(--transition); }

/* ── Glassmorphism Cards ───────────────────────────────────────────────────── */
.glass-card {
  background: rgba(10, 22, 40, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

.glass-card:hover {
  border-color: var(--glass-border-h);
  box-shadow: var(--glow-cyan);
}

.glass-card.violet:hover { border-color: rgba(123, 97, 255, 0.4); box-shadow: var(--glow-violet); }
.glass-card.gold:hover   { border-color: rgba(245, 166, 35, 0.4); box-shadow: var(--glow-gold); }

/* ── Section Layouts ─────────────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
}

.section-sm { padding: 4rem 2rem; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
  border-radius: 2px;
  margin: 1.25rem 0;
}

/* ── Hero Section ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

#hero-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 11, 20, 0.85) 0%,
    rgba(5, 11, 20, 0.50) 50%,
    rgba(5, 11, 20, 0.20) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--neon-cyan), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.3; transform: scaleY(0.6); }
}

/* ── Trust Bar ─────────────────────────────────────────────────────────────── */
.trust-bar {
  background: rgba(10, 22, 40, 0.8);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.25rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  align-items: center;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(140, 163, 192, 0.5);
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color var(--transition), filter var(--transition);
  filter: grayscale(1);
  cursor: default;
}

.marquee-logo:hover { color: var(--text-primary); filter: grayscale(0); }

/* ── Stats Section ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stat-value {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, #80F4FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Service Cards ─────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  cursor: pointer;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.6rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--neon-cyan);
  transition: gap var(--transition);
}

.service-card:hover .card-arrow { gap: 0.7rem; }

/* ── Industries Grid ─────────────────────────────────────────────────────── */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.industry-card {
  padding: 1.75rem;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.industry-card:hover { transform: translateY(-4px); }

.industry-emoji { font-size: 2.5rem; margin-bottom: 1rem; }
.industry-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.industry-card p  { font-size: 0.85rem; color: var(--text-secondary); }

/* ── ROI Calculator ─────────────────────────────────────────────────────── */
.roi-calculator {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.roi-result-box {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1) 0%, rgba(123, 97, 255, 0.1) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
}

.roi-amount {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--neon-cyan);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 229, 255, 0.2);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
}

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  position: relative;
}

.quote-mark {
  font-size: 4rem;
  line-height: 1;
  color: var(--neon-cyan);
  opacity: 0.2;
  font-family: Georgia, serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--cosmic);
  flex-shrink: 0;
}

.author-name  { font-weight: 700; font-size: 0.9rem; }
.author-title { font-size: 0.78rem; color: var(--text-secondary); }

/* ── Radar Animation ─────────────────────────────────────────────────────── */
#radar-canvas {
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(123, 97, 255, 0.05) 100%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
}

.form-control::placeholder { color: var(--text-dim); }

textarea.form-control { resize: vertical; min-height: 120px; }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%2300E5FF'%3E%3Cpath d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  -webkit-appearance: none;
  cursor: pointer;
}

.form-error {
  font-size: 0.8rem;
  color: #FF6B6B;
  margin-top: 0.35rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ── Blog Cards ─────────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover { transform: translateY(-4px); }

.blog-card-img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: #040A14;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img { transform: scale(1.03); }

.blog-card-img-wrapper {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #040A14;
}

.blog-card-body { padding: 1.5rem; }

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--neon-cyan);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card p  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; }

/* ── FAQ Accordion ─────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--glass-border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  font-family: inherit;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--neon-cyan);
  transition: transform var(--transition), background var(--transition);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(0, 229, 255, 0.1); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding var(--transition);
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.open .faq-answer { max-height: 600px; padding-bottom: 1.25rem; }

/* ── About Timeline ─────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-violet) 50%, transparent 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.3rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  border: 2px solid var(--cosmic);
}

.timeline-year {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--neon-cyan);
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.timeline-event { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ── Team Cards ─────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  perspective: 1000px;
  height: 300px;
  cursor: pointer;
}

.team-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-card-inner { transform: rotateY(180deg); }

.team-card-front, .team-card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.team-card-back {
  transform: rotateY(180deg);
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08) 0%, rgba(123, 97, 255, 0.08) 100%);
  border-color: rgba(0, 229, 255, 0.2);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--cosmic);
  margin-bottom: 1rem;
}

.team-name { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-role { font-size: 0.82rem; color: var(--neon-cyan); font-weight: 600; }
.team-bio  { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.team-cred { font-size: 0.78rem; color: var(--text-dim); padding-left: 0.75rem; border-left: 2px solid var(--neon-cyan); }

/* ── SafetyGPT Search ─────────────────────────────────────────────────────── */
.safety-search-bar {
  display: flex;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.safety-search-bar:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1), var(--glow-cyan);
}

.safety-search-bar input {
  flex: 1;
  padding: 1.1rem 1.5rem;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
}

.safety-search-bar button {
  padding: 0 1.75rem;
  background: var(--neon-cyan);
  border: none;
  color: var(--cosmic);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition);
}

.safety-search-bar button:hover { background: #80F4FF; }

/* ── Contact Info ─────────────────────────────────────────────────────────── */
.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.contact-info-item:hover { border-color: var(--glass-border); background: var(--glass-bg); }

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: rgba(5, 11, 20, 0.98);
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 5rem 2rem 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.8; margin: 1rem 0; }

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: inline-block;
}

.footer-col a:hover { color: var(--neon-cyan); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  background: var(--glass-bg);
}

/* ── Chat Widget ─────────────────────────────────────────────────────────── */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), #0099BB);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--glow-cyan), 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.5), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.chat-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  background: rgba(10, 22, 40, 0.98);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform-origin: bottom right;
  transform: scale(0.8);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-panel.open { transform: scale(1); opacity: 1; pointer-events: all; }

.chat-header {
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(123, 97, 255, 0.1));
  border-bottom: 1px solid var(--glass-border);
}

.chat-messages {
  height: 260px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 85%;
}

.chat-msg.bot {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  align-self: flex-start;
  color: var(--text-primary);
}

.chat-msg.user {
  background: var(--neon-cyan);
  color: var(--cosmic);
  align-self: flex-end;
  font-weight: 600;
}

.chat-input-area {
  padding: 0.75rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.chat-input:focus { border-color: var(--neon-cyan); }

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--neon-cyan);
  border: none;
  color: var(--cosmic);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.chat-send:hover { transform: scale(1.05); }

/* ── Scroll Reveal Utility ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.visible { opacity: 1; transform: translateY(0); transition: opacity 0.7s ease, transform 0.7s ease; }

/* ── Ecosystem Visual ─────────────────────────────────────────────────────── */
.ecosystem-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.ecosystem-hub {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hub-ring {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--glow-cyan);
  animation: hubPulse 3s ease-in-out infinite;
}

.hub-ring::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.3);
  animation: hubPulse 3s ease-in-out infinite 0.5s;
}

@keyframes hubPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 229, 255, 0.3), 0 0 60px rgba(0, 229, 255, 0.1); }
  50%       { box-shadow: 0 0 40px rgba(0, 229, 255, 0.6), 0 0 80px rgba(0, 229, 255, 0.2); }
}

.ecosystem-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.node-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(10, 22, 40, 0.9);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all var(--transition);
}

.ecosystem-node:hover .node-icon { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }

/* ── Certification Badges ─────────────────────────────────────────────────── */
.cert-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition);
}

.cert-badge:hover { border-color: var(--desert-gold); box-shadow: var(--glow-gold); }

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--desert-gold), #E8960F);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-name  { font-weight: 700; font-size: 0.85rem; }
.cert-desc  { font-size: 0.75rem; color: var(--text-secondary); }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover, .page-btn.active {
  background: var(--glass-bg);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

/* ── Maps Wrapper ─────────────────────────────────────────────────────────── */
.map-wrapper {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.map-wrapper iframe { display: block; width: 100%; }

/* ── Animations ─────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes glitch {
  0%   { clip-path: inset(40% 0 61% 0); transform: skewX(-5deg); }
  20%  { clip-path: inset(92% 0 1% 0); transform: skewX(4deg); }
  40%  { clip-path: inset(43% 0 1% 0); transform: skewX(-2deg); }
  60%  { clip-path: inset(25% 0 58% 0); transform: skewX(3deg); }
  80%  { clip-path: inset(54% 0 7% 0); transform: skewX(-4deg); }
  100% { clip-path: inset(58% 0 43% 0); transform: skewX(2deg); }
}

.glitch-text { position: relative; }

.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
}

.glitch-text.animating::before {
  color: var(--neon-cyan);
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  opacity: 0.5;
}

.glitch-text.animating::after {
  color: var(--neon-violet);
  animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
  opacity: 0.5;
  left: 2px;
}

/* ── Responsive Breakpoints ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .lang-switcher { display: none; }

  .section  { padding: 5rem 1.25rem; }
  .section-sm { padding: 3rem 1.25rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero-content { padding: 1.25rem; }
  .hero-overlay { background: rgba(5, 11, 20, 0.75); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .roi-calculator { padding: 1.5rem; }
  .chat-panel { width: 300px; }

  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  h1 { font-size: 2.2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .chat-widget { bottom: 1rem; right: 1rem; }
}

/* ── Print ─────────────────────────────────────────────────────────────── */
@media print {
  .navbar, .chat-widget, .orb, #cursor-glow, #hero-canvas-container { display: none !important; }
  body { background: white; color: black; }
}



/* ═══════════════════════════════════════════════════════════════════════════
   RTL / ARABIC SUPPORT
   Applied automatically when <html dir="rtl"> is set (Arabic pages)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Base font for Arabic */
[dir="rtl"] body,
[dir="rtl"] .nav-link,
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-outline,
[dir="rtl"] .btn-gold,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] label {
  font-family: 'Noto Kufi Arabic', 'Plus Jakarta Sans', sans-serif;
}

/* Hero */
[dir="rtl"] .hero-content { text-align: right; }
[dir="rtl"] .hero-eyebrow { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .hero-ctas    { flex-direction: row-reverse; }
[dir="rtl"] .hero-scroll  { left: 0; right: auto; }

/* Section tags & dividers */
[dir="rtl"] .section-tag  { flex-direction: row-reverse; justify-content: flex-end; }
[dir="rtl"] .section-divider {
  background: linear-gradient(270deg, var(--neon-cyan), transparent);
}

/* Card arrows — flip arrow direction */
[dir="rtl"] .card-arrow { flex-direction: row-reverse; }
[dir="rtl"] .card-arrow span { transform: scaleX(-1); display: inline-block; }

/* Nav */
[dir="rtl"] .nav-links  { flex-direction: row-reverse; }
[dir="rtl"] .nav-inner  { flex-direction: row-reverse; }
[dir="rtl"] .nav-right  { flex-direction: row-reverse; }

/* Footer */
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .footer-col  { text-align: right; }
[dir="rtl"] .footer-brand { text-align: right; }
[dir="rtl"] .social-links { justify-content: flex-end; }
[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Service / feature lists */
[dir="rtl"] .feature-list li { flex-direction: row-reverse; text-align: right; }

/* Glass cards — right-align text */
[dir="rtl"] .glass-card { text-align: right; }
[dir="rtl"] .service-card { text-align: right; }

/* Stats — numbers stay LTR */
[dir="rtl"] .stat-value { direction: ltr; }
[dir="rtl"] .stats-grid { direction: rtl; }

/* Marquee — keep brand names LTR */
[dir="rtl"] .marquee-track { direction: ltr; }

/* Testimonials */
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; }

/* Mobile menu */
[dir="rtl"] .mobile-menu ul { text-align: right; }

/* Blog cards */
[dir="rtl"] .blog-card-body { text-align: right; }

/* ROI Calculator */
[dir="rtl"] .roi-calculator { direction: rtl; }
[dir="rtl"] .roi-result-box { text-align: right; }

/* Ecosystem nodes */
[dir="rtl"] .ecosystem-node { text-align: center; }
