/**
 * Ahmed M Al Janahy — Enterprise Portfolio
 * Main stylesheet
 */

/* ========== Variables ========== */
:root {
  --bg0: #000;
  --bg1: #09090b;
  --card: rgba(9, 9, 11, 0.42);
  --card2: rgba(9, 9, 11, 0.52);
  --border: rgba(39, 39, 42, 0.85);
  --text: #fafafa;
  --muted: #a1a1aa;
  --muted2: #71717a;
  --accent: #ff8c0f;
  --accent2: #ffc746;
  --accent-gradient: linear-gradient(135deg, #ffc746, #ff8c0f);
  --accent-gradient-h: linear-gradient(90deg, #ffc746, #ff8c0f);
  --ring: rgba(255, 140, 15, 0.35);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ========== Base ========== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1000px 650px at 18% 0%, rgba(255, 199, 70, 0.12), rgba(255, 140, 15, 0.08), transparent 60%),
    radial-gradient(900px 600px at 92% 22%, rgba(255, 199, 70, 0.08), rgba(255, 140, 15, 0.05), transparent 55%),
    linear-gradient(to bottom, var(--bg0), var(--bg1));
}

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========== Layout ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: max(7px, env(safe-area-inset-left));
  padding-right: max(7px, env(safe-area-inset-right));
}

.grid { display: grid; gap: 16px; }
@media (max-width: 640px) { .grid { gap: 20px; } }

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

.col-7 { grid-column: span 7; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

.hero-grid { align-items: start; gap: 24px; }
@media (max-width: 640px) { .hero-grid { gap: 32px; } }

@media (max-width: 980px) {
  .grid-12 { grid-template-columns: 1fr; }
  .col-7, .col-5, .col-6, .col-4 { grid-column: span 12; padding: 20px; }
}

/* ========== Typography ========== */
.muted { color: var(--muted); }
.muted2 { color: var(--muted2); }
.kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 140, 15, 0.9);
}
.h2 { font-size: 24px; font-weight: 700; margin: 8px 0 0; line-height: 1.25; }
@media (min-width: 641px) { .h2 { font-size: 28px; } }

.section { padding: 48px 0; }
@media (min-width: 769px) { .section { padding: 64px 0; } }

.divider {
  margin-top: 12px;
  height: 1px;
  width: 64px;
  background: var(--accent-gradient-h);
}

/* ========== Top Nav ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid rgba(24, 24, 27, 0.8);
}

.topbar-inner {
  min-height: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 640px) { .topbar-inner { gap: 16px; } }
@media (min-width: 769px) { .topbar-inner { height: 64px; gap: 16px; } }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }

.brand-text { display: none; }
@media (min-width: 769px) { .brand-text { display: block; } }

.brand-name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}

.brand-name span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.brand-tagline { font-size: 12px; margin-top: 4px; display: none; }
@media (min-width: 480px) { .brand-tagline { display: block; } }

.brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(9, 9, 11, 0.7);
  border: 1px solid rgba(39, 39, 42, 0.85);
  box-shadow: 0 0 0 1px var(--ring);
  overflow: hidden;
}
.brand-badge img,
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-badge {
  transition: transform 0.25s var(--ease-bounce);
}
.brand-badge:hover {
  transform: scale(1.06);
}
.brand:active .brand-badge { transform: scale(0.98); }

.navlinks { display: flex; gap: 22px; font-size: 14px; color: #d4d4d8; }
.navlinks a {
  position: relative;
  transition: color 0.2s ease;
}
.navlinks a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient-h);
  transition: width 0.3s var(--ease-out);
}
.navlinks a:hover { color: #fff; }
.navlinks a:hover::after,
.navlinks a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.7);
  color: #d4d4d8;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  flex-shrink: 0;
}
.nav-toggle:hover { border-color: rgba(255, 140, 15, 0.4); }
.nav-toggle:active { transform: scale(0.95); }
.nav-toggle svg { width: 20px; height: 20px; transition: transform 0.2s var(--ease-spring); }

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    padding-left: max(7px, env(safe-area-inset-left));
    padding-right: max(7px, env(safe-area-inset-right));
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid rgba(24, 24, 27, 0.8);
    gap: 0;
  }
  .navlinks a { padding: 12px 0; border-bottom: 1px solid rgba(39, 39, 42, 0.5); }
  .navlinks a:last-child { border-bottom: none; }
  .topbar.nav-open .navlinks { display: flex; }
}
@media (min-width: 981px) { .nav-toggle { display: none; } }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.5);
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.lang-switch:hover {
  border-color: rgba(255, 140, 15, 0.4);
  color: #fff;
}
.lang-switch .lang-sep { opacity: 0.5; }
.lang-switch .lang-opt { transition: color 0.2s; }
.lang-switch .lang-opt.active { color: var(--accent2); font-weight: 700; }

@media (max-width: 980px) {
  .lang-switch { margin-left: auto; margin-right: 8px; }
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  min-height: 44px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #000;
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(255, 140, 15, 0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffd96a, #ff9a1a);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 15, 0.35);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(255, 140, 15, 0.2);
}

.btn-soft {
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.15), rgba(255, 140, 15, 0.08));
  color: #ffedd5;
  border: 1px solid rgba(255, 140, 15, 0.25);
}
.btn-soft:hover {
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.25), rgba(255, 140, 15, 0.15));
  border-color: rgba(255, 140, 15, 0.4);
  transform: translateY(-1px);
}
.btn-soft:active { transform: translateY(0) scale(0.98); }

.btn-consult { min-width: 44px; min-height: 44px; }
.btn-consult .btn-text { margin-right: 6px; }

@media (max-width: 980px) {
  .btn-consult { padding: 10px; border-radius: 12px; }
  .btn-consult .btn-text { display: none; }
  .btn-consult .btn-text + i,
  .btn-consult i { margin: 0; }
}
@media (max-width: 980px) {
  .topbar-inner .btn-consult { margin-left: auto; }
}

/* ========== Hero ========== */
.hero { position: relative; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; }

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.7), #000);
}

