/* Amr Atef — Brand identity (cyan tech) */
:root {
  --Primary: #00d4ff;
  --Secondary: #4ecdc4;
  --Bg-dark: #05070d;
  --Bg-light: #eef4f8;
  --Text-light: #ffffff;
  --Text-primary: #0b1624;
  --Text-muted: #9aadc2;
  --body-text: #7a8fa3;
  --Line: rgba(0, 212, 255, 0.18);
  --glow: rgba(0, 212, 255, 0.35);
  --pill-text: #041018;
  --Bg-linear: linear-gradient(123.51deg, rgba(0, 212, 255, 0.03) -61.8%, rgba(0, 212, 255, 0.1) 100%);
  --Bg-linear-2: linear-gradient(123.51deg, rgba(0, 212, 255, 0.08) -61.8%, rgba(0, 212, 255, 0.02) 100%);
  --font: "Epilogue", system-ui, sans-serif;
  --font-ar: "Cairo", "Epilogue", sans-serif;
  --container: 1200px;
  --radius: 16px;
  --header-h: 88px;
}

[data-theme="light"] {
  --Bg-dark: #f3f4f2;
  --Text-light: #121212;
  --Text-muted: #616161;
  --body-text: #555;
  --Line: rgba(0, 0, 0, 0.08);
  --Bg-linear: linear-gradient(123.51deg, rgba(0, 0, 0, 0.02) -61.8%, rgba(0, 0, 0, 0.05) 100%);
  --Bg-linear-2: linear-gradient(123.51deg, rgba(255, 255, 255, 0.7) -61.8%, rgba(255, 255, 255, 0.35) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--Text-muted);
  background: var(--Bg-dark);
  overflow-x: clip;
}

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

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

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, strong {
  color: var(--Text-light);
  font-weight: 700;
  line-height: 1.2;
}

/* —— Perspective grid background —— */
.bg-perspective {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--Bg-dark);
}

.bg-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  top: -40%;
  bottom: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(700px) rotateX(58deg) translateY(-8%);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  animation: gridDrift 28s linear infinite;
}

[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(0, 212, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 40%, rgba(0, 212, 255, 0.06), transparent 70%);
}

/* Davies-style cursor trail */
#trail {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  pointer-events: none;
  display: none;
}

@media (min-width: 1200px) and (hover: hover) and (pointer: fine) {
  #trail { display: block; }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 72px, 72px 0; }
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 20px 0;
}

.header-pill {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 10px;
  border-radius: 160px;
  background: var(--Bg-linear-2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--Line);
}

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

.header-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(0, 212, 255, 0.35);
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-brand-text strong {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-brand-text em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 22px;
}

.nav-swap {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  color: var(--Text-muted);
}

.nav-swap span {
  display: block;
  transition: transform 0.35s cubic-bezier(0.24, 0.74, 0.58, 1);
}

.nav-swap span:last-child {
  color: var(--Primary);
}

