/**
 * ═══════════════════════════════════════════════════════════
 *  AL ROUBY DIGITAL STUDIO — Master Stylesheet
 *  Version : 2.0.0
 *  Updated : 2026-02-20
 * ═══════════════════════════════════════════════════════════
 *
 *  TABLE OF CONTENTS
 *  ─────────────────
 *   1.  Design Tokens (CSS Custom Properties)
 *   2.  Reset & Base
 *   3.  Typography
 *   4.  Layout Utilities
 *   5.  Navigation
 *   6.  Hero Section
 *   7.  Marquee / Ticker
 *   8.  Services Section
 *   9.  Portfolio / Work Section
 *  10.  About Section
 *  11.  Stats Counter Bar
 *  12.  Testimonials Section
 *  13.  Contact Section
 *  14.  Footer
 *  15.  Theme Switcher
 *  16.  Language Switcher
 *  17.  Buttons
 *  18.  Animations & Keyframes
 *  19.  Scroll Reveal System
 *  20.  Responsive Breakpoints
 *  21.  RTL Overrides (Arabic)
 *  22.  Accessibility & Reduced Motion
 *  23.  Print Styles
 *
 * ═══════════════════════════════════════════════════════════
 */

/* ─────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ─────────────────────────────────────────────────────────
   Single source of truth for the entire design system.
   To rebrand: change values here — the whole site follows.
───────────────────────────────────────────────────────── */
:root {
  /* ── Typography ── */
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-arabic: "Noto Sans Arabic", sans-serif;

  /* Fluid type scale (min @ 320px → max @ 1440px) */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --fs-md: clamp(1.15rem, 1rem + 0.5vw, 1.35rem);
  --fs-lg: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-xl: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  --fs-2xl: clamp(2.5rem, 1.8rem + 2.5vw, 4.5rem);
  --fs-3xl: clamp(2.8rem, 2rem + 3vw, 5.5rem);
  --fs-hero: clamp(3.2rem, 2rem + 5vw, 7.5rem);

  /* ── Spacing ── */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  --space-section: clamp(5rem, 12vh, 10rem);

  /* ── Layout ── */
  --max-width: 1400px;
  --nav-height: 100px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;
}

/* ── DARK THEME (Default) ── */
[data-theme="dark"] {
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #1a1a1e;
  --bg-card: #141417;
  --bg-card-hover: #1c1c21;
  --bg-glass: rgba(10, 10, 11, 0.75);

  --text-primary: #f0eeeb;
  --text-secondary: #9d9a94;
  --text-tertiary: #6b6860;
  --text-inverse: #0a0a0b;

  --accent: #c8ff32;
  --accent-hover: #d4ff5c;
  --accent-subtle: rgba(200, 255, 50, 0.07);
  --accent-glow: rgba(200, 255, 50, 0.12);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(200, 255, 50, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 60px rgba(200, 255, 50, 0.06);
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg-primary: #faf9f7;
  --bg-secondary: #f2f0ed;
  --bg-tertiary: #e8e5e1;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f5f2;
  --bg-glass: rgba(250, 249, 247, 0.82);

  --text-primary: #1a1815;
  --text-secondary: #6b6860;
  --text-tertiary: #9d9a94;
  --text-inverse: #faf9f7;

  --accent: #1a1815;
  --accent-hover: #2d2a25;
  --accent-subtle: rgba(26, 24, 21, 0.04);
  --accent-glow: rgba(26, 24, 21, 0.06);

  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --border-accent: rgba(26, 24, 21, 0.2);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(0, 0, 0, 0.02);
}

/* ─────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background var(--dur-slow) var(--ease-out),
    color var(--dur-slow) var(--ease-out);
}

/* Noise grain texture overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

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

img,
svg {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Text selection */
::selection {
  background: var(--accent);
  color: var(--text-inverse);
}

/* ─────────────────────────────────────────────────────────
   3. TYPOGRAPHY
───────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* Arabic typography overrides */
[dir="rtl"] body {
  font-family: var(--font-arabic), var(--font-body);
  line-height: 1.9;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .section-label {
  font-family: var(--font-arabic), var(--font-display);
  letter-spacing: 0;
}

[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] textarea {
  font-family: var(--font-arabic), var(--font-body);
}

/* ─────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding-block: var(--space-section);
  position: relative;
}

.section--secondary {
  background: var(--bg-secondary);
}

.section-label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.section-title {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─────────────────────────────────────────────────────────
   5. NAVIGATION
───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--dur-slow) var(--ease-out),
    border-color var(--dur-slow) var(--ease-out);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ── Logo ── */
.nav__logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__logo img,
.nav__logo svg {
  height: clamp(90px, 10vw, 150px);
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Links ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav__link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-block: 0.25rem;
  transition: color var(--dur-fast) ease;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--text-primary);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--dur-base) var(--ease-out);
}

