:root {
  --bg: #0c1414;
  --bg-2: #111f1d;
  --surface: #142522;
  --surface-2: #182f2b;
  --ink: #eaf7f5;
  --muted: #a8c8c2;
  --accent: #1fc7a8;
  --accent-2: #66f2d1;
  --accent-3: #0c8b7f;
  --stroke: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html,
body {
  scroll-snap-type: y proximity;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  font-family: "Outfit", "Noto Kufi Arabic", sans-serif;
  background: radial-gradient(circle at top right, #12302c 0%, var(--bg) 55%, #070e0d 100%);
  color: var(--ink);
  line-height: 1.6;
  animation: pulseGlow 1.8s ease-in-out infinite;
  overflow-x: hidden;
  padding-top: 70px;
}

.glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(31, 199, 168, 0.22), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(12, 139, 127, 0.18), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(102, 242, 209, 0.16), transparent 50%);
  z-index: -1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 20, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
  flex-wrap: wrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-2);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(12, 20, 20, 0.6);
  border: 1px solid rgba(31, 199, 168, 0.35);
  display: block;
  object-fit: contain;
  padding: 4px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.brand:hover .logo-mark,
.brand:hover .brand-name {
  color: var(--accent-2);
}

.logo-mark.logo-animate {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 12px 24px rgba(31, 199, 168, 0.35);
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
}

.nav-actions a {
  text-decoration: none;
  color: var(--muted);
}

.nav-actions a:hover {
  color: var(--accent-2);
}

.lang {
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-mobile {
  display: none;
}

.lang-desktop {
  display: inline-block;
}

main {
  padding: 0 6vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 60px 0 40px;
}

.hero-copy {
  text-align: center;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(31, 199, 168, 0.16);
  border: 1px solid rgba(31, 199, 168, 0.25);
  color: var(--accent-2);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0 auto 14px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 54px);
  margin-bottom: 10px;
}