.nav-swap:hover span,
.nav-swap[data-active="true"] span {
  transform: translateY(-100%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-hire {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--Primary);
  color: #041018;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-hire:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--Line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--Text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-btn:hover {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.35);
}

.menu-btn {
  flex-direction: column;
  gap: 5px;
}

.menu-btn i {
  display: block;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

@media (min-width: 1100px) {
  .header-nav { display: flex; }
  .menu-btn { display: none; }
}

/* —— Layout —— */
.page-shell {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 60px;
}

.main-content {
  min-width: 0;
  width: 100%;
}

/* About: profile only in this block (scrolls away — not site-wide sticky) */
.about-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 992px) {
  .about-block {
    grid-template-columns: minmax(260px, 34%) 1fr;
    gap: 36px;
  }
  html[dir="rtl"] .about-block {
    grid-template-columns: 1fr minmax(260px, 34%);
  }
  html[dir="rtl"] .about-block .profile-card {
    order: 2;
  }
  html[dir="rtl"] .about-block .about-copy {
    order: 1;
  }
}

.about-copy {
  min-width: 0;
}

/* —— Profile card —— */
.profile-card {
  position: relative;
  top: auto;
  padding: 22px;
  border-radius: 28px;
  background: var(--Bg-linear-2);
  border: 1px solid var(--Line);
  border-top-color: rgba(255, 255, 255, 0.14);
  text-align: center;
  backdrop-filter: blur(10px);
}

.profile-photo {
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  margin-bottom: 20px;
  background: #1a1a1a;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin: 0 0 6px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

.profile-role {
  margin: 0 0 14px;
  color: var(--Primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-email {
  display: block;
  margin-bottom: 6px;
  color: var(--Text-light);
  font-size: 14px;
  font-weight: 500;
  word-break: break-all;
}

.profile-email:hover {
  color: var(--Primary);
}

.profile-based {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--body-text);
}

.profile-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--Line);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--Text-light);
  transition: all 0.25s ease;
}

.profile-social a:hover {
  background: var(--Primary);
  color: #041018;
  border-color: var(--Primary);
}

.profile-social a.social-wa {
  color: var(--Text-light);
  border-color: var(--Line);
}

.profile-social a.social-wa:hover {
  background: var(--Primary);
  color: #041018;
  border-color: var(--Primary);
}

.btn-hire,
.btn-primary {
  gap: 8px;
}

.btn-hire svg,
.btn-primary svg {
  flex-shrink: 0;
}

.profile-cv {
  margin-top: 18px;
  width: 100%;
}

/* —— Sections —— */
.main-content {
  min-width: 0;
  width: 100%;
}

.section {
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--Line);
}

.section:last-of-type {
  border-bottom: none;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--Line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--Text-muted);
}

.sec-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--Primary);
  animation: flicker 0.9s infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.sec-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.sec-desc {
  margin: 0 0 22px;
  color: var(--Text-muted);
  font-size: 14px;
  max-width: 56ch;
  line-height: 1.6;
}

/* Title border / selection box */
.title-border-shape {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding: 10px 16px;
  margin-bottom: 18px;
}

.title-border-shape .shape span {
  position: absolute;
  display: block;
  height: 10px;
  width: 10px;
  background: var(--Text-light);
  border: 2px solid var(--Primary);
  z-index: 1;
}

.title-border-shape .shape-1 { left: -6px; top: -6px; }
.title-border-shape .shape-2 { right: -4px; top: -6px; }
.title-border-shape .shape-3 { right: -4px; bottom: -4px; }
.title-border-shape .shape-4 { left: -6px; bottom: -6px; }

.title-border-shape .line-horizontal {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--Primary);
}

.title-border-shape .line-horizontal.top { top: 0; }
.title-border-shape .line-horizontal.bottom { bottom: 0; }

.title-border-shape .line-vertical {
  position: absolute;
  top: 0;
  height: 100%;
  width: 1px;
  background: var(--Primary);
}

.title-border-shape .line-vertical.left { left: 0; }
.title-border-shape .line-vertical.right { right: 0; }

.hello-line {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  color: var(--Text-light);
}

.hello-prefix {
  display: inline-block;
  margin-inline-end: 0.35em;
  transition: opacity 0.35s ease, filter 0.35s ease, max-width 0.35s ease, margin 0.35s ease;
  max-width: 20ch;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}

.hello-prefix.is-gone {
  opacity: 0;
  filter: blur(4px);
  max-width: 0;
  margin-inline-end: 0;
  pointer-events: none;
}

.intro-typed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

html[dir="rtl"] .intro-typed {
  align-items: flex-start;
}

.role-rotate,
#typed-job-title {
  color: var(--Primary);
  display: inline;
  font-weight: 700;
  min-width: 0;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 4px;
  background: var(--Primary);
  vertical-align: -2px;
  animation: cursorBlink 0.75s infinite;
}

