:root,
html[data-theme="light"] {
  --bg: #e8f6ff;
  --bg-2: #f3fbff;
  --surface: #ffffff;
  --surface-2: #f7fcff;
  --line: #cdebfa;
  --gold: #38bdf8;
  --gold-2: #0284c7;
  --gold-dim: rgba(14, 165, 233, 0.14);
  --on-accent: #ffffff;
  --cream: #0f2a44;
  --muted: #5b7186;
  --text-soft: #0c4a6e;
  --blue: #0ea5e9;
  --rose: #0c4a6e;
  --green: #12b981;
  --shadow: 0 14px 36px rgba(14, 116, 144, 0.1);
  --nav-bg: rgba(247, 252, 255, 0.9);
  --nav-scrolled: linear-gradient(180deg, #e8f6ff 62%, rgba(232, 246, 255, 0.94) 82%, transparent);
  --card: #ffffff;
  --input-bg: #fff;
  --input-border: #cdebfa;
  --chip-bg: rgba(255, 255, 255, 0.94);
  --erp-from: #e8f6ff;
  --erp-to: #d8f0fc;
  --footer-bg: #0f2a44;
  --footer-line: #163a58;
  --orb-1: #bfe9fb;
  --orb-2: rgba(56, 189, 248, 0.32);
  --orb-3: #d8f4ff;
  --map-filter: saturate(1.05) contrast(1.02);
  --map-bg: #d8f0fc;
  --skill-track: #d8eef8;
  --to-top-bg: #38bdf8;
  --radius: 22px;
  --nav-h: 84px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #071820;
  --bg-2: #0a2230;
  --surface: #0c2430;
  --surface-2: #123040;
  --line: rgba(125, 211, 252, 0.16);
  --gold: #38bdf8;
  --gold-2: #7dd3fc;
  --gold-dim: rgba(56, 189, 248, 0.14);
  --on-accent: #072033;
  --cream: #e8f2f7;
  --muted: #9bb4c0;
  --text-soft: #c5e4f2;
  --blue: #38bdf8;
  --rose: #7dd3fc;
  --green: #34d399;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(12, 36, 48, 0.88);
  --nav-scrolled: linear-gradient(180deg, #071820 62%, rgba(7, 24, 32, 0.94) 82%, transparent);
  --card: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  --input-bg: #0a1c26;
  --input-border: #1a3d52;
  --chip-bg: rgba(12, 36, 48, 0.9);
  --erp-from: #0c2430;
  --erp-to: #071820;
  --footer-bg: #031820;
  --footer-line: #0c2430;
  --orb-1: #083d54;
  --orb-2: rgba(56, 189, 248, 0.22);
  --orb-3: #0d2a38;
  --map-filter: grayscale(0.15) invert(0.88) contrast(0.92) saturate(0.55);
  --map-bg: #0a1c26;
  --skill-track: #123040;
  --to-top-bg: #38bdf8;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background 0.35s ease, color 0.35s ease;
}

html[data-theme="light"] body {
  background:
    radial-gradient(980px 460px at 88% -8%, #cdecfd 0%, transparent 58%),
    radial-gradient(720px 380px at 0% 18%, #f7fcff 0%, transparent 52%),
    #e8f6ff;
}

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

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

button,
input,
textarea {
  font-family: inherit;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.orb-1 {
  width: 420px;
  height: 420px;
  background: var(--orb-1);
  top: -80px;
  right: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: var(--orb-2);
  top: 40%;
  left: -120px;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: var(--orb-3);
  bottom: 10%;
  right: 10%;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 10000;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 12px 0 22px;
  background: transparent;
  transition: background 0.3s ease;
}

.site-nav.is-scrolled {
  background: var(--nav-scrolled);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 16px 10px 10px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.preloader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-avatar {
  position: relative;
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
}

.splash-avatar img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 5px solid var(--bg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.splash-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: orbit 2.4s linear infinite;
}

.splash-arc,
.splash-tick {
  fill: none;
  stroke: var(--gold);
  stroke-width: 5;
  stroke-linecap: round;
}

.splash-arc {
  stroke-dasharray: 205 78;
}

.splash-tick {
  stroke-dasharray: 20 263;
  stroke-dashoffset: -222;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.brand strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 6px;
  margin-inline-start: auto;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--muted);
  border-radius: 999px;
  transition: 0.25s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--cream);
  background: var(--gold-dim);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: 0.25s;
}

.nav-cta:hover {
  background: var(--gold-2);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  min-width: 42px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--cream);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.theme-toggle {
  position: relative;
  width: 62px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 12px;
}

.theme-toggle i {
  position: relative;
  z-index: 1;
  width: 14px;
  text-align: center;
  transition: opacity 0.2s, color 0.2s;
}

.theme-toggle .fa-sun { color: var(--cream); }
.theme-toggle .fa-moon { opacity: 0.4; }

html[data-theme="dark"] .theme-toggle .fa-sun { color: var(--gold); opacity: 0.4; }
html[data-theme="dark"] .theme-toggle .fa-moon { color: var(--gold-2); opacity: 1; }

.theme-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 4px 10px rgba(0,0,0,0.16);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] .theme-thumb {
  transform: translateX(28px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--cream);
  margin: 5px auto;
  transition: 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 90px;
  right: 16px;
  left: 16px;
  z-index: 999;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--cream);
}

.mobile-menu a:hover,
.menu-wa {
  background: var(--gold-dim);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}

.menu-overlay.open {
  display: block;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
}

h1, h2, h3 {
  line-height: 1.1;
  font-weight: 600;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 92px);
  margin: 22px 0 18px;
  letter-spacing: -0.02em;
}

h1 em,
h2 em {
  font-style: italic;
  color: var(--gold);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  margin: 14px 0 16px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 540px;
}

.gold-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--gold);
  font-weight: 600;
  line-height: 1;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-sub {
  margin-top: 16px;
  color: var(--text-soft);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: 0.25s;
}