.hero-greeting {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-size: 12px;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 520px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions :hover {
  color: var(--accent-2);
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  transition: transform 0.3s ease;
}

.btn:hover {
  transform: scale(1.06);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  border: none;
  color: #04231f;
}
.btn.primary.hero-cta {
  animation: pulseCTA 1.8s ease-in-out infinite;
}

.btn.ghost {
  background: transparent;
}

.btn.ghost:hover {
  background: rgba(31, 199, 168, 0.18);
  border-color: rgba(31, 199, 168, 0.25);
}


.stats {
  display: flex;
  gap: 24px;
  margin-top: 26px;
  justify-content: center;
}

.stats span {
  font-size: 24px;
  font-weight: 600;
  color: var(--accent-2);
}

.stats p {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.avatar-wrap {
  position: relative;
  padding: 2px;
  border-radius: 30px;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(
      from var(--border-angle),
      #e8fff9,
      var(--accent-2),
      var(--accent),
      var(--accent-3),
      #e8fff9
    ) border-box;
  border: 2cap solid transparent;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  animation: border-angle-rotate 2.4s linear infinite;
}

.avatar-wrap img {
  position: relative;
  z-index: 2;
  width: min(320px, 70vw);
  border-radius: 14px;
  border: 6px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f1a18;
  color: var(--accent-2);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  animation: pulseCTA 1.8s ease-in-out infinite;
  z-index: 3;
}

@keyframes border-angle-rotate {
  from {
    --border-angle: 0deg;
  }
  to {
    --border-angle: 360deg;
  }
}

@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.section {
  margin-top: 0;
  min-height: 100vh;
  padding: 70px 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-head {
  text-align: center;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

[data-animate] {
  opacity: 1;
  transform: none;
}

.js [data-animate] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

.experience-grid {
  margin-top: 26px;
}

.exp-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-align: center;
  animation: cardCascade 4s ease-in-out infinite;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exp-card:hover {
  transform: translateY(-3%) scale(1.07);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
  animation-play-state: paused;
}

.slider-item > .exp-card:hover,
.slider-item.exp-card:hover {
  transform: translateY(-3%) scale(1.07);
  z-index: 2;
}

.section-actions {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-copy {
  text-align: center;
}

.about-panel {
  margin: 18px auto 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 199, 168, 0.12), rgba(12, 139, 127, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.about-metrics span {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-2);
}

.about-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.about-hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.experience-badge {
  position: absolute;
  bottom: -12px;
  left: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04231f;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.experience-badge span {
  font-size: 18px;
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .about-list {
    grid-template-columns: 1fr;
  }
}

.about-list > div {
  border: 1px solid rgba(31, 199, 168, 0.25);
  border-radius: 16px;
  padding: 14px;
  background: rgba(12, 20, 20, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  animation: pulseGlow 2s ease-in-out infinite;
}

.about-list > div:nth-child(2) {
  animation-delay: 0.2s;
}

.about-list > div:nth-child(3) {
  animation-delay: 0.4s;
}

.about-list > div:nth-child(4) {
  animation-delay: 0.6s;
}

.about-list h4 {
  margin-bottom: 6px;
}

@keyframes pulseGlow {
  0%,
  100% {
    border-color: rgba(31, 199, 168, 0.25);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  }
  50% {
    border-color: rgba(102, 242, 209, 0.6);
    box-shadow: 0 0 24px rgba(31, 199, 168, 0.35);
  }
}

@keyframes cardCascade {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  }
  10%, 20% {
    border-color: rgba(102, 242, 209, 0.6);
    box-shadow: 0 0 24px rgba(31, 199, 168, 0.35);
  }
}

.slider-track > .slider-item:nth-child(1) { animation-delay: 0s; }
.slider-track > .slider-item:nth-child(2) { animation-delay: 0.5s; }
.slider-track > .slider-item:nth-child(3) { animation-delay: 1s; }
.slider-track > .slider-item:nth-child(4) { animation-delay: 1.5s; }
.slider-track > .slider-item:nth-child(5) { animation-delay: 2s; }
.slider-track > .slider-item:nth-child(6) { animation-delay: 2.5s; }
.slider-track > .slider-item:nth-child(7) { animation-delay: 3s; }
.slider-track > .slider-item:nth-child(8) { animation-delay: 3.5s; }

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.chip-grid span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 14px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.skills-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.skills-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: cardCascade 3.6s ease-in-out infinite;
  transition: border-color 0.35s ease;
}

.skills-card:nth-child(1) { animation-delay: 0s; }
.skills-card:nth-child(2) { animation-delay: 0.6s; }

.skills-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.skills-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31, 199, 168, 0.3);
  color: var(--accent-2);
  font-size: 12px;
  animation: pulseGlow 2s ease-in-out infinite;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

.tab-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.tab-btn:hover {
  transform: scale(1.06);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #04231f;
  border-color: transparent;
}

.tab-panel {
  display: none;
  margin-top: 24px;
}

.tab-panel.active {
  display: block;
}

.exp-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(31, 199, 168, 0.18);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 10px;
}

.exp-logo-img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(31, 199, 168, 0.12);
  border: 1px solid var(--stroke);
  padding: 6px;
  margin: 0 auto 12px;
  display: block;
}

.exp-company-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.exp-company-link:hover {
  color: var(--accent-2);
}

.exp-period {
  color: var(--accent-2);
  font-weight: 600;
  margin-top: 6px;
}

.exp-type {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.edu-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
  animation: cardCascade 3.6s ease-in-out infinite;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.edu-card:nth-child(1) { animation-delay: 0s; }
.edu-card:nth-child(2) { animation-delay: 0.6s; }
.edu-card:nth-child(3) { animation-delay: 1.2s; }

.edu-card:hover {
  transform: translateY(-3%) scale(1.04);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  animation-play-state: paused;
}

.edu-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(31, 199, 168, 0.18);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 14px;
}

.edu-logo {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(31, 199, 168, 0.12);
  border: 1px solid var(--stroke);
  padding: 6px;
  margin: 0 auto 12px;
  display: block;
}

a.edu-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.edu-card h3 {
  margin-bottom: 8px;
}

.contact-cta {
  text-align: center;
  margin-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  animation: contactCascade 3.6s ease-in-out infinite;
}

.contact-item:nth-child(1) { animation-delay: 0s; }
.contact-item:nth-child(2) { animation-delay: 0.6s; }
.contact-item:nth-child(3) { animation-delay: 1.2s; }
.contact-item:nth-child(4) { animation-delay: 1.8s; }
.contact-item:nth-child(5) { animation-delay: 2.4s; }
.contact-item:nth-child(6) { animation-delay: 3.0s; }

@keyframes contactCascade {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  }
  10%, 20% {
    border-color: rgba(102, 242, 209, 0.6);
    box-shadow: 0 0 24px rgba(31, 199, 168, 0.35);
  }
}

a.contact-item:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(31, 199, 168, 0.4);
  animation-play-state: paused;
}