.typing-cursor.is-hidden {
  display: none;
}

@keyframes cursorBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

.intro-tagline {
  margin: 12px 0 0;
  max-width: 42ch;
  min-height: 1.55em;
  font-size: clamp(14px, 1.85vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--body-text);
  opacity: 0.9;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.blur-fade {
  display: inline-block;
  background: linear-gradient(90deg, var(--Text-light) 20%, rgba(166, 167, 174, 0.25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: blur(0.2px);
  opacity: 0.85;
}

.about-bio {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: 15px;
  color: var(--body-text);
}

/* Counters */
.stats-banner-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin: 28px 0 22px;
  padding: 8px 0 6px;
}

@media (min-width: 720px) {
  .stats-banner-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

.stats-banner {
  text-align: center;
}

.stats-banner-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--Text-light);
}

.stats-banner-kicker i {
  font-style: normal;
  color: var(--Primary);
  font-weight: 800;
}

.stats-banner-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin: 0 0 10px;
  font-size: clamp(40px, 6vw, 56px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--Text-light);
}

.stats-banner-value em {
  font-style: normal;
  color: var(--Primary);
  font-weight: 800;
}

.stats-banner p {
  margin: 0 auto;
  max-width: 22ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--Text-muted);
}

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

@media (min-width: 640px) {
  .counter-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.counter-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  border-top: 1px solid var(--Line);
  background: var(--Bg-linear-2);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.counter-card:hover {
  border-color: var(--Line);
  transform: translateY(-2px);
}

.counter-card .stat-value-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  margin-bottom: 6px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.04em;
  color: var(--Text-light);
}

.counter-card .stat-value {
  display: inline;
  margin-bottom: 0;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
}

.counter-card .stat-value-wrap em {
  font-style: normal;
  color: var(--Primary);
  font-weight: 800;
}

.counter-card span {
  display: block;
  font-size: 13px;
  color: var(--body-text);
}

/* Timeline */
.timeline-group + .timeline-group {
  margin-top: 36px;
}

.timeline-group-title {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--Primary);
}

.resume-more {
  margin-top: 8px;
}

.resume-more-toggle,
.services-more-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(0, 200, 240, 0.28);
  background: linear-gradient(180deg, rgba(0, 200, 240, 0.08), rgba(8, 14, 24, 0.75));
  color: var(--Text-light);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.resume-more-toggle:hover,
.services-more-toggle:hover {
  border-color: rgba(0, 200, 240, 0.55);
  transform: translateY(-1px);
}

.resume-more-copy,
.services-more-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.resume-more-copy strong,
.services-more-copy strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--Text-light);
}

.resume-more-copy em,
.services-more-copy em {
  font-style: normal;
  font-size: 13px;
  color: var(--body-text);
}

.resume-more-arrow,
.services-more-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--Primary);
  background: rgba(0, 200, 240, 0.1);
  border: 1px solid rgba(0, 200, 240, 0.28);
  transition: transform 0.28s ease, background 0.25s ease;
}

.resume-more.is-open .resume-more-arrow,
.services-more.is-open .services-more-arrow {
  transform: rotate(180deg);
  background: rgba(0, 200, 240, 0.18);
}

.resume-more-panel,
.services-more-panel {
  display: none;
  margin-top: 0;
  margin-bottom: 4px;
}

.resume-more.is-open .resume-more-panel,
.resume-more-panel:not([hidden]),
.services-more.is-open .services-more-panel,
.services-more-panel:not([hidden]) {
  display: block;
  margin-top: 4px;
  margin-bottom: 14px;
}

.services-more {
  margin-top: 8px;
}

.resume-more-timeline {
  margin-top: 0;
}

.timeline {
  position: relative;
  padding-inline-start: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--Line);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 22px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  inset-inline-start: -16px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--Primary);
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.15);
}

