/* ==========================================================================
   Ossama El Khachtouf — Domain Investor
   Premium dark theme (default) with a fully designed light theme.
   Edit variables below to restyle globally.
   ========================================================================== */

:root {
  /* Palette — Dark (default/premium) */
  --bg: #0a0a0c;
  --bg-alt: #0f0f12;
  --surface: #14141810;
  --surface-1: #15151a;
  --surface-2: #1a1a20;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f1ec;
  --text-muted: #a7a4a0;
  --text-faint: #6f6d6a;
  --accent: #c9a463;
  --accent-soft: rgba(201, 164, 99, 0.12);
  --accent-strong: #e0c48c;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-arabic: "Tajawal", "Inter", sans-serif;

  /* Layout */
  --max-width: 1160px;
  --radius: 14px;
  --radius-sm: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Palette — Light (intentionally designed, not an inversion) */
:root[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-alt: #efece3;
  --surface-1: #ffffff;
  --surface-2: #faf8f2;
  --border: rgba(23, 21, 17, 0.09);
  --border-strong: rgba(23, 21, 17, 0.16);
  --text: #17150f;
  --text-muted: #57524a;
  --text-faint: #86806f;
  --accent: #9c7a3c;
  --accent-soft: rgba(156, 122, 60, 0.12);
  --accent-strong: #7d6029;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[lang="ar"] body { font-family: var(--font-arabic); }

/* Light theme needs a lighter, softer glow + shadow language */
:root[data-theme="light"] .hero-glow { opacity: 0.55; }
:root[data-theme="light"] .btn-primary { box-shadow: 0 8px 20px -10px rgba(124, 96, 41, 0.35); }
:root[data-theme="light"] .site-header { background: rgba(246, 244, 239, 0.7); }
:root[data-theme="light"] .site-header.is-scrolled { background: rgba(246, 244, 239, 0.92); }
:root[data-theme="light"] .nav-mobile { background: rgba(246, 244, 239, 0.98); }
:root[data-theme="light"] .skip-link { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #10100f;
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

p { margin: 0; }

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #14120b;
  box-shadow: 0 8px 24px -8px rgba(201, 164, 99, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(201, 164, 99, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.4s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 12, 0.82);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav-desktop a { transition: color 0.2s var(--ease); position: relative; }
.nav-desktop a:hover { color: var(--text); }
.nav-desktop a.nav-cta {
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 9px 20px;
  border-radius: 999px;
}
.nav-desktop a.nav-cta:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- Header controls: language switcher + theme toggle ---------- */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease); }
.theme-toggle .icon-moon { opacity: 0; transform: scale(0.6) rotate(-40deg); }
.theme-toggle .icon-sun { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle.is-light .icon-moon { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle.is-light .icon-sun { opacity: 0; transform: scale(0.6) rotate(40deg); }

.lang-switcher { position: relative; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text); }
.lang-flag { font-size: 14px; line-height: 1; }
.lang-flag.lang-flag-code,
.lang-flag-code {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  min-width: 1.25rem;
  text-align: center;
}
html[lang="ar"] .lang-flag-code { letter-spacing: 0; }
.lang-chevron { width: 10px; height: 10px; transition: transform 0.25s var(--ease); }
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 50;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-menu li:hover { background: var(--accent-soft); color: var(--text); }
.lang-menu li[aria-selected="true"] { color: var(--accent-strong); font-weight: 600; }

[dir="rtl"] .lang-menu { right: auto; left: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 1.5px; width: 22px; margin: 0 auto;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  background: rgba(10, 10, 12, 0.98);
  border-bottom: 1px solid var(--border);
  transition: max-height 0.35s var(--ease);
}
.nav-mobile.is-open { max-height: 340px; }
.nav-mobile a {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}
.nav-mobile a:hover { color: var(--accent-strong); }

/* ---------- Section scaffolding ---------- */
main section {
  position: relative;
  padding: 120px 0;
}
.about { background: var(--bg-alt); }
.why { background: var(--bg-alt); }

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label-index { font-family: var(--font-display); font-size: 14px; color: var(--text-faint); }
.label-line { width: 42px; height: 1px; background: var(--border-strong); }

.section-title {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 6px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 160px;
  padding-bottom: 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(201, 164, 99, 0.16), transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
  transition-delay: 0.05s;
}
.hero-title {
  font-size: clamp(46px, 8vw, 84px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 18px;
  transition-delay: 0.1s;
}
.hero-title-accent {
  color: var(--accent-strong);
  font-style: italic;
}
.hero-role {
  font-family: var(--font-body);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  transition-delay: 0.15s;
}
.hero-statement {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 44px;
  transition-delay: 0.2s;
}
.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  transition-delay: 0.25s;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 54px;
  background: var(--border-strong);
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollCue 2.4s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
}
.about-content { max-width: 660px; }
.about-text {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 20px;
}
.about-text:last-child { margin-bottom: 0; }
.about-text-highlight {
  padding: 20px 22px;
  margin-top: 8px;
  background: var(--accent-soft);
  border-inline-start: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  color: var(--text);
}

/* ---------- What I Do ---------- */
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card-icon {
  width: 46px; height: 46px;
  color: var(--accent);
  margin-bottom: 22px;
}
.card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}
.card-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Domain Ecosystem / Logo Marquee ---------- */
.ecosystem { padding-bottom: 90px; }
.ecosystem .section-label,
.ecosystem .section-title,
.ecosystem .portfolio-note { max-width: 720px; }
.ecosystem .portfolio-note { margin-bottom: 0; }

.marquee {
  margin-top: 52px;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex: none;
  padding: 0 56px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.marquee:hover .marquee-item { color: var(--text-faint); }
.marquee-item:hover { color: var(--accent-strong) !important; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .marquee-track { animation-name: marqueeScrollRTL; }
@keyframes marqueeScrollRTL {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

.ecosystem-fine {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Portfolio ---------- */
.portfolio-heading { max-width: 720px; }
.portfolio-note {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-top: 14px;
}
.portfolio-note strong { color: var(--accent-strong); font-weight: 600; }

.portfolio-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.domain-card {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  opacity: 0;
  transform: translateY(18px);
}
.domain-card.is-visible { opacity: 1; transform: translateY(0); }
.domain-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.demo-badge {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-strong);
  padding: 4px 10px;
  border-radius: 999px;
}

.domain-name {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--text);
  margin: 4px 0 14px;
}
.domain-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.domain-tag {
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
}
.domain-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.domain-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.domain-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-faint);
}
.domain-status .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.domain-inquire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.domain-inquire svg { width: 14px; height: 14px; }
.domain-inquire:hover { gap: 9px; color: var(--accent); }
[dir="rtl"] .domain-inquire svg { transform: scaleX(-1); }

.explore-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.why-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.why-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-icon {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 16px; height: 16px; }
.why-list h3 {
  font-size: 18px;
  color: var(--text);
  margin-bottom: 6px;
}
.why-list p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 140px; }
.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-info h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 26px;
}
.contact-email-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.contact-email {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent-strong);
  margin-bottom: 28px;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.contact-email:hover { border-color: var(--accent-strong); }

