/* ===================================
   Ha.Moda — Interactive Particle
   =================================== */

/* ----- CSS Custom Properties ----- */
:root {
  --bg-primary: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #e8e8f4;
  --text-muted: rgba(255, 255, 255, 0.45);
  --text-muted-2: rgba(255, 255, 255, 0.25);
  --accent-1: #6c63ff;
  --accent-2: #00d4aa;
  --accent-3: #ff6b9d;
  --accent-1-rgb: 108, 99, 255;
  --accent-2-rgb: 0, 212, 170;
  --accent-3-rgb: 255, 107, 157;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.12);
  --input-focus: rgba(108, 99, 255, 0.3);
  --input-text: #e8e8f4;
  --btn-bg: linear-gradient(135deg, #6c63ff, #00d4aa);
  --btn-text: #ffffff;
  --preloader-bg: #0a0a1a;
  --countdown-num: #ffffff;
  --countdown-label: rgba(255, 255, 255, 0.3);
  --social-color: rgba(255, 255, 255, 0.3);
  --social-hover: #ffffff;
  --footer-color: rgba(255, 255, 255, 0.2);
  --blob-1: rgba(108, 99, 255, 0.12);
  --blob-2: rgba(0, 212, 170, 0.08);
  --blob-3: rgba(255, 107, 157, 0.07);
  --blob-4: rgba(108, 99, 255, 0.05);
  --glow-color: rgba(108, 99, 255, 0.08);
}

/* ----- Light Mode ----- */
[data-theme="light"] {
  --bg-primary: #f4f4f9;
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-card-border: rgba(0, 0, 0, 0.06);
  --text-primary: #1a1a2e;
  --text-muted: rgba(0, 0, 0, 0.55);
  --text-muted-2: rgba(0, 0, 0, 0.4);
  --input-bg: #ffffff;
  --input-border: rgba(0, 0, 0, 0.1);
  --input-focus: rgba(108, 99, 255, 0.15);
  --input-text: #1a1a2e;
  --preloader-bg: #f4f4f9;
  --countdown-num: #1a1a2e;
  --countdown-label: rgba(0, 0, 0, 0.4);
  --social-color: rgba(0, 0, 0, 0.35);
  --social-hover: #1a1a2e;
  --footer-color: rgba(0, 0, 0, 0.65);
  --blob-1: rgba(108, 99, 255, 0.06);
  --blob-2: rgba(0, 212, 170, 0.05);
  --blob-3: rgba(255, 107, 157, 0.04);
  --blob-4: rgba(108, 99, 255, 0.03);
  --glow-color: rgba(108, 99, 255, 0.04);
}