.timeline-body {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--Bg-linear-2);
  border: 1px solid transparent;
  border-top: 1px solid var(--Line);
  transition: border-color 0.25s ease;
}

.timeline-body:hover {
  border-color: var(--Line);
}

.timeline-date {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--Primary);
  font-weight: 600;
}

.timeline-body h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.timeline-place {
  margin: 0 0 8px;
  color: var(--Text-muted);
  font-size: 13px;
}

.timeline-body p:last-child {
  margin: 0;
  color: var(--body-text);
  font-size: 14px;
}

/* Services — collapsible drawer */
.services-drawer {
  margin-top: 8px;
}

.services-drawer-toggle {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  background: linear-gradient(120deg, rgba(0, 212, 255, 0.1), rgba(5, 7, 13, 0.92) 45%, rgba(0, 212, 255, 0.06));
  color: var(--Text-light);
  cursor: pointer;
  overflow: hidden;
  text-align: start;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.services-drawer-toggle:hover {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.16);
  transform: translateY(-1px);
}

.services-drawer-glow {
  position: absolute;
  inset: auto -20% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.services-drawer-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.services-drawer-count {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #041018;
  background: linear-gradient(135deg, var(--Primary), var(--Secondary));
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
}

.services-drawer-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.services-drawer-copy strong {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--Text-light);
}

.services-drawer-copy em {
  font-style: normal;
  font-size: 13px;
  color: var(--Text-muted);
}

.services-drawer-arrow {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--Primary);
  background: rgba(0, 212, 255, 0.08);
  transition: transform 0.35s ease, background 0.25s ease, color 0.25s ease;
}

.services-drawer.is-open .services-drawer-arrow {
  transform: rotate(180deg);
  background: var(--Primary);
  color: #041018;
}

.services-drawer-panel {
  display: none;
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid var(--Line);
  background: rgba(8, 14, 24, 0.55);
  overflow: hidden;
}

.services-drawer.is-open .services-drawer-panel,
.services-drawer-panel:not([hidden]) {
  display: block;
  animation: servicesReveal 0.4s ease;
}

@keyframes servicesReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

.service-list {
  display: flex;
  flex-direction: column;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 14px;
  border-top: 1px solid var(--Line);
  transition: background 0.25s ease, padding 0.25s ease;
}

.service-row:first-child {
  border-top: 0;
}

.service-row:hover {
  background: var(--Bg-linear-2);
  padding-inline: 18px;
}

.service-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--Text-light);
  letter-spacing: -0.03em;
  min-width: 48px;
}

.service-copy h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.service-copy p {
  margin: 0;
  font-size: 13px;
  color: var(--body-text);
}

.service-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--Line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--Text-light);
  transition: all 0.25s ease;
}

.service-row:hover .service-arrow {
  background: var(--Primary);
  color: #041018;
  border-color: var(--Primary);
}

html[dir="rtl"] .service-arrow {
  transform: scaleX(-1);
}

/* Portfolio — equal rectangles in one fixed auto-moving row */
.portfolio-section {
  overflow: hidden;
}

.sec-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.shot-hint {
  margin: 0 0 18px;
  color: var(--Text-muted);
  font-size: 14px;
  max-width: 56ch;
  line-height: 1.6;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 28px;
}

.platform-tab {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 22, 0.9);
  color: var(--Text-light);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.platform-tab:hover {
  border-color: rgba(0, 212, 255, 0.45);
}

.platform-tab.is-active {
  background: #e8ebe4;
  color: #0b0f14;
  border-color: #e8ebe4;
}

.platform-tab.is-empty:not(.is-active) {
  opacity: 0.72;
}

[data-theme="light"] .platform-tab {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #111;
}

[data-theme="light"] .platform-tab.is-active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.platform-groups {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.platform-group[hidden] {
  display: none !important;
}

.platform-group-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.platform-group-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 750;
  color: var(--Text-light);
  letter-spacing: -0.02em;
}