.nav__link:hover::after {
  width: 100%;
}

/* ── Actions group ── */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Mobile toggle ── */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-primary);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ─────────────────────────────────────────────────────────
   6. HERO SECTION
───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Radial gradient backdrop */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 55% at 50% 0%,
    var(--accent-glow) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Background grid lines */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    black 20%,
    transparent 70%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    black 20%,
    transparent 70%
  );
  opacity: 0.35;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: var(--space-xl);
}

.hero__eyebrow {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--border-hover);
  flex-shrink: 0;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: var(--space-lg);
  max-width: 900px;
}

/* Accent word styling */
.hero__title-accent {
  position: relative;
  display: inline;
}

[data-theme="dark"] .hero__title-accent {
  color: var(--accent);
}

[data-theme="light"] .hero__title-accent {
  background: linear-gradient(135deg, #1a1815 30%, #5a544a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-tertiary);
  font-size: var(--fs-xs);
  animation: float 3s ease-in-out infinite;
}

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

/* Staggered hero entrance */
.hero__eyebrow {
  animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.hero__title {
  animation: fade-up 0.8s var(--ease-out) 0.25s both;
}

.hero__subtitle {
  animation: fade-up 0.8s var(--ease-out) 0.4s both;
}

.hero__cta-group {
  animation: fade-up 0.8s var(--ease-out) 0.55s both;
}

.hero__scroll {
  animation: fade-in 1s var(--ease-out) 1.2s both;
}

/* ─────────────────────────────────────────────────────────
   7. MARQUEE / TICKER
   A horizontal scrolling strip for social proof.
───────────────────────────────────────────────────────── */
.marquee {
  border-block: 1px solid var(--border);
  background: var(--bg-secondary);
  padding-block: var(--space-md);
  overflow: hidden;
  position: relative;
}

.marquee__track {
  display: flex;
  gap: var(--space-xl);
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-tertiary);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  opacity: 0.4;
  user-select: none;
}

.marquee__item::after {
  content: "✦";
  font-size: 0.6em;
  color: var(--accent);
  opacity: 0.6;
}

[dir="rtl"] .marquee__track {
  animation-name: marquee-scroll-rtl;
}

/* ─────────────────────────────────────────────────────────
   8. SERVICES
───────────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.35rem;
  line-height: 1;
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

.service-card__number {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  opacity: 0.35;
}

/* ─────────────────────────────────────────────────────────
   9. WORK / PORTFOLIO
───────────────────────────────────────────────────────── */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.work-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all var(--dur-base) var(--ease-out);
  display: block;
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

.work-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-tertiary);
  position: relative;
  overflow: hidden;
}

.work-card__image-inner {
  width: 100%;
  height: 100%;
  transition: transform var(--dur-slow) var(--ease-out);
  position: relative;
}

/* Optional overlay to ensure tag/text readability if image is too bright */
.work-card__image-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.work-card:hover .work-card__image-inner {
  transform: scale(1.05);
}