/* Light mode specific overrides */
[data-theme="light"] h1 {
  color: rgba(0,0,0,0.55);
}
[data-theme="light"] .hero-badge {
  color: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .s-group input::placeholder {
  color: rgba(0,0,0,0.2);
}
[data-theme="light"] .social-links a {
  border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .social-links a:hover {
  border-color: rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.03);
}
[data-theme="light"] .c-sep {
  color: rgba(0,0,0,0.08);
}
[data-theme="light"] .s-group:focus-within {
  box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
}
[data-theme="light"] .preloader-logo {
  opacity: 0.85;
}
[data-theme="light"] .s-group button:hover {
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.15);
}
[data-theme="light"] .s-result.success { color: #00a37a; }
[data-theme="light"] .s-result.error { color: #d94a77; }

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  transition: background 0.45s ease, color 0.45s ease;
  font-weight: 400;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Arabic RTL layout ---------- */
html[lang="ar"] {
  --accent-1: #c9a84c;
  --accent-2: #e8b84b;
  --accent-3: #ffd700;
  --accent-1-rgb: 201, 168, 76;
  --accent-2-rgb: 232, 184, 75;
  --accent-3-rgb: 255, 215, 0;
  --btn-bg: linear-gradient(135deg, #c9a84c, #e8b84b);
  --input-focus: rgba(201, 168, 76, 0.2);
  --glow-color: rgba(201, 168, 76, 0.08);
}

html[lang="ar"] .hero-content {
  text-align: center;
}

html[lang="ar"] .subtitle {
  letter-spacing: 0;
  line-height: 1.75;
}

html[lang="ar"] .c-label {
  text-transform: none;
  letter-spacing: 0;
}

html[lang="ar"] .s-group input {
  text-align: right;
}

html[lang="ar"] .s-group button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: normal;
}

html[lang="ar"] .s-result {
  text-align: center;
  line-height: 1.6;
}

html[lang="ar"] .hero-footer p {
  direction: rtl;
  letter-spacing: 0;
  line-height: 1.7;
}

html[lang="ar"] .tooltip-body {
  text-align: right;
}

html[lang="ar"] .preloader-text {
  direction: rtl;
}

/* Smooth theme transitions */
h1, .hero-badge, .s-group, .social-links a, .preloader, .preloader-logo,
.c-num, .c-label, .c-sep, .hero-footer p {
  transition: color 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--preloader-bg);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-logo {
  width: 100px;
  height: auto;
  opacity: 0.9;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

.preloader-text {
  margin-top: 24px;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  font-weight: 700;
  max-width: 420px;
  text-align: center;
  line-height: 1.6;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.15) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite, textFloat 2.5s ease-in-out infinite;
}
[data-theme="light"] .preloader-text {
  background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.15) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[lang="ar"] .preloader-text {
  background: linear-gradient(135deg, rgba(201,168,76,0.15) 0%, rgba(201,168,76,0.6) 50%, rgba(201,168,76,0.15) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[lang="es"] .preloader-text {
  background: linear-gradient(135deg, rgba(230,57,70,0.15) 0%, rgba(230,57,70,0.6) 50%, rgba(230,57,70,0.15) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[lang="pt"] .preloader-text {
  background: linear-gradient(135deg, rgba(0,180,216,0.15) 0%, rgba(0,180,216,0.6) 50%, rgba(0,180,216,0.15) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
html[lang="fr"] .preloader-text {
  background: linear-gradient(135deg, rgba(0,38,84,0.15) 0%, rgba(0,38,84,0.6) 50%, rgba(0,38,84,0.15) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Light mode per-language */
[data-theme="light"][lang="ar"] .preloader-text {
  background: linear-gradient(135deg, rgba(201,168,76,0.2) 0%, rgba(201,168,76,0.7) 50%, rgba(201,168,76,0.2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"][lang="es"] .preloader-text {
  background: linear-gradient(135deg, rgba(230,57,70,0.2) 0%, rgba(230,57,70,0.7) 50%, rgba(230,57,70,0.2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"][lang="pt"] .preloader-text {
  background: linear-gradient(135deg, rgba(0,180,216,0.2) 0%, rgba(0,180,216,0.7) 50%, rgba(0,180,216,0.2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"][lang="fr"] .preloader-text {
  background: linear-gradient(135deg, rgba(0,38,84,0.2) 0%, rgba(0,38,84,0.7) 50%, rgba(0,38,84,0.2) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes shimmerText {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes textFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes preloaderPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ---------- Site Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 28px;
  direction: ltr;
  overflow: visible;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}

/* ---------- Top Actions (toggle + LinkedIn + Lang) ---------- */
.top-actions {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  direction: ltr;
}

.top-linkedin {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s ease;
}
.top-linkedin:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: translateY(-2px);
}
[data-theme="light"] .top-linkedin {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.5);
}
[data-theme="light"] .top-linkedin:hover {
  border-color: rgba(0,0,0,0.2);
  color: #000;
}

/* Personal LinkedIn — distinct color */
.top-linkedin-personal {
  border-color: rgba(0,119,181,0.3);
  background: rgba(0,119,181,0.08);
  color: rgba(0,119,181,0.6);
}
.top-linkedin-personal:hover {
  border-color: rgba(0,119,181,0.6);
  background: rgba(0,119,181,0.15);
  color: #0077b5;
}
[data-theme="light"] .top-linkedin-personal {
  border-color: rgba(0,119,181,0.2);
  background: rgba(0,119,181,0.05);
  color: rgba(0,119,181,0.6);
}
[data-theme="light"] .top-linkedin-personal:hover {
  border-color: rgba(0,119,181,0.5);
  background: rgba(0,119,181,0.1);
  color: #0077b5;
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  line-height: 1;
  font-family: 'Cairo', sans-serif;
}
.lang-btn:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
[data-theme="light"] .lang-btn {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
}
[data-theme="light"] .lang-btn:hover {
  border-color: rgba(0,0,0,0.2);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  min-width: 150px;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(20,20,40,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  pointer-events: none;
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
[data-theme="light"] .lang-menu {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.9);
}

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-family: 'Cairo', sans-serif;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-menu li:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.lang-menu li.active {
  color: var(--accent-1);
  font-weight: 700;
  background: rgba(108,99,255,0.08);
}
[data-theme="light"] .lang-menu li {
  color: rgba(0,0,0,0.55);
}
[data-theme="light"] .lang-menu li:hover {
  background: rgba(0,0,0,0.05);
  color: #000;
}
[data-theme="light"] .lang-menu li.active {
  color: var(--accent-1);
  font-weight: 700;
  background: rgba(108,99,255,0.1);
}

.lang-flag {
  width: 20px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
}
.lang-btn .lang-flag {
  width: 22px;
  height: 17px;
}

/* ---------- Theme Toggle ---------- */
.theme-toggle-btn {
  position: static; z-index: 100;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.35s ease;
}
.theme-toggle-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: #fff;
  transform: rotate(30deg);
}
[data-theme="light"] .theme-toggle-btn {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
  color: rgba(0,0,0,0.4);
}
[data-theme="light"] .theme-toggle-btn:hover {
  border-color: rgba(0,0,0,0.2);
  color: #000;
}

/* ---------- Background Tech Grid ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108,99,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transition: background-image 0.6s ease;
}
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(108,99,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,99,255,0.04) 1px, transparent 1px);
}

.bg-dots {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(108,99,255,0.06) 1.5px, transparent 1.5px);
  background-size: 60px 60px;
  transition: background-image 0.6s ease;
}
[data-theme="light"] .bg-dots {
  background-image: radial-gradient(circle, rgba(108,99,255,0.07) 1.5px, transparent 1.5px);
}

/* ---------- Language-specific accent overrides ---------- */
html[lang="ar"] .gradient-text {
  background: linear-gradient(135deg, #c9a84c, #e8b84b, #ffd700);
  -webkit-background-clip: text;
  background-clip: text;
}
html[lang="ar"] .hl-sep { color: #c9a84c; text-shadow: 0 0 6px rgba(201,168,76,0.5); }
html[lang="ar"] .s-group:focus-within { border-color: rgba(201,168,76,0.3); box-shadow: 0 0 0 4px rgba(201,168,76,0.12); }
html[lang="ar"] .s-group button {
  background: linear-gradient(135deg, #c9a84c, #e8b84b);
}
html[lang="ar"] .lang-menu li.active { color: #c9a84c; background: rgba(201,168,76,0.08); }
html[lang="ar"] .hero-content::before {
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}
html[lang="ar"] .hero-badge { letter-spacing: 0; }

html[lang="es"] .gradient-text {
  background: linear-gradient(135deg, #e63946, #ff6b6b, #ff8fa3);
  -webkit-background-clip: text;
  background-clip: text;
}
html[lang="es"] .hl-sep { color: #e63946; text-shadow: 0 0 6px rgba(230,57,70,0.5); }
html[lang="es"] .s-group:focus-within { border-color: rgba(230,57,70,0.3); box-shadow: 0 0 0 4px rgba(230,57,70,0.12); }
html[lang="es"] .s-group button {
  background: linear-gradient(135deg, #e63946, #ff6b6b);
}
html[lang="es"] .lang-menu li.active { color: #e63946; background: rgba(230,57,70,0.08); }
html[lang="es"] .hero-content::before {
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
}

html[lang="pt"] .gradient-text {
  background: linear-gradient(135deg, #00b4d8, #06d6a0, #48cae4);
  -webkit-background-clip: text;
  background-clip: text;
}
html[lang="pt"] .hl-sep { color: #00b4d8; text-shadow: 0 0 6px rgba(0,180,216,0.5); }
html[lang="pt"] .s-group:focus-within { border-color: rgba(0,180,216,0.3); box-shadow: 0 0 0 4px rgba(0,180,216,0.12); }
html[lang="pt"] .s-group button {
  background: linear-gradient(135deg, #00b4d8, #06d6a0);
}
html[lang="pt"] .lang-menu li.active { color: #00b4d8; background: rgba(0,180,216,0.08); }
html[lang="pt"] .hero-content::before {
  background: radial-gradient(circle, rgba(0,180,216,0.06) 0%, transparent 70%);
}

html[lang="fr"] .gradient-text {
  background: linear-gradient(135deg, #002654, #ED2939, #C0C0C0);
  -webkit-background-clip: text;
  background-clip: text;
}
html[lang="fr"] .hl-sep { color: #002654; text-shadow: 0 0 6px rgba(0,38,84,0.5); }
html[lang="fr"] .s-group:focus-within { border-color: rgba(0,38,84,0.3); box-shadow: 0 0 0 4px rgba(0,38,84,0.12); }
html[lang="fr"] .s-group button {
  background: linear-gradient(135deg, #002654, #ED2939);
}
html[lang="fr"] .lang-menu li.active { color: #002654; background: rgba(0,38,84,0.08); }
html[lang="fr"] .hero-content::before {
  background: radial-gradient(circle, rgba(0,38,84,0.06) 0%, transparent 70%);
}

html[lang="ar"][data-theme="light"] .s-group button:hover { box-shadow: 0 8px 30px rgba(201,168,76,0.15); }
html[lang="es"][data-theme="light"] .s-group button:hover { box-shadow: 0 8px 30px rgba(230,57,70,0.15); }
html[lang="pt"][data-theme="light"] .s-group button:hover { box-shadow: 0 8px 30px rgba(0,180,216,0.15); }
html[lang="fr"][data-theme="light"] .s-group button:hover { box-shadow: 0 8px 30px rgba(0,38,84,0.15); }

/* ---------- Language-specific backgrounds ---------- */
/* Arabic — Gold/Amber */
html[lang="ar"] .blob-1 { background: rgba(201,168,76,0.12); }
html[lang="ar"] .blob-2 { background: rgba(232,184,75,0.08); }
html[lang="ar"] .blob-3 { background: rgba(201,168,76,0.06); }
html[lang="ar"] .blob-4 { background: rgba(255,215,0,0.04); }
html[lang="ar"] .bg-grid {
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
}
html[lang="ar"] .bg-dots {
  background-image: radial-gradient(circle, rgba(201,168,76,0.08) 1.5px, transparent 1.5px);
}
html[lang="ar"][data-theme="light"] .blob-1 { background: rgba(201,168,76,0.08); }
html[lang="ar"][data-theme="light"] .blob-2 { background: rgba(232,184,75,0.05); }
html[lang="ar"][data-theme="light"] .blob-3 { background: rgba(201,168,76,0.04); }
html[lang="ar"][data-theme="light"] .blob-4 { background: rgba(255,215,0,0.03); }
html[lang="ar"][data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
}
html[lang="ar"][data-theme="light"] .bg-dots {
  background-image: radial-gradient(circle, rgba(201,168,76,0.1) 1.5px, transparent 1.5px);
}

/* Spanish — Red/Coral */
html[lang="es"] .blob-1 { background: rgba(230,57,70,0.10); }
html[lang="es"] .blob-2 { background: rgba(255,107,107,0.07); }
html[lang="es"] .blob-3 { background: rgba(230,57,70,0.05); }
html[lang="es"] .blob-4 { background: rgba(255,107,107,0.04); }
html[lang="es"] .bg-grid {
  background-image:
    linear-gradient(rgba(230,57,70,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}
html[lang="es"] .bg-dots {
  background-image: radial-gradient(circle, rgba(230,57,70,0.06) 1.5px, transparent 1.5px);
  background-size: 50px 50px;
}
html[lang="es"][data-theme="light"] .blob-1 { background: rgba(230,57,70,0.07); }
html[lang="es"][data-theme="light"] .blob-2 { background: rgba(255,107,107,0.04); }
html[lang="es"][data-theme="light"] .blob-3 { background: rgba(230,57,70,0.03); }
html[lang="es"][data-theme="light"] .blob-4 { background: rgba(255,107,107,0.03); }
html[lang="es"][data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(230,57,70,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,57,70,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}
html[lang="es"][data-theme="light"] .bg-dots {
  background-image: radial-gradient(circle, rgba(230,57,70,0.08) 1.5px, transparent 1.5px);
  background-size: 50px 50px;
}

/* Portuguese — Green/Teal */
html[lang="pt"] .blob-1 { background: rgba(0,180,216,0.10); }
html[lang="pt"] .blob-2 { background: rgba(6,214,160,0.07); }
html[lang="pt"] .blob-3 { background: rgba(0,180,216,0.05); }
html[lang="pt"] .blob-4 { background: rgba(6,214,160,0.04); }
html[lang="pt"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,180,216,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.03) 1px, transparent 1px);
  background-size: 70px 70px;
}
html[lang="pt"] .bg-dots {
  background-image: radial-gradient(circle, rgba(0,180,216,0.06) 1.5px, transparent 1.5px);
  background-size: 70px 70px;
}
html[lang="pt"][data-theme="light"] .blob-1 { background: rgba(0,180,216,0.07); }
html[lang="pt"][data-theme="light"] .blob-2 { background: rgba(6,214,160,0.04); }
html[lang="pt"][data-theme="light"] .blob-3 { background: rgba(0,180,216,0.03); }
html[lang="pt"][data-theme="light"] .blob-4 { background: rgba(6,214,160,0.03); }
html[lang="pt"][data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,180,216,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.05) 1px, transparent 1px);
  background-size: 70px 70px;
}
html[lang="pt"][data-theme="light"] .bg-dots {
  background-image: radial-gradient(circle, rgba(0,180,216,0.08) 1.5px, transparent 1.5px);
  background-size: 70px 70px;
}

/* French — Blue/Red/Silver */
html[lang="fr"] .blob-1 { background: rgba(0,38,84,0.10); }
html[lang="fr"] .blob-2 { background: rgba(237,41,57,0.07); }
html[lang="fr"] .blob-3 { background: rgba(0,38,84,0.05); }
html[lang="fr"] .blob-4 { background: rgba(192,192,192,0.06); }
html[lang="fr"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,38,84,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,38,84,0.03) 1px, transparent 1px);
  background-size: 55px 55px;
}
html[lang="fr"] .bg-dots {
  background-image: radial-gradient(circle, rgba(237,41,57,0.05) 1.5px, transparent 1.5px);
  background-size: 55px 55px;
}
html[lang="fr"][data-theme="light"] .blob-1 { background: rgba(0,38,84,0.06); }
html[lang="fr"][data-theme="light"] .blob-2 { background: rgba(237,41,57,0.04); }
html[lang="fr"][data-theme="light"] .blob-3 { background: rgba(0,38,84,0.03); }
html[lang="fr"][data-theme="light"] .blob-4 { background: rgba(192,192,192,0.04); }
html[lang="fr"][data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0,38,84,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,38,84,0.05) 1px, transparent 1px);
  background-size: 55px 55px;
}
html[lang="fr"][data-theme="light"] .bg-dots {
  background-image: radial-gradient(circle, rgba(237,41,57,0.07) 1.5px, transparent 1.5px);
  background-size: 55px 55px;
}

/* ---------- Background Blobs ---------- */
.bg-blobs {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.blob-1 {
  width: 600px; height: 600px;
  background: var(--blob-1);
  top: -15%; inset-inline-start: -10%;
  animation: floatBlob 25s ease-in-out infinite;
}

.blob-2 {
  width: 500px; height: 500px;
  background: var(--blob-2);
  bottom: -10%; inset-inline-end: -8%;
  animation: floatBlob 30s ease-in-out infinite reverse;
}

.blob-3 {
  width: 400px; height: 400px;
  background: var(--blob-3);
  top: 50%; inset-inline-end: 15%;
  animation: floatBlob 20s ease-in-out infinite 2s;
}

.blob-4 {
  width: 350px; height: 350px;
  background: var(--blob-4);
  bottom: 30%; inset-inline-start: 20%;
  animation: floatBlob 22s ease-in-out infinite 5s;
}

@keyframes floatBlob {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -80px) scale(1.1); }
  50% { transform: translate(-30px, 40px) scale(0.95); }
  75% { transform: translate(40px, 60px) scale(1.05); }
}

/* ---------- Particle Canvas ---------- */
#particle-canvas {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 2;
  width: 100%; height: 100vh;
  height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-content {
  width: 100%;
  max-width: 720px;
  padding: 3.5rem 3rem;
  text-align: center;
  position: relative;
  will-change: transform;
}

#parallax-content {
  will-change: transform;
}

/* Glassmorphism glow behind content */
.hero-content::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Top Brand ---------- */
.top-brand {
  position: static;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: auto;
  direction: ltr;
  cursor: pointer;
}
.brand-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  opacity: 0.9;
}
.brand-name {
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Header brand — solid colors (stable on mobile + RTL) */
.site-header .brand-name {
  background-image: none;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  animation: none;
}
html[lang="en"] .site-header .brand-name,
html[lang="fr"] .site-header .brand-name,
html:not([lang="ar"]):not([lang="es"]):not([lang="pt"]) .site-header .brand-name {
  color: #00d4aa;
  -webkit-text-fill-color: #00d4aa;
}
html[lang="ar"] .site-header .brand-name {
  color: #e8b84b;
  -webkit-text-fill-color: #e8b84b;
}
html[lang="es"] .site-header .brand-name {
  color: #ff6b6b;
  -webkit-text-fill-color: #ff6b6b;
}
html[lang="pt"] .site-header .brand-name {
  color: #48cae4;
  -webkit-text-fill-color: #48cae4;
}
[data-theme="light"] html[lang="en"] .site-header .brand-name,
[data-theme="light"] html[lang="fr"] .site-header .brand-name,
[data-theme="light"] html:not([lang="ar"]):not([lang="es"]):not([lang="pt"]) .site-header .brand-name {
  color: #5a52e0;
  -webkit-text-fill-color: #5a52e0;
}
[data-theme="light"] html[lang="ar"] .site-header .brand-name {
  color: #b8922e;
  -webkit-text-fill-color: #b8922e;
}
[data-theme="light"] html[lang="es"] .site-header .brand-name {
  color: #d62839;
  -webkit-text-fill-color: #d62839;
}
[data-theme="light"] html[lang="pt"] .site-header .brand-name {
  color: #0096c7;
  -webkit-text-fill-color: #0096c7;
}

/* ---------- Tooltip Box ---------- */
.tooltip-trigger {
  position: relative;
}
.tooltip-box {
  position: absolute;
  top: calc(100% + 12px);
  inset-inline-start: 0;
  min-width: 240px;
  max-width: 320px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(15,15,35,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 50px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 200;
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
}
.tooltip-trigger:hover .tooltip-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.tooltip-arrow {
  position: absolute;
  top: -5px;
  inset-inline-start: 28px;
  width: 10px;
  height: 10px;
  background: rgba(15,15,35,0.92);
  border-left: 1px solid rgba(255,255,255,0.1);
  border-top: 1px solid rgba(255,255,255,0.1);
  transform: rotate(45deg);
  backdrop-filter: blur(16px);
}
.tooltip-body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* Tooltip light mode */
[data-theme="light"] .tooltip-box {
  border-color: rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 50px rgba(0,0,0,0.12), 0 0 0 1px rgba(255,255,255,0.9);
}
[data-theme="light"] .tooltip-arrow {
  background: rgba(255,255,255,0.95);
  border-left-color: rgba(0,0,0,0.1);
  border-top-color: rgba(0,0,0,0.1);
}
[data-theme="light"] .tooltip-body {
  color: rgba(0,0,0,0.8);
}

/* Tooltip per-language accent — dark mode */
html[lang="ar"] .tooltip-box {
  border-color: rgba(201,168,76,0.3);
  background: rgba(25,20,10,0.94);
  box-shadow: 0 12px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.08), 0 0 40px rgba(201,168,76,0.06);
}
html[lang="ar"] .tooltip-arrow {
  background: rgba(25,20,10,0.94);
  border-left-color: rgba(201,168,76,0.3);
  border-top-color: rgba(201,168,76,0.3);
}

html[lang="es"] .tooltip-box {
  border-color: rgba(230,57,70,0.3);
  background: rgba(20,10,15,0.94);
  box-shadow: 0 12px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(230,57,70,0.08), 0 0 40px rgba(230,57,70,0.06);
}
html[lang="es"] .tooltip-arrow {
  background: rgba(20,10,15,0.94);
  border-left-color: rgba(230,57,70,0.3);
  border-top-color: rgba(230,57,70,0.3);
}

html[lang="pt"] .tooltip-box {
  border-color: rgba(0,180,216,0.3);
  background: rgba(10,18,22,0.94);
  box-shadow: 0 12px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,180,216,0.08), 0 0 40px rgba(0,180,216,0.06);
}
html[lang="pt"] .tooltip-arrow {
  background: rgba(10,18,22,0.94);
  border-left-color: rgba(0,180,216,0.3);
  border-top-color: rgba(0,180,216,0.3);
}

/* Tooltip per-language accent — light mode */
[data-theme="light"][lang="ar"] .tooltip-box {
  border-color: rgba(201,168,76,0.3);
  background: rgba(255,252,240,0.97);
  box-shadow: 0 12px 50px rgba(201,168,76,0.1), 0 0 0 1px rgba(201,168,76,0.15);
}
[data-theme="light"][lang="ar"] .tooltip-arrow {
  background: rgba(255,252,240,0.97);
  border-left-color: rgba(201,168,76,0.3);
  border-top-color: rgba(201,168,76,0.3);
}
[data-theme="light"][lang="ar"] .tooltip-body { color: rgba(80,60,20,0.9); }

[data-theme="light"][lang="es"] .tooltip-box {
  border-color: rgba(230,57,70,0.25);
  background: rgba(255,245,245,0.97);
  box-shadow: 0 12px 50px rgba(230,57,70,0.08), 0 0 0 1px rgba(230,57,70,0.12);
}
[data-theme="light"][lang="es"] .tooltip-arrow {
  background: rgba(255,245,245,0.97);
  border-left-color: rgba(230,57,70,0.25);
  border-top-color: rgba(230,57,70,0.25);
}
[data-theme="light"][lang="es"] .tooltip-body { color: rgba(100,30,30,0.9); }

[data-theme="light"][lang="pt"] .tooltip-box {
  border-color: rgba(0,180,216,0.25);
  background: rgba(240,250,255,0.97);
  box-shadow: 0 12px 50px rgba(0,180,216,0.08), 0 0 0 1px rgba(0,180,216,0.12);
}
[data-theme="light"][lang="pt"] .tooltip-arrow {
  background: rgba(240,250,255,0.97);
  border-left-color: rgba(0,180,216,0.25);
  border-top-color: rgba(0,180,216,0.25);
}
[data-theme="light"][lang="pt"] .tooltip-body { color: rgba(10,60,80,0.9); }

/* French tooltip dark */
html[lang="fr"] .tooltip-box {
  border-color: rgba(0,38,84,0.3);
  background: rgba(10,12,22,0.94);
  box-shadow: 0 12px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,38,84,0.08), 0 0 40px rgba(237,41,57,0.06);
}
html[lang="fr"] .tooltip-arrow {
  background: rgba(10,12,22,0.94);
  border-left-color: rgba(0,38,84,0.3);
  border-top-color: rgba(0,38,84,0.3);
}
/* French tooltip light */
[data-theme="light"][lang="fr"] .tooltip-box {
  border-color: rgba(0,38,84,0.25);
  background: rgba(245,246,252,0.97);
  box-shadow: 0 12px 50px rgba(0,38,84,0.08), 0 0 0 1px rgba(0,38,84,0.12);
}
[data-theme="light"][lang="fr"] .tooltip-arrow {
  background: rgba(245,246,252,0.97);
  border-left-color: rgba(0,38,84,0.25);
  border-top-color: rgba(0,38,84,0.25);
}
[data-theme="light"][lang="fr"] .tooltip-body { color: rgba(0,30,70,0.9); }

/* ---------- Badge ---------- */
.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  margin-bottom: 2rem;
  backdrop-filter: blur(4px);
}

/* ---------- Mouse Glow Trail ---------- */
#mouse-glow {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,99,255,0.08) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: opacity 0.3s ease;
}
[data-theme="light"] #mouse-glow {
  background: radial-gradient(circle, rgba(108,99,255,0.05) 0%, transparent 70%);
}
html[lang="ar"] #mouse-glow {
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
}
html[lang="es"] #mouse-glow {
  background: radial-gradient(circle, rgba(230,57,70,0.06) 0%, transparent 70%);
}
html[lang="pt"] #mouse-glow {
  background: radial-gradient(circle, rgba(0,180,216,0.06) 0%, transparent 70%);
}
html[lang="fr"] #mouse-glow {
  background: radial-gradient(circle, rgba(0,38,84,0.06) 0%, transparent 70%);
}

/* ---------- Typing Cursor ---------- */
.typing-cursor {
  font-weight: 300;
  color: rgba(255,255,255,0.4);
  animation: blink 0.8s step-end infinite;
  margin-inline-start: 2px;
}
[data-theme="light"] .typing-cursor {
  color: rgba(0,0,0,0.3);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.typing-cursor.done {
  animation: blink 0.8s step-end infinite 2s;
}

/* ---------- Typography ---------- */
h1,
.hero-title {
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.hero-title-prefix,
.hero-title-highlight {
  display: block;
}
.hero-title .typing-text { white-space: nowrap; }
html[lang="ar"] .hero-title {
  line-height: 1.55;
}

.gradient-text {
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subtitle {
  font-size: clamp(0.9rem, 2.2vw, 1.2rem);
  color: var(--text-muted-2);
  letter-spacing: 0.5px;
  margin-bottom: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem 0.5rem;
  font-weight: 450;
}

.hl-word {
  display: inline-flex;
  animation: fadeUp 0.6s ease both;
}

.hl-word:nth-child(1) { animation-delay: 0.1s; }
.hl-word:nth-child(2) { animation-delay: 0.2s; }
.hl-word:nth-child(3) { animation-delay: 0.25s; }
.hl-word:nth-child(4) { animation-delay: 0.35s; }
.hl-word:nth-child(5) { animation-delay: 0.45s; }
.hl-word:nth-child(6) { animation-delay: 0.55s; }
.hl-word:nth-child(7) { animation-delay: 0.65s; }

.hl-char {
  display: inline-block;
  font-weight: 700;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.hl-word:hover .hl-char {
  transform: scale(1.3);
  text-shadow: 0 0 20px currentColor;
}

.hl-sep {
  font-weight: 400;
  color: var(--accent-1);
  margin: 0 0.15rem;
  text-shadow: 0 0 6px rgba(var(--accent-1-rgb), 0.5);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Continuous pulse glow for each highlighted letter */
@keyframes pulseGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

.hl-char {
  animation: pulseGlow 3s ease-in-out infinite;
}

.hl-word:nth-child(1) .hl-char { animation-delay: 0s; }
.hl-word:nth-child(2) .hl-char { animation-delay: 0.4s; }
.hl-word:nth-child(4) .hl-char { animation-delay: 0.8s; }
.hl-word:nth-child(5) .hl-char { animation-delay: 1.2s; }
.hl-word:nth-child(6) .hl-char { animation-delay: 1.6s; }
.hl-word:nth-child(7) .hl-char { animation-delay: 2s; }

/* ---------- Countdown ---------- */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2.5rem;
}

.c-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 0.75rem 0.5rem;
}

.c-num {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  color: var(--countdown-num);
  line-height: 1;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
}

.c-label {
  font-size: clamp(0.7rem, 1.4vw, 0.85rem);
  font-weight: 600;
  color: var(--countdown-label);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 6px;
}

.c-sep {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 200;
  color: rgba(255,255,255,0.12);
  margin-bottom: 1.2rem;
}

/* ---------- Subscribe ---------- */
.subscribe { margin-bottom: 3rem; }

.s-group {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 50px;
  padding-block: 4px;
  padding-inline: 6px 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.s-group:focus-within {
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 0 0 4px var(--input-focus);
}

.s-group input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.95rem 1.4rem;
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-size: 1rem;
  color: var(--input-text);
  outline: none;
}

.s-group input::placeholder { color: rgba(255, 255, 255, 0.25); }

.s-group button {
  padding: 0.95rem 1.8rem;
  border: none;
  border-radius: 50px;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: 'Space Grotesk', 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.s-group button:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.25);
}

.s-group button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.s-group button i {
  font-size: 0.75rem;
  margin-inline-start: 6px;
  transition: transform 0.3s ease;
}

.s-group button:hover i { transform: translateX(3px); }
html[lang="ar"] .s-group button i {
  margin-inline-start: 0;
}
html[lang="ar"] .s-group button:hover i { transform: translateX(-3px); }

.s-result {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  min-height: 1.2rem;
}
.s-result.success { color: var(--accent-2); }
.s-result.error { color: var(--accent-3); }

/* ---------- Social ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--social-color);
  font-size: 1rem;
  transition: all 0.35s ease;
}

.social-links a:hover {
  color: var(--social-hover);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.hero-footer {
  text-align: center;
  z-index: 10;
  padding: 0 20px;
  margin-top: 1.25rem;
}

.hero-footer p {
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  font-weight: 450;
  max-width: 600px;
  margin: 0 auto;
}
[data-theme="light"] .hero-footer p {
  color: rgba(0,0,0,0.65);
}

/* ---------- Responsive ---------- */

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .hero-content { max-width: 620px; padding: 3rem 2rem; }
  .hero-content::before { width: 450px; height: 450px; }
  .blob-1 { width: 450px; height: 450px; }
  .blob-2 { width: 380px; height: 380px; }
  .blob-3 { width: 300px; height: 300px; }
  .blob-4 { width: 280px; height: 280px; }
  .site-header { padding: 24px 20px; }
  .brand-logo { height: 34px; }
  .site-header .brand-name { font-size: 1.05rem; }
}

/* Large phones & small tablets */
@media (max-width: 768px) {
  .hero-content { max-width: 100%; padding: 2.5rem 1.5rem; }
  .hero-content::before { width: 350px; height: 350px; }
  .c-item { min-width: 70px; }
  .c-sep { margin-bottom: 1rem; }
}

/* Mobile */
@media (max-width: 600px) {
  .site-header { padding: 16px 14px; gap: 8px; }
  .top-brand { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 158px); }
  .top-actions { gap: 6px; flex: 0 0 auto; }
  .site-header .brand-name { font-size: 0.9rem; }
  .theme-toggle-btn, .top-linkedin, .lang-btn { width: 36px; height: 36px; font-size: 0.85rem; }
  .lang-btn .lang-flag { width: 18px; height: 14px; }
  .lang-menu { min-width: 130px; right: 0; top: calc(100% + 6px); }
  .lang-menu li { font-size: 0.75rem; padding: 7px 10px; }
  .hero { height: 100dvh; }
  .hero-content { padding: 5.25rem 1.25rem 1.75rem; }
  .brand-logo { height: 28px; }
  .hero-badge { margin-bottom: 1rem; padding: 0.35rem 1.1rem; }
  .subtitle { margin-bottom: 1.5rem; font-size: clamp(0.8rem, 2.8vw, 1rem); gap: 0.1rem 0.35rem; }
  .c-item { min-width: 56px; padding: 0.4rem 0.2rem; }
  .c-sep { margin-bottom: 0.6rem; }
  .countdown { margin-bottom: 1.5rem; gap: 0; }
  .s-group { flex-direction: column; border-radius: 16px; padding: 5px; }
  .s-group input { text-align: center; padding: 0.7rem 0.5rem; font-size: 0.9rem; }
  .s-group button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.2rem;
    font-size: 0.85rem;
  }
  html[lang="ar"] .s-group input { text-align: center; }
  html[lang="ar"] .hero-title .typing-text { white-space: normal; }
  .subscribe { margin-bottom: 1.5rem; }
  .hero-footer p { font-size: clamp(0.6rem, 2vw, 0.75rem); }
  .blob-1 { width: 250px; height: 250px; }
  .blob-2 { width: 200px; height: 200px; }
  .blob-3, .blob-4 { width: 160px; height: 160px; }
  .bg-grid, .bg-dots { background-size: 40px 40px !important; }
}

/* Small phones — iPhone SE, Galaxy S8+ (360–390px) */
@media (max-width: 390px) {
  .site-header { padding: 12px 10px; gap: 6px; }
  .top-brand { gap: 6px; max-width: calc(100% - 142px); }
  .top-actions { gap: 4px; }
  .site-header .brand-name { font-size: 0.78rem; letter-spacing: 0.02em; }
  .theme-toggle-btn, .top-linkedin, .lang-btn { width: 32px; height: 32px; font-size: 0.75rem; }
  .lang-btn .lang-flag { width: 16px; height: 12px; }
  .brand-logo { height: 26px; }
  .hero-content { padding: 4.75rem 0.85rem 1.25rem; }
  .hero-badge { margin-bottom: 0.75rem; padding: 0.3rem 0.9rem; font-size: 0.62rem; }
  .hero-title { font-size: clamp(0.95rem, 4.2vw, 1.2rem); margin-bottom: 0.5rem; }
  .subtitle { font-size: 0.72rem; margin-bottom: 1.1rem; line-height: 1.5; }
  .countdown { margin-bottom: 1.1rem; gap: 0; }
  .c-item { min-width: 46px; padding: 0.3rem 0.1rem; }
  .c-num { font-size: clamp(1.45rem, 5.5vw, 1.85rem); letter-spacing: 1px; }
  .c-label { font-size: 0.5rem; letter-spacing: 0; margin-top: 4px; }
  .c-sep { font-size: 1.2rem; margin-bottom: 0.45rem; }
  .subscribe { margin-bottom: 1.1rem; }
  .s-group input { padding: 0.65rem 0.4rem; font-size: 0.85rem; }
  .s-group button { padding: 0.65rem 1rem; font-size: 0.8rem; }
  .hero-footer p { font-size: 0.58rem; }
  html[lang="ar"] .hero-title .typing-text { white-space: normal; }
  html[lang="ar"] .c-label { letter-spacing: 0; }
}

/* Extra small — iPhone SE 1st gen (320px) */
@media (max-width: 320px) {
  .site-header { padding: 10px 8px; gap: 4px; }
  .top-brand { max-width: calc(100% - 128px); gap: 5px; }
  .top-actions { gap: 3px; }
  .site-header .brand-name { font-size: 0.72rem; }
  .theme-toggle-btn, .top-linkedin, .lang-btn { width: 30px; height: 30px; font-size: 0.7rem; }
  .lang-btn .lang-flag { width: 14px; height: 11px; }
  .brand-logo { height: 24px; }
  .hero-content { padding: 4.5rem 0.65rem 1rem; }
  .c-item { min-width: 40px; }
  .c-num { font-size: 1.35rem; }
  .c-label { font-size: 0.45rem; }
  .c-sep { font-size: 1rem; }
  .hero-title { font-size: clamp(0.88rem, 4.5vw, 1.05rem); }
  .subtitle { font-size: 0.65rem; }
}

/* Short screens (landscape mobile) */
@media (max-height: 500px) {
  .hero { height: auto; min-height: 100vh; padding: 3rem 0; }
  .site-header { padding: 10px 12px; }
  .brand-logo { height: 24px; }
  .site-header .brand-name { font-size: 0.75rem; }
  .hero-badge { margin-bottom: 0.5rem; }
  h1 { font-size: clamp(0.9rem, 2.5vw, 1.4rem); margin-bottom: 0.3rem; white-space: normal; }
  .subtitle { margin-bottom: 1rem; }
  .countdown { margin-bottom: 1rem; }
  .c-num { font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .c-item { min-width: 50px; padding: 0.25rem; }
  .subscribe { margin-bottom: 1rem; }
  .s-group input { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .s-group button { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
}

/* Hover none (touch devices) */
@media (hover: none) {
  .social-links a:hover { transform: none; }
  .s-group button:hover { transform: none; }
  .theme-toggle-btn:hover { transform: none; }
  .top-linkedin:hover { transform: none; }
  .hl-word:hover .hl-char { transform: none; }
  .tooltip-trigger:hover .tooltip-box { opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.96); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  .gradient-text { animation: none; }
  .hl-char { animation: none; }
  #particle-canvas { display: none; }
  #mouse-glow { display: none; }
  [class*="float"] { animation: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