.btn-email { width: 100%; justify-content: center; }

.contact-divider {
  height: 1px;
  background: var(--border);
  margin: 30px 0 24px;
}
.contact-fine {
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.contact-form {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 34px;
}
.contact-form h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-field label .optional { color: var(--text-faint); font-weight: 400; }
.form-field label span[aria-hidden] { color: var(--accent); }

.form-field input,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }

.form-field.is-invalid input,
.form-field.is-invalid textarea {
  border-color: #c96363;
}
.field-error {
  display: none;
  color: #e08a8a;
  font-size: 12.5px;
  margin-top: 7px;
}
.form-field.is-invalid .field-error { display: block; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
  position: relative;
}
.btn-spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2px solid rgba(20, 18, 11, 0.35);
  border-top-color: #14120b;
  border-radius: 50%;
}
.btn-submit.is-loading .btn-label { opacity: 0.6; }
.btn-submit.is-loading .btn-spinner {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
  line-height: 1.5;
}
.form-status.success { color: #8fd6a8; }
.form-status.error { color: #e08a8a; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 60px 0 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--font-display); font-size: 17px; color: var(--text); }
.footer-role { font-size: 13px; color: var(--text-faint); margin-top: 3px; }
.footer-nav { display: flex; gap: 26px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; }
.footer-nav a:hover { color: var(--accent-strong); }
.footer-email { color: var(--accent-strong); font-size: 14.5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ==========================================================================
   RTL (Arabic) refinements
   ------------------------------------------------------------------------
   Grid/flex track order mirrors automatically once html[dir="rtl"] is set
   (native CSS direction-awareness). These rules cover the remaining
   direction-sensitive details: icons drawn with implied left/right meaning
   and typographic conventions (no uppercase/letter-spacing in Arabic).
   ========================================================================== */
[dir="rtl"] .btn-email svg { transform: scaleX(-1); }

html[lang="ar"] .eyebrow,
html[lang="ar"] .section-label,
html[lang="ar"] .hero-role,
html[lang="ar"] .contact-email-label,
html[lang="ar"] .domain-tag,
html[lang="ar"] .lang-code,
html[lang="ar"] .footer-role {
  text-transform: none;
  letter-spacing: 0;
}

html[lang="ar"] .hero-title-accent { font-style: normal; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-right { gap: 10px; }
  .lang-toggle .lang-code { display: none; }
  .lang-toggle { padding: 0 10px; }
  main section { padding: 90px 0; }
  .hero { padding-top: 130px; }
  .card-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .marquee-item { padding: 0 34px; font-size: 21px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .contact-info, .contact-form { padding: 30px 22px; }
  .domain-name { font-size: 22px; }
  .header-controls { gap: 8px; }
}