/* Project thumbnail styles */
.work-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  color: transparent;
  /* Hides alt text on error to keep fallback clean */
}

/* Fallback state when image onerror triggers */
.work-card__image-inner.thumb--fallback .work-card__thumb {
  opacity: 0;
  visibility: hidden;
}

/* Project gradient placeholders — used as fallback backgrounds */
.work-card__image-inner--1 {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.work-card__image-inner--2 {
  background: linear-gradient(135deg, #2d1b2e, #4a1942, #801336);
}

.work-card__image-inner--3 {
  background: linear-gradient(135deg, #1a2e1a, #163e2e, #0f6034);
}

.work-card__image-inner--4 {
  background: linear-gradient(135deg, #2e2a1a, #3e3016, #60440f);
}

/* Floating tag */
.work-card__tag {
  position: absolute;
  top: 1rem;
  inset-inline-start: 1rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.work-card__body {
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.work-card__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.work-card__meta {
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
}

/* Arrow icon */
.work-card__arrow {
  position: absolute;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease-out);
  color: var(--text-secondary);
}

.work-card:hover .work-card__arrow {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

.work-card__arrow svg {
  width: 14px;
  height: 14px;
}

[dir="rtl"] .work-card__arrow svg {
  transform: scaleX(-1);
}

/* ─────────────────────────────────────────────────────────
   10. ABOUT
───────────────────────────────────────────────────────── */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.about__visual-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--bg-tertiary), var(--bg-secondary));
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

/* Optional overlay to keep the dark aesthetic and reading contrast */
.about__visual-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    60% 60% at 50% 40%,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.55)
  );
  pointer-events: none;
  z-index: 1;
}

.about__visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
  color: transparent;
  /* Hides alt text on error to keep fallback clean */
  position: relative;
  z-index: 0;
}

/* Fallback state when image onerror triggers */
.about__visual-inner.img--fallback .about__visual-img {
  opacity: 0;
  visibility: hidden;
}

.about__visual-text {
  display: none;
  /* Hide old text watermark if it still exists in DOM */
}

/* Floating stat badge */
.about__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  background: var(--accent);
  color: var(--text-inverse);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.about__badge-number {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1;
}

.about__badge-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  opacity: 0.8;
  margin-top: 0.2rem;
}

.about__text h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-md);
}

.about__text h2 {
  padding-bottom: 20px;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

/* Tech / tool tags */
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-md);
}

.about__tag {
  padding: 0.4rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-fast) ease;
}

.about__tag:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────
   11. STATS COUNTER BAR
───────────────────────────────────────────────────────── */
.stats {
  border-block: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat {
  padding: var(--space-lg) var(--space-sm);
  position: relative;
}

/* Vertical dividers between stats */
.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%;
  inset-inline-end: 0;
  height: 50%;
  width: 1px;
  background: var(--border);
}

.stat__number {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat__label {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─────────────────────────────────────────────────────────
   12. TESTIMONIALS
───────────────────────────────────────────────────────── */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
}

.testimonial-card__quote {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial-card__quote::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0;
  display: block;
  margin-bottom: 0.6rem;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--fs-sm);
}

.testimonial-card__role {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.testimonial-card__stars {
  position: absolute;
  top: 1.5rem;
  inset-inline-end: 1.5rem;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

/* ─────────────────────────────────────────────────────────
   13. CONTACT
───────────────────────────────────────────────────────── */

#contact {
  background-color: var(--bg-secondary);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.contact__info h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.contact__info p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.8;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.contact__detail-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ── Form ── */
.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  transition:
    border-color var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Honeypot field — hidden from humans, traps bots */
.form-group--hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Form feedback messages (success / error) */
.form-message {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  animation: fade-up 0.4s ease both;
  background: rgba(200, 255, 50, 0.1);
  border: 1px solid rgba(200, 255, 50, 0.2);
  color: var(--text-primary);
}

.form-message--error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.2);
  color: #ff6b6b;
}