.contact-icon {
  width: 32px;
  height: 32px;
  color: var(--accent-2);
}

.contact-item-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

.contact-item-value {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
  text-align: center;
}

@keyframes pulseCTA {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(31, 199, 168, 0.35);
  }
  50% {
    box-shadow: 0 0 18px rgba(31, 199, 168, 0.45);
  }
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  text-align: start;
}

.service-list li {
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "- ";
  color: var(--accent-2);
  font-weight: 600;
}

.slider {
  overflow: hidden;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px 0;
  min-height: 360px;
  position: relative;
}

.slider-viewport {
  overflow: visible;
  padding: 20px 16px 30px;
}

.slider-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  will-change: transform;
}

.slider-item {
  flex: 0 0 260px;
  overflow: visible;
  position: relative;
  display: flex;
}

.slider-item > * {
  width: 100%;
}

.slider-item:hover {
  z-index: 4;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 20, 20, 0.8);
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.3s ease, background 0.3s ease;
}

.slider-arrow:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(31, 199, 168, 0.2);
}

.slider-arrow.prev {
  left: 8px;
}

.slider-arrow.next {
  right: 8px;
}

[dir="rtl"] .slider-arrow.prev {
  left: auto;
  right: 8px;
}

[dir="rtl"] .slider-arrow.next {
  right: auto;
  left: 8px;
}

[dir="rtl"] .slider-track {
  direction: rtl;
}

@media (max-width: 1100px) {
  .slider {
    width: min(900px, 100%);
  }

  .slider-item {
    flex-basis: 220px;
  }
}

@media (max-width: 900px) {
  .slider {
    width: min(720px, 100%);
  }

  .slider-item {
    flex-basis: 200px;
  }
}

@media (max-width: 700px) {
  .slider {
    width: min(520px, 100%);
  }

  .slider-item {
    flex-basis: 180px;
  }
}

.testimonial-card {
  cursor: pointer;
}

.testimonial-photo {
  border-radius: 50% !important;
  width: 80px !important;
  max-width: 80px !important;
  height: 80px !important;
  object-fit: cover !important;
}

.testimonial-preview {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-style: italic;
}

.testimonial-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.testimonial-modal.active {
  display: flex;
}

.testimonial-modal-content {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 32px 40px;
  max-width: 780px;
  width: 100%;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.testimonial-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.testimonial-modal-close:hover {
  color: var(--accent-2);
}

.testimonial-modal-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 16px;
  display: block;
}

.testimonial-modal-content h3 {
  margin-bottom: 4px;
  color: var(--ink);
}

.testimonial-modal-text {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  text-align: left;
}

[dir="rtl"] .testimonial-modal-text {
  text-align: right;
}

[dir="rtl"] .testimonial-modal-close {
  right: auto;
  left: 16px;
}

.site-footer {
  text-align: center;
  padding: 30px 0 40px;
  color: var(--muted);
}