.platform-count {
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--Text-light);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--Line);
}

.platform-empty {
  margin: 0;
  padding: 22px 20px;
  border: 1px dashed var(--Line);
  border-radius: 14px;
  color: var(--Text-muted, rgba(232, 235, 228, 0.62));
  font-size: 14px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .platform-empty {
  color: rgba(17, 17, 17, 0.55);
  background: rgba(0, 0, 0, 0.02);
}

.shot-rail {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: rgba(5, 7, 13, 0.65);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.shot-rail::before,
.shot-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.shot-rail::before {
  inset-inline-start: 0;
  background: linear-gradient(to right, rgba(5, 7, 13, 0.95), transparent);
}
.shot-rail::after {
  inset-inline-end: 0;
  background: linear-gradient(to left, rgba(5, 7, 13, 0.95), transparent);
}
html[dir="rtl"] .shot-rail::before {
  background: linear-gradient(to left, rgba(5, 7, 13, 0.95), transparent);
}
html[dir="rtl"] .shot-rail::after {
  background: linear-gradient(to right, rgba(5, 7, 13, 0.95), transparent);
}

.shot-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 16px;
  animation: shotMarquee var(--shot-duration, 90s) linear infinite;
}

html[dir="rtl"] .shot-track {
  animation-name: shotMarqueeRtl;
}

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

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

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

.shot-card {
  margin: 0;
  flex: 0 0 auto;
  width: min(420px, 72vw);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--Line);
  background: #0a101a;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.shot-card:hover,
.shot-card:focus-visible {
  border-color: rgba(0, 212, 255, 0.55);
  box-shadow: 0 16px 40px rgba(0, 212, 255, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.shot-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.shot-protect,
.shot-protect img,
.shot-lightbox-canvas {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}

.shot-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.shot-open-hint {
  position: absolute;
  inset-inline-end: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #041018;
  background: rgba(0, 212, 255, 0.92);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shot-card:hover .shot-open-hint,
.shot-card:focus-visible .shot-open-hint {
  opacity: 1;
  transform: none;
}

.shot-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--Line);
  background: rgba(5, 7, 13, 0.9);
  pointer-events: none;
}

.shot-card figcaption span {
  font-size: 12px;
  font-weight: 800;
  color: var(--Primary);
  font-variant-numeric: tabular-nums;
}

.shot-card figcaption strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--Text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Fullscreen lightbox */
.shot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(2, 4, 10, 0.92);
  backdrop-filter: blur(10px);
}

.shot-lightbox[hidden] {
  display: none !important;
}

.shot-lightbox-blank {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.05s linear;
}

.shot-lightbox.is-blank .shot-lightbox-blank {
  opacity: 1;
}

.shot-lightbox-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  z-index: 6;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.35);
  background: rgba(5, 7, 13, 0.9);
  color: var(--Text-light);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox-close:hover {
  background: var(--Primary);
  color: #041018;
}

.shot-lightbox-stage {
  position: relative;
  z-index: 2;
  width: min(1100px, 94vw);
  max-height: min(78vh, 820px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 212, 255, 0.12);
}

.shot-lightbox-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 820px);
  margin: 0 auto;
  background: #000;
}

.shot-watermark {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -28deg,
    transparent 0 72px,
    rgba(0, 212, 255, 0.045) 72px 73px
  );
  opacity: 0.9;
}

.shot-watermark::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  transform: rotate(-18deg);
  white-space: nowrap;
}

.shot-guard {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: transparent;
}

.shot-lightbox-caption {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--Text-muted);
  font-size: 14px;
  text-align: center;
}

@media print {
  .shot-lightbox,
  .shot-rail,
  .shot-card {
    display: none !important;
  }
  body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: #000;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .shot-card { width: min(100%, 420px); }
}

/* legacy grid (unused) */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  margin: 0;
}