/* ─────────────────────────────────────────────────────────
   14. FOOTER
───────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-lg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
}

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--dur-fast) ease;
}

.footer__social-link:hover {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

/* ─────────────────────────────────────────────────────────
   15. THEME SWITCHER
───────────────────────────────────────────────────────── */
.theme-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3px;
  gap: 2px;
}

.theme-switcher__btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  transition: all var(--dur-fast) ease;
}

.theme-switcher__btn:hover {
  color: var(--text-primary);
}

.theme-switcher__btn.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.theme-switcher__btn svg {
  width: 15px;
  height: 15px;
}

/* ─────────────────────────────────────────────────────────
   16. LANGUAGE SWITCHER
───────────────────────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3px;
  gap: 2px;
}

.lang-switcher__btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-xl);
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all var(--dur-fast) ease;
  white-space: nowrap;
}

.lang-switcher__btn:hover {
  color: var(--text-primary);
}

.lang-switcher__btn.active {
  background: var(--bg-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ─────────────────────────────────────────────────────────
   17. BUTTONS
───────────────────────────────────────────────────────── */

/* ── Primary CTA ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 2rem;
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  letter-spacing: 0.01em;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

[dir="rtl"] .btn-primary svg {
  transform: scaleX(-1);
}

[dir="rtl"] .btn-primary:hover svg {
  transform: scaleX(-1) translateX(-3px);
}

/* Full-width variant — used on form submit buttons */
.btn-primary--full {
  width: 100%;
  justify-content: center;
}

/* ── Ghost / Secondary ── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--text-tertiary);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}

/* ─────────────────────────────────────────────────────────
   18. ANIMATIONS & KEYFRAMES
───────────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@keyframes scroll-line {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

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

  51% {
    transform-origin: bottom;
  }

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

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

@keyframes marquee-scroll-rtl {
  from {
    transform: translateX(0);
  }

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

/* ─────────────────────────────────────────────────────────
   19. SCROLL REVEAL SYSTEM
   Elements with [data-reveal] animate into view once.
───────────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
[data-reveal-delay="1"] {
  transition-delay: 100ms;
}

[data-reveal-delay="2"] {
  transition-delay: 200ms;
}

[data-reveal-delay="3"] {
  transition-delay: 300ms;
}

[data-reveal-delay="4"] {
  transition-delay: 400ms;
}

/* ─────────────────────────────────────────────────────────
   20. RESPONSIVE BREAKPOINTS
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about__layout,
  .contact__layout {
    grid-template-columns: 1fr;
  }

  .about__visual {
    max-height: 400px;
    aspect-ratio: unset;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    inset-inline: 0;
    bottom: 0;
    background: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__link {
    font-size: var(--fs-lg);
  }

  .work__grid,
  .services__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__scroll {
    display: none;
  }

  .hero__title-accent,
  .hero__title {
    font-size: var(--fs-2xl);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero__cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }

  .nav__actions {
    gap: 0.25rem;
  }

  .theme-switcher__btn {
    width: 26px;
    height: 26px;
  }

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

/* ─────────────────────────────────────────────────────────
   21. RTL OVERRIDES
───────────────────────────────────────────────────────── */
[dir="rtl"] .section-label {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

[dir="rtl"] .hero__eyebrow {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* ─────────────────────────────────────────────────────────
   22. ACCESSIBILITY & REDUCED MOTION
───────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-inverse);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--dur-fast) ease;
}

.skip-link:focus {
  top: var(--space-sm);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .marquee__track {
    animation: none;
  }
}

/* ─────────────────────────────────────────────────────────
   23. PRINT STYLES
───────────────────────────────────────────────────────── */
@media print {
  body::after,
  .nav,
  .hero__grid,
  .hero__scroll,
  .theme-switcher,
  .lang-switcher,
  .marquee {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .section {
    padding: 2rem 0;
  }
}