[data-lang="ar"] body {
  font-family: "Noto Kufi Arabic", "Outfit", sans-serif;
}

/* === TABLET (max 860px) === */
@media (max-width: 860px) {
  .lang-mobile {
    display: inline-block;
  }

  .lang-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-actions {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0;
    border-top: 1px solid var(--stroke);
    margin-top: 8px;
  }

  .nav-actions.open {
    display: flex;
  }

  .nav-actions a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 15px;
  }

  .nav-actions a:last-child {
    border-bottom: none;
  }

  .site-header {
    padding: 12px 5vw;
  }

  main {
    padding: 0 5vw 60px;
  }

  .hero {
    padding-top: 30px;
    gap: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    min-height: auto;
    padding: 50px 0;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === MOBILE (max 600px) === */
@media (max-width: 600px) {
  body {
    padding-top: 60px;
  }

  .site-header {
    padding: 10px 4vw;
  }

  .logo-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 14px;
  }

  main {
    padding: 0 4vw 40px;
  }

  .hero {
    padding-top: 20px;
    gap: 24px;
  }

  .hero-copy h1 {
    font-size: 28px;
  }

  .lead {
    font-size: 14px;
  }

  .trust-chip {
    font-size: 10px;
    padding: 5px 10px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.15em;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 14px;
  }

  .stats {
    flex-direction: row;
    gap: 16px;
  }

  .stats span {
    font-size: 20px;
  }

  .stats p {
    font-size: 11px;
  }

  .avatar-wrap img {
    width: 100%;
    max-width: 260px;
  }

  .badge {
    font-size: 10px;
    padding: 6px 10px;
    top: -10px;
  }

  .section {
    padding: 40px 0;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-head p {
    font-size: 13px;
  }

  .about {
    gap: 24px;
  }

  .about-hero img {
    max-height: 280px;
  }

  .about-panel {
    padding: 14px;
  }

  .about-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .about-metrics span {
    font-size: 16px;
  }

  .about-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .about-list > div {
    padding: 10px;
  }

  .skills-layout {
    gap: 14px;
  }

  .skills-card {
    padding: 16px;
  }

  .chip-grid {
    gap: 8px;
  }

  .chip-grid span {
    font-size: 12px;
    padding: 6px 10px;
  }

  .tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .exp-card {
    min-height: 240px;
    padding: 14px;
  }

  .exp-logo-img {
    max-width: 70px;
  }

  .edu-logo {
    max-width: 70px;
  }

  .education-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .edu-card {
    padding: 18px;
  }

  .edu-icon {
    width: 46px;
    height: 46px;
    font-size: 12px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .contact-item {
    padding: 16px 10px;
  }

  .contact-icon {
    width: 26px;
    height: 26px;
  }

  .contact-item-value {
    font-size: 12px;
  }

  .site-footer {
    padding: 20px 4vw;
    font-size: 12px;
  }

  .slider {
    min-height: 280px;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .testimonial-modal-content {
    max-width: 95vw;
    padding: 24px 16px;
  }

  .testimonial-modal-photo {
    width: 70px;
    height: 70px;
  }

  .testimonial-photo {
    width: 60px !important;
    max-width: 60px !important;
    height: 60px !important;
  }
}

/* === SMALL MOBILE (max 380px) === */
/* === FLOATING ACTION BUTTONS === */
.fab-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

[dir="rtl"] .fab-container {
  right: auto;
  left: 28px;
  align-items: flex-start;
}

.fab-container.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  border: 1px solid rgba(31, 199, 168, 0.3);
  background: rgba(18, 18, 24, 0.92);
  backdrop-filter: blur(12px);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.fab:hover {
  transform: scale(1.05);
  border-color: rgba(31, 199, 168, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(31, 199, 168, 0.2);
}

.fab svg {
  width: 20px;
  height: 20px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.fab-label {
  white-space: nowrap;
}

.fab-label-hidden {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

.fab-contact.active .fab-label-hidden {
  max-width: 80px;
  opacity: 1;
}

.fab-cv {
  background: linear-gradient(135deg, rgba(31, 199, 168, 0.12), rgba(18, 18, 24, 0.92));
  border-color: rgba(31, 199, 168, 0.35);
  animation: fabCvPulse 3s ease-in-out infinite;
}

.fab-cv:hover {
  animation-play-state: paused;
}

.fab-cv:hover .fab-cv-icon {
  animation-play-state: paused;
}

.fab-cv-icon {
  animation: fabCvBounce 2s ease-in-out infinite;
}

@keyframes fabCvBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(4px); }
  50% { transform: translateY(-3px); }
  70% { transform: translateY(2px); }
  85% { transform: translateY(-1px); }
}

@keyframes fabCvPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(31, 199, 168, 0.35);
  }
  50% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(31, 199, 168, 0.35), 0 0 40px rgba(31, 199, 168, 0.12);
    border-color: rgba(31, 199, 168, 0.65);
  }
}

.fab-contact-wrap {
  position: relative;
}

.fab-contact {
  font-family: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  animation: none;
  backdrop-filter: none;
}

.fab-contact:hover {
  transform: scale(1.1);
  box-shadow: none;
  border-color: transparent;
}

.fab-contact.active {
  animation: none;
}

.fab-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.fab-phone-icon {
  color: #4cd964 !important;
  width: 26px !important;
  height: 26px !important;
  animation: fabPhoneShake 3s ease-in-out infinite;
  z-index: 1;
}

@keyframes fabPhoneShake {
  0% { transform: rotate(0deg); }
  3% { transform: rotate(14deg); }
  6% { transform: rotate(-12deg); }
  9% { transform: rotate(10deg); }
  12% { transform: rotate(-8deg); }
  15% { transform: rotate(6deg); }
  18% { transform: rotate(-4deg); }
  21% { transform: rotate(3deg); }
  24% { transform: rotate(-2deg); }
  27%, 100% { transform: rotate(0deg); }
}

.fab-ring-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(76, 217, 100, 0.5);
  border-radius: 50%;
  animation: fabWaveExpand 3s ease-out infinite;
  pointer-events: none;
}