.blob1, .blob2 {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(60px);
}
.blob1 { top: -110px; left: -110px; background: radial-gradient(circle, rgba(255, 199, 70, 0.15), rgba(255, 140, 15, 0.08)); }
.blob2 { bottom: -110px; right: -110px; background: radial-gradient(circle, rgba(255, 199, 70, 0.15), rgba(255, 140, 15, 0.08)); }

.hero-inner { position: relative; padding: 56px 0 64px; }
@media (min-width: 769px) { .hero-inner { padding: 64px 0 74px; } }

.hero-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
@media (max-width: 640px) { .hero-title { font-size: 20px; } }
@media (min-width: 641px) { .hero-title { font-size: 42px; } }

.name-with-badge { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 640px) { .name-with-badge { white-space: nowrap; } }

.verify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0866ff;
  color: #fff;
}
.verify-badge i { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .verify-badge { width: 20px; height: 20px; }
  .verify-badge i { width: 12px; height: 12px; }
}

.verify-badge-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #0866ff;
  color: #fff;
  margin-left: 6px;
  flex-shrink: 0;
}
.verify-badge-sm i { width: 10px; height: 10px; }

.hero-sub { margin-top: 10px; color: #d4d4d8; font-size: 14px; line-height: 1.55; }
@media (min-width: 641px) { .hero-sub { font-size: 15px; } }

.hero-p {
  margin-top: 24px;
  color: #e4e4e7;
  line-height: 1.75;
  min-height: 4.4em;
  max-width: 720px;
}
.hero-p .typed-text { display: inline; }
.typed-cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  color: var(--accent);
  animation: cursor-chirp 1.2s step-end infinite;
}
@media (prefers-reduced-motion: reduce) {
  .typed-cursor { animation: none; opacity: 0.7; }
}
@keyframes cursor-chirp {
  0%, 35% { opacity: 1; }
  40%, 45% { opacity: 0; }
  50%, 75% { opacity: 1; }
  80%, 85% { opacity: 0; }
  90%, 100% { opacity: 1; }
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  .hero-ctas .btn:not(.btn-consult) {
    width: 50%;
    min-width: 0;
    flex: 0 0 50%;
    justify-content: center;
  }
  .hero-ctas .btn-consult {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
  }
}

/* Avatar */
.avatar-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.avatar-text { flex: 1; min-width: 0; }

.avatar-wrap { position: relative; }

.avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.35), rgba(255, 140, 15, 0.2), transparent);
  filter: blur(10px);
  animation: avatar-glow-pulse 3s ease-in-out infinite;
}
@keyframes avatar-glow-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 20px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  box-shadow: 0 0 0 1px var(--ring);
  object-fit: cover;
  background: #111;
  transition: transform 0.35s var(--ease-bounce);
}
.avatar-wrap:hover .avatar {
  transform: scale(1.03);
}
@media (max-width: 640px) { .avatar { width: 78px; height: 78px; } }

/* ========== Cards ========== */
.card {
  border-radius: 22px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.card2 { background: var(--card2); }

.card-pad { padding: 20px; }

.card-title { font-size: 14px; font-weight: 800; color: #fff; margin: 0; }

.card-body {
  margin-top: 14px;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.65;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) { .badge-row { gap: 14px; row-gap: 14px; } }

.badge {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  color: #e4e4e7;
  background: rgba(24, 24, 27, 0.55);
}

.badge-inactive {
  color: var(--muted2);
  border-color: rgba(63, 63, 70, 0.6);
  background: rgba(24, 24, 27, 0.35);
}

.badge i.lucide-inline {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  color: rgba(255, 199, 70, 0.95);
}

/* ========== Pills ========== */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  row-gap: 14px;
}
@media (max-width: 640px) {
  .pill-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(9, 9, 11, 0.35);
  border: 1px solid rgba(39, 39, 42, 0.85);
  font-size: 12px;
  color: #f4f4f5;
  transition: 0.2s ease;
}
.pill:hover {
  border-color: rgba(255, 140, 15, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.pill:active { transform: translateY(0) scale(0.98); }
.pill svg { width: 14px; height: 14px; color: rgba(255, 199, 70, 0.95); transition: transform 0.25s var(--ease-bounce); }
.pill:hover svg { transform: scale(1.1); }

/* ========== Social ========== */
.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.social-icons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .social-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .social-label { display: block; font-size: 12px; }
  .social-icons { display: flex; flex-wrap: nowrap; gap: 8px; }
  .social-row .social-btn { width: 36px; height: 36px; }
  .social-row .social-btn svg { width: 18px; height: 18px; }
}

.sep { width: 1px; height: 16px; background: rgba(39, 39, 42, 0.9); }

.social-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.35);
  transition: 0.2s ease;
}
.social-btn:hover {
  border-color: rgba(255, 140, 15, 0.4);
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.15), rgba(255, 140, 15, 0.08));
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(255, 140, 15, 0.2);
}
.social-btn:active { transform: translateY(0) scale(0.95); }
.social-btn svg {
  width: 16px;
  height: 16px;
  color: #d4d4d8;
  transition: color 0.2s ease, transform 0.25s var(--ease-bounce);
}
.social-btn:hover svg { color: #fed7aa; transform: scale(1.15); }

/* ========== List links ========== */
.list-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(0, 0, 0, 0.2);
  color: #e4e4e7;
  transition: 0.2s ease;
  font-size: 14px;
}
.list-link:hover {
  background: rgba(24, 24, 27, 0.55);
  border-color: rgba(255, 140, 15, 0.25);
  transform: translateX(4px);
}
.list-link:active { transform: translateX(2px); }
.list-link .arrow {
  color: rgba(255, 140, 15, 0.9);
  transition: transform 0.25s var(--ease-out);
}
.list-link:hover .arrow { transform: translateX(4px); }

/* ========== Timeline ========== */
.timeline { display: grid; gap: 14px; }

.t-item { position: relative; padding-left: 38px; }

.t-dot {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-gradient);
  box-shadow: 0 0 22px rgba(255, 140, 15, 0.55);
}

/* Story gallery: 4 per row, 2 rows. Mobile: carousel with dots */
.story-gallery-wrap { margin-top: 22px; }
.story-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.story-gallery-item {
  aspect-ratio: 4/3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.5);
}
.story-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.story-gallery-item:hover img { transform: scale(1.05); }

.story-gallery-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 0;
}
.story-gallery-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(63, 63, 70, 0.8);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.story-gallery-dots .dot:hover { background: rgba(113, 113, 122, 0.9); }
.story-gallery-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .story-gallery-wrap { margin-top: 18px; }
  .story-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .story-gallery::-webkit-scrollbar { display: none; }
  .story-gallery-item {
    flex: 0 0 75%;
    min-width: 240px;
    max-width: 280px;
    scroll-snap-align: start;
    aspect-ratio: 4/3;
  }
  .story-gallery-dots { display: flex; }
}