.btn-gold {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #fff;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.32);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.42);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.hero-meta {
  display: flex;
  gap: 28px;
  padding-top: 8px;
}

.hero-meta b {
  display: block;
  font-size: 15px;
}

.hero-meta span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 68%);
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  50% { transform: scale(1.12); opacity: 0.75; }
}

.hero-frame img {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 40px rgba(14, 116, 144, 0.18));
  animation: floaty 5s ease-in-out infinite;
}

html[data-theme="dark"] .hero-frame img {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
}

@keyframes floaty {
  50% { transform: translateY(-12px); }
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.float-chip i {
  color: var(--gold);
}

.chip-1 { top: 18%; left: 0; animation: floaty 4.5s ease-in-out infinite; }
.chip-2 { top: 48%; right: 0; animation: floaty 5.5s ease-in-out infinite; }
.chip-3 { bottom: 16%; left: 8%; animation: floaty 6s ease-in-out infinite; }

.clients {
  position: relative;
  z-index: 1;
  padding: 20px 0 50px;
}

.clients-label {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.marquee {
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  gap: 16px;
  padding-inline-end: 16px;
  flex-shrink: 0;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.brand-card {
  flex: 0 0 auto;
  width: 170px;
  height: 86px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 12px 16px;
  box-shadow: 0 8px 20px rgba(14, 116, 144, 0.08);
}

.brand-card img {
  max-height: 58px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.about,
.services,
.skills,
.journey,
.contact {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.erp-wrap {
  background: radial-gradient(circle at center, var(--erp-from), var(--erp-to) 72%);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.about-copy p,
.section-lead {
  color: var(--muted);
  margin-bottom: 14px;
}

.industry-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.industry-pills span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--gold-2);
  background: var(--gold-dim);
}

.stats {
  position: relative;
  z-index: 1;
  padding: 10px 0 40px;
}

.stats-grid,
.services-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card,
.service-card,
.time-card,
.info-card,
.contact-form.wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

html[data-theme="light"] .stat-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .time-card,
html[data-theme="light"] .info-card,
html[data-theme="light"] .contact-form.wrap {
  box-shadow: 0 12px 40px rgba(14, 116, 144, 0.08);
}

.stat-card {
  padding: 32px 22px;
  text-align: center;
  transition: 0.3s;
}

.stat-card:hover,
.service-card:hover,
.time-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.stat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  font-size: 22px;
}

.stat-card:nth-child(2) .stat-icon { background: var(--blue); color: #fff; }
.stat-card:nth-child(3) .stat-icon { background: var(--rose); color: #fff; }
.stat-card:nth-child(4) .stat-icon { background: var(--green); color: #fff; }

.stat-num {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--cream);
}

.stat-card p {
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

html[data-theme="light"] .services {
  background: rgba(255, 255, 255, 0.35);
}

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

.service-card {
  padding: 32px 28px 36px;
}

.service-ico {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.service-ico.gold { background: rgba(56,189,248,0.18); color: var(--gold-2); }
.service-ico.blue { background: rgba(14,165,233,0.16); color: var(--blue); }
.service-ico.rose { background: rgba(12,74,110,0.12); color: var(--rose); }
.service-ico.green { background: rgba(18,185,129,0.16); color: var(--green); }

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.skills-grid {
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
}

.skill-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.skill-top img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.skill-top .duo {
  display: flex;
  gap: 4px;
}

.skill-top .duo img {
  width: 28px;
}

.skill-top span {
  font-weight: 500;
}

.skill-top b {
  margin-inline-start: auto;
  color: var(--gold);
  font-weight: 600;
  font-size: 13px;
}

.skill-bar {
  height: 6px;
  background: var(--skill-track);
  border-radius: 99px;
  overflow: hidden;
}

.skill-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.time-card {
  padding: 28px;
}

.time-flag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.time-card h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: 28px;
}

.time-card p {
  color: var(--muted);
}

.contact-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  min-height: 92px;
  transition: 0.25s;
}

.info-card:hover {
  border-color: var(--gold);
}

.info-card i {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: #fff;
  flex-shrink: 0;
}

.info-card:nth-child(2) i { background: var(--blue); color: #fff; }
.info-card:nth-child(3) i { background: var(--rose); color: #fff; }
.info-card:nth-child(4) i { background: var(--green); color: #fff; }

.info-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.info-card strong {
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-art {
  background: #edf3fb;
  border-radius: 32px;
  padding: 20px;
  display: grid;
  place-items: center;
}

.contact-form.wrap {
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 14px;
}

label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  transition: 0.2s;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

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

.form-note {
  margin-top: 12px;
  font-size: 14px;
  min-height: 22px;
}

.form-note.ok { color: var(--green); }
.form-note.err { color: var(--rose); }

.map-wrap {
  position: relative;
  z-index: 1;
  height: 380px;
  background: var(--map-bg);
}

.map-wrap iframe {
  filter: var(--map-filter);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer {
  position: relative;
  z-index: 1;
  background: var(--footer-bg);
  color: #e8f2f7;
  border-top: 3px solid var(--gold);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer p,
.footer li {
  color: #9aa3b5;
  font-size: 14px;
  list-style: none;
  margin-bottom: 8px;
}

.footer h4,
.footer .brand strong,
.footer a {
  color: #e8f2f7;
}

.footer h4 {
  margin-bottom: 16px;
  font-size: 16px;
}

.footer a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding: 18px 0;
  text-align: center;
}

.wa-fab,
.to-top {
  position: fixed;
  right: 22px;
  z-index: 1200;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.wa-fab {
  bottom: 88px;
  background: #25d366;
}

.to-top {
  bottom: 24px;
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  color: #fff;
  border: 0;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.in {
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.32s; }

.reveal.in.delay-1 { animation-delay: 0.12s; }
.reveal.in.delay-2 { animation-delay: 0.22s; }
.reveal.in.delay-3 { animation-delay: 0.32s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

html[dir="rtl"] body {
  font-family: "Cairo", var(--font);
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: "Cairo", sans-serif;
}

html[dir="rtl"] .wa-fab,
html[dir="rtl"] .to-top {
  right: auto;
  left: 22px;
}

html[dir="rtl"] .nav-toggle {
  margin-inline-start: 0;
}

@media (max-width: 1024px) {
  html[dir="rtl"] .nav-tools {
    margin-inline-start: auto;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-tools {
    margin-inline-start: auto;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .nav-toggle {
    display: block;
    margin-left: 0;
  }

  .stats-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-frame {
    min-height: 360px;
  }

  .hero {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-frame img, .hero-glow, .float-chip, .marquee-track, .splash-orbit {
    animation: none !important;
  }
  .js .reveal, .js .reveal.in {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 680px) {
  .stats-grid,
  .services-grid,
  .skills-grid,
  .contact-top,
  .timeline,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    flex-direction: column;
    gap: 12px;
  }

  .float-chip {
    display: none;
  }

  .contact-form.wrap {
    padding: 22px;
  }

  .site-nav {
    top: 0;
    padding-top: 8px;
  }

  h1 {
    font-size: 48px;
  }
}