.fab-ring-wave-2 {
  animation-delay: 0.4s;
}

@keyframes fabWaveExpand {
  0% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  20% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.fab-contact .fab-icon-close {
  display: none;
  color: #4cd964;
}

.fab-contact.active .fab-icon-open,
.fab-contact.active .fab-phone-wrap {
  display: none;
}

.fab-contact.active .fab-icon-close {
  display: block;
}

.fab-contact.active .fab-ring-wave {
  display: none;
}

.fab-contact-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[dir="rtl"] .fab-contact-menu {
  right: auto;
  left: 0;
}

.fab-contact-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 50px;
  background: rgba(18, 18, 24, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fab-menu-item:nth-child(1) { transition-delay: 0.05s; }
.fab-menu-item:nth-child(2) { transition-delay: 0.1s; }
.fab-menu-item:nth-child(3) { transition-delay: 0.15s; }

.fab-menu-item:hover {
  transform: scale(1.05);
  border-color: rgba(31, 199, 168, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 12px rgba(31, 199, 168, 0.15);
}

.fab-menu-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-2);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .fab-container {
    bottom: 20px;
    right: 16px;
    gap: 10px;
  }

  [dir="rtl"] .fab-container {
    left: 16px;
  }

  .fab {
    padding: 10px 16px;
    font-size: 13px;
    gap: 8px;
  }

  .fab svg {
    width: 18px;
    height: 18px;
  }

  .fab-menu-item {
    padding: 9px 14px;
    font-size: 12px;
  }

  .fab-menu-item svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 380px) {
  body {
    padding-top: 55px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .lead {
    font-size: 13px;
  }

  .stats {
    gap: 12px;
  }

  .exp-card {
    min-height: 200px;
    padding: 12px;
  }

  .slider-item {
    flex-basis: 160px;
  }
}