.t-line {
  position: absolute;
  left: 14px;
  top: 26px;
  bottom: -12px;
  width: 1px;
  background: rgba(39, 39, 42, 0.9);
}

.t-card {
  border-radius: 18px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.4);
  padding: 16px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, border-color 0.2s ease;
}
.t-card:hover {
  transform: translateX(4px);
  border-color: rgba(255, 140, 15, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.t-card-highlight {
  background: var(--accent-gradient);
  border-color: rgba(255, 140, 15, 0.5);
  color: #000;
  box-shadow: 0 8px 28px rgba(255, 140, 15, 0.25);
}
.t-card-highlight:hover {
  border-color: rgba(255, 199, 70, 0.6);
  box-shadow: 0 12px 32px rgba(255, 140, 15, 0.35);
}
.t-card-highlight .t-card-highlight-desc {
  color: rgba(0, 0, 0, 0.75);
}
.badge-on-accent {
  background: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.3);
  color: #000;
  font-weight: 700;
}

.t-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }

.t-icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.12), rgba(255, 140, 15, 0.06));
  box-shadow: 0 0 0 1px var(--ring);
}
.t-icon svg { width: 16px; height: 16px; color: rgba(255, 199, 70, 0.95); }

.t-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.t-title { margin-top: 8px; font-size: 16px; font-weight: 800; }
.t-text { margin-top: 10px; color: #d4d4d8; font-size: 14px; line-height: 1.6; }

/* ========== Lists ========== */
.ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

.li { display: flex; align-items: flex-start; gap: 10px; color: #d4d4d8; font-size: 14px; }

.bullet {
  margin-top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-gradient);
}

/* ========== Metrics ========== */
.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 980px) { .metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metrics { grid-template-columns: 1fr; } }

.metric {
  border-radius: 18px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.35);
  padding: 16px;
  transition: 0.2s ease;
}
.metric:hover {
  border-color: rgba(255, 140, 15, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.metric:active { transform: translateY(0); }

.metric .val { font-size: 22px; font-weight: 900; }
.metric .lab { margin-top: 4px; color: var(--muted); font-size: 13px; }
.metric .mini {
  margin-top: 14px;
  height: 1px;
  width: 48px;
  background: var(--accent-gradient-h);
}

/* ========== Clients ========== */
.clients-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 22px;
}
@media (max-width: 980px) { .clients-wrap { grid-template-columns: repeat(2, 1fr); } }

.client-card {
  border-radius: 18px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: 0.2s ease;
}
@media (min-width: 641px) { .client-card { padding: 20px; border-radius: 22px; } }
.client-card.client-popup-trigger { cursor: pointer; }
.client-card:hover {
  border-color: rgba(255, 140, 15, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 140, 15, 0.1);
}
.client-card:active { transform: translateY(-2px); }

.client-head { display: flex; align-items: center; gap: 14px; }

.client-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid rgba(39, 39, 42, 0.85);
  padding: 6px;
}

.client-name { font-size: 16px; font-weight: 800; color: #fff; margin: 0; }

.client-service {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.2), rgba(255, 140, 15, 0.12));
  color: #fed7aa;
  border: 1px solid rgba(255, 140, 15, 0.3);
}

.client-desc {
  margin-top: 12px;
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .clients-wrap {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin-top: 18px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .clients-wrap::-webkit-scrollbar { height: 6px; }
  .clients-wrap::-webkit-scrollbar-track {
    background: rgba(24, 24, 27, 0.5);
    border-radius: 3px;
  }
  .clients-wrap::-webkit-scrollbar-thumb {
    background: var(--accent-gradient-h);
    border-radius: 3px;
  }
  .client-card {
    flex: 0 0 85%;
    min-width: 280px;
    max-width: 320px;
    scroll-snap-align: start;
  }
}

/* ========== Footer ========== */
footer {
  border-top: 1px solid rgba(24, 24, 27, 0.8);
  padding: 32px 0;
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
}
@media (min-width: 769px) {
  footer { padding: 40px 0; padding-bottom: 40px; }
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.footer-brand { font-weight: 900; font-size: 14px; }
.footer-tagline { margin-top: 6px; font-size: 12px; }
.footer-social { margin-top: 14px; }
.footer-social .social-btn { width: 40px; height: 40px; }
.footer-social .social-btn svg { width: 16px; height: 16px; }
.footer-copy { margin-top: 18px; font-size: 12px; }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: #d4d4d8;
}
.foot-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}
.foot-links a:hover {
  color: #fed7aa;
  transform: translateX(2px);
}