.project-media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--Line);
  background: #1a1a1a;
  aspect-ratio: 16 / 11;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.04);
}

.project-tags {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tags span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--Text-light);
}

/* Success stories — pill + linked author box (reference exact) */
.stories-rail {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 8px 0 12px;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}

.stories-track {
  display: flex;
  align-items: flex-start;
  gap: 36px;
  width: max-content;
  padding: 8px 10px 6px;
  animation: storiesMarquee 100s linear infinite;
}

html[dir="rtl"] .stories-track {
  animation-name: storiesMarqueeRtl;
}

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

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

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

.story-unit {
  position: relative;
  flex: 0 0 auto;
  width: min(560px, 90vw);
  padding-bottom: 78px;
}

.story-bubble {
  position: relative;
  z-index: 1;
  padding: 20px 28px 26px;
  border-radius: 999px;
  background: #0b101a;
  border: 1px solid rgba(0, 212, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.06),
    0 0 32px rgba(0, 212, 255, 0.14),
    0 18px 40px rgba(0, 0, 0, 0.4);
  min-height: 132px;
}

.story-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.12);
}

.story-stars .is-on {
  color: var(--Primary);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.65);
}

.story-quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(236, 244, 252, 0.92);
}

/* L-connector: down then across into author box */
.story-link {
  position: absolute;
  z-index: 0;
  top: calc(100% - 78px);
  inset-inline-start: 18%;
  width: 140px;
  height: 56px;
  color: rgba(190, 210, 230, 0.85);
  filter: drop-shadow(0 0 4px rgba(0, 212, 255, 0.35));
  pointer-events: none;
  overflow: visible;
}

html[dir="rtl"] .story-link {
  transform: scaleX(-1);
  transform-origin: center;
}

.story-who {
  position: absolute;
  z-index: 2;
  left: 34%;
  bottom: 8px;
  min-width: 168px;
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 12px;
  background: #0b101a;
  border: 1px solid rgba(0, 212, 255, 0.45);
  box-shadow:
    0 0 18px rgba(0, 212, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .story-who {
  left: auto;
  right: 34%;
}

.story-who strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.story-who em {
  display: block;
  margin-top: 3px;
  font-style: normal;
  font-size: 12px;
  color: var(--Text-muted);
}

@media (max-width: 720px) {
  .story-unit {
    width: min(360px, 92vw);
    padding-bottom: 72px;
  }
  .story-bubble {
    border-radius: 32px;
    padding: 16px 18px 20px;
    min-height: 120px;
  }
  .story-link {
    inset-inline-start: 12%;
    width: 110px;
  }
  .story-who {
    left: 28%;
    min-width: 140px;
  }
  html[dir="rtl"] .story-who {
    right: 28%;
  }
  .stories-track {
    gap: 22px;
    animation-duration: 80s;
  }
}

.testimonial-slider { display: none; }

/* Pricing */
.pricing-tabs {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--Line);
  margin-bottom: 22px;
  gap: 4px;
}

.pricing-tab {
  border: 0;
  background: transparent;
  color: var(--Text-muted);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pricing-tab.is-active {
  background: var(--Primary);
  color: #041018;
}

.pricing-panel {
  display: none;
  padding: 26px;
  border-radius: 20px;
  background: var(--Bg-linear-2);
  border: 1px solid var(--Line);
}

.pricing-panel.is-active {
  display: block;
  animation: fadeUp 0.35s ease;
}

.pricing-panel h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.pricing-panel > p {
  margin: 0 0 18px;
  color: var(--body-text);
}

.pricing-panel ul {
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.pricing-panel li {
  position: relative;
  padding-inline-start: 22px;
  color: var(--Text-muted);
  font-size: 14px;
}

.pricing-panel li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--Primary);
}

/* Contact */
.contact-headline {
  max-width: 12ch;
}

.contact-mail {
  display: inline-block;
  margin-bottom: 6px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  color: var(--Text-light);
  letter-spacing: -0.02em;
}

.contact-mail:hover {
  color: var(--Primary);
}

.contact-based {
  margin: 0 0 28px;
  color: var(--body-text);
  font-size: 14px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 720px) {
  .contact-form {
    grid-template-columns: 1fr 1fr;
  }
  .contact-form .full,
  .contact-form .send-btn,
  .contact-form .form-status,
  .contact-form .budget-field {
    grid-column: 1 / -1;
  }
}

.contact-form label,
.budget-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label > span,
.budget-field > span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--Text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--Line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--Text-light);
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(0, 212, 255, 0.55);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.budget-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.budget-chip {
  border: 1px solid var(--Line);
  background: transparent;
  color: var(--Text-muted);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.budget-chip:hover,
.budget-chip.is-active {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--Primary);
  color: var(--Primary);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--Primary);
  color: #041018;
  border: 0;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--Line);
  color: var(--Text-light);
}

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