/* ========== Skip link ========== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 600;
  border-radius: 0 0 12px 0;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent2);
}

/* ========== Page loader ========== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #000 0%, #09090b 100%);
  transition: opacity 0.6s ease;
}

.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.page-loader-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 199, 70, 0.2), rgba(255, 140, 15, 0.1));
  border: 1px solid rgba(255, 140, 15, 0.3);
  animation: loader-pulse 1.2s ease-in-out infinite;
  overflow: hidden;
  padding: 8px;
}
.page-loader-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-loader-bar {
  margin-top: 24px;
  width: 120px;
  height: 3px;
  background: rgba(39, 39, 42, 0.8);
  border-radius: 999px;
  overflow: hidden;
}

.page-loader-bar::before {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--accent-gradient-h);
  border-radius: 999px;
  animation: loader-fill 2s ease-in-out;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.02); }
}

@keyframes loader-fill {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* ========== Consultation Modal ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-overlay[aria-hidden="true"] { opacity: 0; visibility: hidden; }
.modal-overlay[aria-hidden="false"] { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card2);
  border: 1px solid rgba(39, 39, 42, 0.85);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: transform 0.3s var(--ease-out);
}
.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(9, 9, 11, 0.5);
  color: #d4d4d8;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}
.modal-close:hover { color: #fff; border-color: rgba(255, 140, 15, 0.4); }
.modal-close svg { width: 18px; height: 18px; }

.modal-title { margin: 0 0 20px 0; font-size: 20px; font-weight: 800; }

.consult-form { display: grid; gap: 16px; }
.form-field { display: block; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e4e4e7;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(39, 39, 42, 0.85);
  background: rgba(9, 9, 11, 0.5);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--muted2); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(255, 140, 15, 0.5);
  box-shadow: 0 0 0 2px var(--ring);
}
.form-field textarea { resize: vertical; min-height: 80px; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-anti .form-label { margin-bottom: 4px; }
.form-anti input { max-width: 80px; }

.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

.company-modal-desc {
  margin: 0 0 20px 0;
  color: #d4d4d8;
  line-height: 1.65;
  font-size: 15px;
}
.company-modal .modal-content { max-width: 440px; }

/* Client modal */
.client-modal .modal-content { max-width: 480px; }
.client-modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.client-modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.client-modal-service {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
}
.client-modal-desc {
  margin: 0 0 20px 0;
  color: #d4d4d8;
  line-height: 1.65;
  font-size: 15px;
}
.client-modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-link.company-popup-trigger {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.list-link.company-popup-trigger:focus-visible { outline-offset: 2px; }

/* ========== Back to top ========== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-gradient);
  color: #000;
  border: none;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s var(--ease-out);
  box-shadow: 0 4px 16px rgba(255, 140, 15, 0.35);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 140, 15, 0.45);
}
.back-to-top:active { transform: translateY(0) scale(0.96); }
.back-to-top svg { width: 24px; height: 24px; }
@media (max-width: 640px) {
  .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }
}
[dir="rtl"] .back-to-top { right: auto; left: 24px; }
@media (max-width: 640px) { [dir="rtl"] .back-to-top { left: 16px; } }

/* ========== Scroll reveal ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal.reveal-delay-1 { transition-delay: 0.08s; }
.reveal.reveal-delay-2 { transition-delay: 0.16s; }
.reveal.reveal-delay-3 { transition-delay: 0.24s; }
.reveal.reveal-delay-4 { transition-delay: 0.32s; }
.reveal.reveal-delay-5 { transition-delay: 0.4s; }

/* ========== Print ========== */
@media print {
  .page-loader, .skip-link, .back-to-top, .nav-toggle, .lang-switch,
  .btn-consult, .hero-ctas .btn-consult, #schedule-btn-consult, #schedule-btn-hero,
  #schedule-btn-nav {
    display: none !important;
  }
}