.send-btn {
  width: fit-content;
  min-width: 180px;
}

.form-status {
  margin: 0;
  font-size: 14px;
}

.form-status.is-ok { color: var(--Primary); }
.form-status.is-err { color: #ff6b6b; }

.site-foot {
  padding: 28px 0 8px;
  font-size: 13px;
  color: var(--body-text);
}

/* Reference-style site footer */
.site-footer {
  margin-top: 64px;
  padding: 48px 0 28px;
  border-top: 1px solid rgba(0, 212, 255, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(160px, 0.9fr) 0.85fr 1.15fr 1.25fr;
    gap: 28px 40px;
  }
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--Primary);
  color: #041018;
  font-weight: 800;
  font-size: 14px;
  width: fit-content;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.footer-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.footer-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #051018;
}

.footer-heading {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--Text-muted);
}

.footer-links,
.footer-services {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-services a {
  color: var(--Text-light);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-services a:hover {
  color: var(--Primary);
}

.footer-col-services {
  position: relative;
  padding-inline-end: 28px;
}

.footer-corner-arrow {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  color: var(--Primary);
  font-size: 18px;
  line-height: 1;
}

.footer-ask {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.footer-phone-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.35);
  color: var(--Primary);
  flex: 0 0 auto;
}

.footer-ask strong {
  display: block;
  font-size: 14px;
  color: var(--Text-light);
  margin-bottom: 4px;
}

.footer-ask a {
  font-size: 13px;
  color: var(--Text-muted);
}

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

.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  color: var(--Primary);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer-social a:hover,
.footer-top:hover {
  background: var(--Primary);
  color: #041018;
}

.footer-top {
  margin-inline-start: auto;
}

.footer-copy {
  margin: 36px 0 0;
  font-size: 13px;
  color: var(--Text-muted);
}

.footer-copy a {
  color: var(--Text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[dir="rtl"] .footer-badge {
  padding: 8px 8px 8px 16px;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 40px;
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  font-size: 28px;
  font-weight: 700;
  color: var(--Text-light);
}

.mobile-menu a:hover {
  color: var(--Primary);
}

[data-theme="light"] .mobile-menu {
  background: rgba(248, 247, 244, 0.97);
}

/* Reveal / motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(4px);
  transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

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

/* Theme icon swap */
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* RTL tweaks */
html[dir="rtl"] .header-pill {
  padding: 10px 10px 10px 14px;
}

html[dir="rtl"] .header-brand-text {
  text-align: right;
}

.section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* —— Phones & small tablets (iOS + Android) —— */
@media (max-width: 900px) {
  :root {
    --header-h: 76px;
  }

  .site-header {
    padding: max(10px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  }

  .header-pill {
    gap: 8px;
    padding: 8px;
    border-radius: 28px;
  }

  html[dir="rtl"] .header-pill {
    padding: 8px;
  }

  .header-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
  }

  .header-avatar {
    width: 36px;
    height: 36px;
  }

  .header-brand-text strong {
    font-size: 13px;
  }

  .header-brand-text em {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .btn-hire {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .btn-hire span {
    display: none;
  }

  .btn-hire svg {
    width: 18px;
    height: 18px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .page-shell {
    padding: 18px max(16px, env(safe-area-inset-right, 0px)) max(52px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }

  .section {
    padding: 28px 0 36px;
  }

  .about-block {
    gap: 20px;
  }

  .profile-card {
    padding: 16px;
    border-radius: 20px;
  }

  .profile-photo {
    aspect-ratio: 1;
    margin-bottom: 14px;
    border-radius: 16px;
  }

  .profile-name {
    font-size: 22px;
  }

  .profile-role {
    font-size: 12px;
    line-height: 1.35;
  }

  .profile-social {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .profile-social a {
    width: 38px;
    height: 38px;
  }

  .title-border-shape {
    padding: 14px 12px;
  }

  .hello-line {
    font-size: clamp(16px, 4.4vw, 20px);
    line-height: 1.45;
  }

  .intro-tagline {
    max-width: none;
    font-size: clamp(13px, 3.6vw, 15px);
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .blur-fade {
    filter: none;
    opacity: 1;
    background: linear-gradient(90deg, var(--Text-light) 30%, rgba(166, 167, 174, 0.55) 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .about-bio {
    font-size: 14px;
    line-height: 1.65;
    max-width: none;
  }

  .stats-banner-grid {
    gap: 16px;
    margin: 18px 0 12px;
    padding: 0;
  }

  .stats-banner-value {
    font-size: clamp(30px, 9vw, 42px);
    margin-bottom: 6px;
  }

  .stats-banner-kicker {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .stats-banner p {
    font-size: 12px;
    max-width: none;
  }

  .counter-grid {
    gap: 10px;
  }

  .counter-card {
    padding: 14px 12px;
  }

  .counter-card strong {
    font-size: clamp(20px, 6vw, 26px);
  }

  .timeline-body {
    padding: 14px 14px 16px;
  }

  .timeline-body h3 {
    font-size: 15px;
    line-height: 1.35;
  }

  .service-row {
    gap: 10px;
    padding: 14px 4px;
  }

  .service-copy h3 {
    font-size: 15px;
  }

  .service-copy p {
    font-size: 13px;
  }

  .resume-more-toggle,
  .services-more-toggle {
    padding: 14px 14px;
    gap: 12px;
  }

  .resume-more-arrow,
  .services-more-arrow {
    width: 36px;
    height: 36px;
  }

  .shot-card {
    width: min(280px, 78vw);
  }

  .pricing-card {
    padding: 20px 18px;
  }

  .contact-form {
    gap: 12px;
  }

  .mobile-menu {
    padding: max(28px, env(safe-area-inset-top, 0px)) 24px max(28px, env(safe-area-inset-bottom, 0px));
  }

  .mobile-menu a {
    font-size: clamp(22px, 7vw, 28px);
  }

  .footer-grid {
    gap: 24px;
  }

  .sec-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .platform-tabs {
    gap: 8px;
    margin-bottom: 22px;
  }

  .platform-tab {
    padding: 9px 12px;
    font-size: 12px;
    border-radius: 10px;
  }

  .platform-groups {
    gap: 26px;
  }

  .platform-group-title {
    font-size: clamp(20px, 6vw, 26px);
  }
}

@media (max-width: 480px) {
  :root {
    --header-h: 70px;
  }

  .header-brand-text strong {
    max-width: 18ch;
  }

  .page-shell {
    padding-inline: max(14px, env(safe-area-inset-left, 0px)) max(14px, env(safe-area-inset-right, 0px));
  }

  .profile-cv {
    width: 100%;
    justify-content: center;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-grid { animation: none; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .typing-cursor { animation: none; opacity: 1; }
  .intro-tagline {
    opacity: 0.9;
  }
}
