:root {
  --bg: #12151f;
  --bg-2: #161a29;
  --bg-3: #1b2030;
  --green: #00d26a;
  --green-2: #00c25f;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.08);
  --rail-w: 64px;
  --header-h: 88px;
  --serif: 'Poppins', sans-serif;
  --sans: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* ========== SOCIAL RAIL ========== */
.social-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: transparent;
  border-right: 1px solid var(--line);
}

.social-rail a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  transition: color 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-rail a:hover {
  color: #0b0f18;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px 0 28px;
  background: linear-gradient(180deg, rgba(18, 21, 31, 0.92), rgba(18, 21, 31, 0));
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.main-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.lang-switch:hover {
  border-color: rgba(0, 210, 106, 0.55);
  background: rgba(0, 210, 106, 0.08);
  transform: translateY(-1px);
}

.lang-flag {
  width: 36px;
  height: 36px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  background: #000;
}

.lang-code {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  min-width: 1.6em;
}

.header-phone {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.9);
  direction: ltr;
  unicode-bidi: isolate;
}

.header-phone:hover {
  color: var(--green);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 40px) 60px 80px calc(var(--rail-w) + 70px);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 40px;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(0, 210, 106, 0.07), transparent 45%),
    var(--bg-2);
  overflow: visible;
}

.hero-deco {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.deco {
  position: absolute;
  opacity: 0.18;
}

.deco-diamond {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
  left: 18%;
  top: 28%;
}

.deco-circle {
  width: 180px;
  height: 180px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  left: 8%;
  bottom: 18%;
}

.deco-cube {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  left: 30%;
  bottom: 22%;
  transform: rotate(18deg);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.08);
}

.deco-dots {
  width: 140px;
  height: 140px;
  right: 8%;
  bottom: 10%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding-top: 20px;
}

.hero-hello {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-bottom: 22px;
}

.hello-line {
  width: 42px;
  height: 2px;
  background: var(--green);
  display: inline-block;
}

.hero-title {
  margin-bottom: 36px;
}

.hero-title .name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 8px;
}

.hero-title .role {
  display: block;
  font-family: var(--sans);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--green);
  letter-spacing: -0.02em;
}

.btn-services {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 16px 32px;
  background: var(--green);
  color: #0b0f18;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-services:hover {
  background: #19e07a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 210, 106, 0.35);
}

.hero-media {
  position: relative;
  z-index: 2;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.hero-glow {
  position: absolute;
  width: 55%;
  height: 55%;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 106, 0.28), transparent 70%);
  filter: blur(8px);
  opacity: 0;
  z-index: 0;
  animation: glowIn 1.2s ease 0.35s forwards;
}

.hero-arcs {
  position: absolute;
  width: min(620px, 98%);
  aspect-ratio: 1;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
}

.hero-arcs span {
  position: absolute;
  inset: 0;
  border: 18px solid var(--green);
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
  opacity: 0;
  transform: rotate(-220deg) scale(0.15);
  transform-origin: center center;
  animation: arcSpinIn 1.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 12px rgba(0, 210, 106, 0.35));
}

.hero-arcs span:nth-child(1) {
  inset: 0;
  border-width: 22px;
  animation-delay: 0.08s;
}

.hero-arcs span:nth-child(2) {
  inset: 28px;
  border-width: 18px;
  animation-delay: 0.22s;
}

.hero-arcs span:nth-child(3) {
  inset: 56px;
  border-width: 14px;
  animation-delay: 0.36s;
}

@keyframes arcSpinIn {
  0% {
    opacity: 0;
    transform: rotate(-220deg) scale(0.15);
  }
  55% {
    opacity: 1;
  }
  100% {
    opacity: 0.95;
    transform: rotate(0deg) scale(1);
  }
}

.hero-photo {
  position: relative;
  z-index: 3;
  width: min(540px, 112%);
  margin-bottom: 0;
  transform: translateY(40px) scale(0.82);
  mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  opacity: 0;
  animation: photoRise 1.35s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
}

.hero-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 8%;
  filter: contrast(1.03);
}

@keyframes photoRise {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.78);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(-72px) scale(1);
    filter: blur(0);
  }
}

@keyframes glowIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-arcs span,
  .hero-photo,
  .hero-glow {
    animation: none !important;
    opacity: 1;
  }

  .hero-photo {
    transform: translateY(-72px) scale(1);
  }

  .hero-arcs span {
    transform: none;
    opacity: 0.95;
  }
}

/* ========== SHARED SECTION TYPE ========== */
.intro-eyebrow {
  position: relative;
  z-index: 1;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 22px;
}

.intro-title {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 28px;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--d, 0) * 60ms);
}

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

/* ========== ABOUT ========== */
.about-section {
  position: relative;
  padding: 110px calc(48px + var(--rail-w)) 120px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 12% 40%, rgba(0, 210, 106, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 210, 106, 0.06), transparent 50%),
    linear-gradient(165deg, #0e1119 0%, #151a28 45%, #10141e 100%);
}

.about-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.about-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.about-glow-a {
  width: 340px;
  height: 340px;
  left: -60px;
  top: 18%;
  background: rgba(0, 210, 106, 0.18);
  animation: aboutPulse 7s ease-in-out infinite;
}

.about-glow-b {
  width: 260px;
  height: 260px;
  right: 8%;
  bottom: 10%;
  background: rgba(0, 194, 95, 0.1);
  animation: aboutPulse 9s ease-in-out infinite reverse;
}

.about-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.about-ring {
  position: absolute;
  right: 4%;
  top: 22%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(0, 210, 106, 0.22);
  box-shadow:
    0 0 0 28px rgba(0, 210, 106, 0.04),
    0 0 0 56px rgba(0, 210, 106, 0.025);
  animation: aboutSpin 28s linear infinite;
}

.about-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: center;
}

.about-aside {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-badge {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 40% 35%, rgba(0, 210, 106, 0.28), transparent 55%),
    linear-gradient(145deg, #1c2438, #121722);
  border: 1px solid rgba(0, 210, 106, 0.45);
  box-shadow:
    0 0 40px rgba(0, 210, 106, 0.18),
    inset 0 0 40px rgba(0, 210, 106, 0.06);
}

.about-badge::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 210, 106, 0.35);
  animation: aboutSpin 18s linear infinite;
}

.about-badge-num {
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.03em;
}

.about-badge-label {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.about-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-chips li {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 210, 106, 0.08);
  border: 1px solid rgba(0, 210, 106, 0.28);
  backdrop-filter: blur(8px);
}

.about-main {
  position: relative;
  text-align: left;
  padding: 42px 44px;
  background: linear-gradient(135deg, rgba(27, 32, 48, 0.92), rgba(18, 22, 34, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--green);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.about-main .intro-eyebrow {
  text-align: left;
}

.about-title {
  max-width: none;
  margin: 0 0 22px;
  text-align: left;
}

.about-title em {
  font-style: normal;
  color: var(--green);
}

.about-lead {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  text-align: left;
}

.about-line {
  margin-top: 28px;
  height: 2px;
  width: 120px;
  background: linear-gradient(90deg, var(--green), transparent);
}

@keyframes aboutPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.12); opacity: 1; }
}

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

/* ========== SKILLS ========== */
.skills-section {
  position: relative;
  padding: 110px calc(48px + var(--rail-w)) 120px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, #0a0d14 0%, #101522 40%, #0c1019 100%);
  border-top: 1px solid rgba(0, 210, 106, 0.12);
}

.skills-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.skills-mesh {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0, 210, 106, 0.55) 1px, transparent 1.2px);
  background-size: 28px 28px;
  opacity: 0.12;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.skills-beam {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 70vw;
  height: 70vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 210, 106, 0.16), transparent 55%);
  filter: blur(10px);
  animation: aboutPulse 8s ease-in-out infinite;
}

.skills-dots {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: 180px;
  height: 180px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.2px, transparent 1.3px);
  background-size: 16px 16px;
  opacity: 0.45;
}

.skills-head {
  position: relative;
  z-index: 1;
  margin-bottom: 56px;
}

.skills-head .intro-title {
  margin-bottom: 0;
}

.skills-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.skill-card {
  position: relative;
  text-align: left;
  padding: 26px 22px 24px;
  background: linear-gradient(160deg, rgba(28, 35, 52, 0.95), rgba(16, 20, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 210, 106, 0.14), transparent 42%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 106, 0.55);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(0, 210, 106, 0.12);
}

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

.skill-card-wide {
  grid-column: span 2;
}

.skill-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.skill-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #0b0f18;
  background: var(--green);
  box-shadow: 0 0 22px rgba(0, 210, 106, 0.35);
}

.skill-pct {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
}

.skill-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.skill-bar {
  position: relative;
  z-index: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
  overflow: hidden;
}

.skill-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-2), var(--green));
  box-shadow: 0 0 12px rgba(0, 210, 106, 0.55);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 60ms + 180ms);
}

.skill-card.is-in .skill-bar span,
.skills-section.is-hot .skill-bar span {
  width: var(--w);
}

.skill-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-badge::before,
  .about-ring,
  .about-glow-a,
  .about-glow-b,
  .skills-beam {
    animation: none !important;
  }

  .skill-bar span {
    width: var(--w);
    transition: none;
  }
}

/* ========== JOURNEY ========== */
.journey-section {
  position: relative;
  padding: 110px calc(48px + var(--rail-w)) 120px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 55% 40% at 15% 20%, rgba(0, 210, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #10141e 0%, #161a29 50%, #0e121b 100%);
  border-top: 1px solid rgba(0, 210, 106, 0.1);
}

.journey-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.journey-glow {
  position: absolute;
  right: -8%;
  top: 30%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(0, 210, 106, 0.1);
  filter: blur(50px);
}

.journey-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 210, 106, 0.45) 1px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: 0.08;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

.journey-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 56px;
}

.journey-head .section-title {
  margin-bottom: 16px;
}

.journey-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.journey-track {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
  padding-left: 4px;
}

.journey-line {
  position: absolute;
  left: 23px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  z-index: 0;
}

.journey-line-base {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
}

.journey-line-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0%;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--green), #00a854);
  box-shadow: 0 0 18px rgba(0, 210, 106, 0.55);
  transition: height 0.05s linear;
  will-change: height;
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 22px;
  margin-bottom: 26px;
}

.journey-item:last-child {
  margin-bottom: 0;
}

.journey-marker {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 18px;
}

.journey-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 17px;
  color: #0b0f18;
  background: rgba(27, 32, 48, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(18, 21, 31, 0.9);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.journey-icon i {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.35s ease;
}

.journey-icon.journey-logo {
  overflow: hidden;
  background: #fff;
  padding: 6px;
}

.journey-icon.journey-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.journey-icon.journey-logo.is-placeholder {
  background: #12151f;
  padding: 0;
}

.journey-item.is-active .journey-icon {
  border-color: var(--green);
  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(18, 21, 31, 0.95),
    0 0 22px rgba(0, 210, 106, 0.45);
  transform: scale(1.06);
}

.journey-item.is-active .journey-icon i {
  color: #0b0f18;
}

.journey-item.is-active .journey-icon.journey-logo {
  background: #fff;
}

.journey-card {
  padding: 22px 24px;
  background: linear-gradient(160deg, rgba(28, 35, 52, 0.95), rgba(16, 20, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.journey-item.is-active .journey-card {
  border-color: rgba(0, 210, 106, 0.4);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(0, 210, 106, 0.08);
}

.journey-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 106, 0.45);
}

.journey-year {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.journey-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.journey-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.journey-brand img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.journey-brand i {
  color: var(--green);
  font-size: 0.85rem;
}

.journey-brand.is-placeholder {
  border-style: dashed;
  border-color: rgba(0, 210, 106, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .journey-line-fill {
    transition: none;
  }
}

/* ========== PROJECTS ========== */
.projects-section {
  position: relative;
  padding: 110px calc(48px + var(--rail-w)) 120px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 45% at 80% 10%, rgba(0, 210, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #12151f 0%, #161a29 50%, #12151f 100%);
}

.projects-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.projects-glow {
  position: absolute;
  left: -10%;
  bottom: 5%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(0, 210, 106, 0.1);
  filter: blur(50px);
}

.projects-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, #000 15%, transparent 70%);
  opacity: 0.8;
}

.projects-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 56px;
}

.projects-head .section-title {
  margin-bottom: 16px;
}

.projects-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.projects-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: left;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(27, 32, 48, 0.95), rgba(18, 22, 34, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 210, 106, 0.45);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(0, 210, 106, 0.1);
}

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0c1019;
}

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

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

.project-year {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0b0f18;
  background: var(--green);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 22px 26px;
}

.project-tag {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.project-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 12px;
}

.project-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--green);
  transition: color 0.25s ease, transform 0.25s ease;
}

.project-link i {
  font-size: 0.95rem;
}

.project-link:hover {
  color: #3dff9a;
  transform: translateY(-1px);
}

.project-link.is-soon {
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  cursor: default;
  transform: none;
}

/* ========== CERTIFICATIONS ========== */
.certs-section {
  position: relative;
  padding: 110px calc(48px + var(--rail-w)) 120px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(0, 210, 106, 0.1), transparent 55%),
    linear-gradient(180deg, #12151f 0%, #161a29 55%, #10141e 100%);
  border-top: 1px solid rgba(0, 210, 106, 0.1);
}

.certs-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.certs-glow {
  position: absolute;
  left: -5%;
  bottom: 10%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(0, 210, 106, 0.12);
  filter: blur(48px);
}

.certs-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}

.certs-head {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 52px;
}

.certs-head .section-title {
  margin-bottom: 16px;
}

.certs-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.certs-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.cert-card {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 32px 28px;
  background: linear-gradient(160deg, rgba(28, 35, 52, 0.95), rgba(16, 20, 32, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 210, 106, 0.45);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3), 0 0 28px rgba(0, 210, 106, 0.1);
}

.cert-card-featured {
  border-color: rgba(0, 210, 106, 0.28);
  background:
    linear-gradient(135deg, rgba(0, 210, 106, 0.1), transparent 40%),
    linear-gradient(160deg, rgba(28, 35, 52, 0.98), rgba(16, 20, 32, 0.95));
}

.cert-card-soon {
  opacity: 0.72;
  border-style: dashed;
}

.cert-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #0b0f18;
  font-size: 22px;
  box-shadow: 0 0 24px rgba(0, 210, 106, 0.35);
}

.cert-card-soon .cert-badge {
  background: transparent;
  border: 1px dashed rgba(0, 210, 106, 0.45);
  color: var(--green);
  box-shadow: none;
}

.cert-issuer {
  display: block;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.cert-body h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

.cert-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.cert-meta i {
  color: var(--green);
  margin-right: 6px;
}

.cert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--green);
  color: #0b0f18;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cert-btn:hover {
  background: #3dff9a;
  transform: translateY(-2px);
}

.cert-btn-ghost {
  background: transparent;
  color: var(--green);
  border: 1px solid rgba(0, 210, 106, 0.45);
}

.cert-btn-ghost:hover {
  background: rgba(0, 210, 106, 0.1);
  color: #3dff9a;
}

/* ========== CONTACT ========== */
.contact-section {
  position: relative;
  padding: 120px calc(48px + var(--rail-w)) 130px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 50% at 85% 20%, rgba(0, 210, 106, 0.16), transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(0, 210, 106, 0.08), transparent 50%),
    linear-gradient(165deg, #0a0d14 0%, #121722 45%, #0c1019 100%);
  border-top: 1px solid rgba(0, 210, 106, 0.14);
}

.contact-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

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

.contact-orb-a {
  width: 360px;
  height: 360px;
  left: -80px;
  top: 10%;
  background: rgba(0, 210, 106, 0.16);
  animation: aboutPulse 8s ease-in-out infinite;
}

.contact-orb-b {
  width: 280px;
  height: 280px;
  right: 5%;
  bottom: 5%;
  background: rgba(0, 194, 95, 0.12);
  animation: aboutPulse 10s ease-in-out infinite reverse;
}

.contact-ring {
  position: absolute;
  right: 8%;
  top: 18%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(0, 210, 106, 0.2);
  box-shadow: 0 0 0 24px rgba(0, 210, 106, 0.04);
  animation: aboutSpin 30s linear infinite;
}

.contact-shell {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.contact-copy {
  text-align: left;
}

.contact-copy .intro-eyebrow {
  text-align: left;
}

.contact-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
}

.contact-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 34ch;
  margin-bottom: 32px;
}

.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-cv {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 210, 106, 0.45);
  padding-bottom: 4px;
  transition: color 0.25s ease;
}

.contact-cv:hover {
  color: var(--green);
}

.contact-social {
  display: flex;
  gap: 12px;
}

.contact-social a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.25s ease;
}

.contact-social a:hover {
  color: #0b0f18;
  background: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(27, 32, 48, 0.92), rgba(14, 18, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--green);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.contact-tile {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contact-tile:hover {
  border-color: rgba(0, 210, 106, 0.45);
  background: rgba(0, 210, 106, 0.06);
  transform: translateX(4px);
}

.contact-tile.is-static {
  cursor: default;
}

.contact-tile.is-static:hover {
  transform: none;
}

.contact-tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #0b0f18;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(0, 210, 106, 0.3);
}

.contact-tile-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-tile-text small {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-tile-text strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-tile-go {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.contact-tile:hover .contact-tile-go {
  color: var(--green);
}

.contact-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 14px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  background: rgba(0, 210, 106, 0.08);
  border: 1px solid rgba(0, 210, 106, 0.25);
}

.contact-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.55);
  animation: contactPulse 1.8s ease-out infinite;
}

@keyframes contactPulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(0, 210, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 210, 106, 0); }
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 28px calc(60px + var(--rail-w));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ========== BACK TO TOP ========== */
.back-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #0b0f18;
  font-size: 18px;
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.92);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(0, 210, 106, 0.35);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-top:hover {
  background: #3dff9a;
  transform: translateY(-4px) scale(1.04);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(0, 210, 106, 0.5);
}

.back-top:active {
  transform: translateY(-1px) scale(0.98);
}

html.is-ar .back-top {
  right: auto;
  left: 28px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    padding-right: 40px;
  }

  .hero-media {
    min-height: 540px;
    order: -1;
  }

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

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

  .contact-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-shell {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-aside {
    align-items: center;
  }

  .about-chips {
    justify-content: center;
  }

  .about-main {
    padding: 32px 28px;
  }

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

  .skill-card-wide {
    grid-column: span 2;
  }

  .band-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --rail-w: 0px;
  }

  .social-rail {
    display: none;
  }

  .site-header {
    left: 0;
    padding: 0 18px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--header-h);
    row-gap: 10px;
    padding-block: 12px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }

  .header-phone {
    font-size: 12px;
  }

  .hero,
  .about-section,
  .skills-section,
  .journey-section,
  .projects-section,
  .certs-section,
  .contact-section,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

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

  .hero {
    padding-top: calc(var(--header-h) + 24px);
  }

  .hero-photo {
    width: min(460px, 100%);
  }

  .hero-arcs span {
    border-width: 12px;
  }

  .about-badge {
    width: 180px;
    height: 180px;
  }

  .about-badge-num {
    font-size: 2.7rem;
  }

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

  .skill-card-wide {
    grid-column: span 1;
  }

  .back-top {
    right: 18px;
    bottom: 18px;
    width: 46px;
    height: 46px;
  }

  html.is-ar .back-top {
    right: auto;
    left: 18px;
  }
}

/* ========== ARABIC / RTL ========== */
html.is-ar,
html.is-ar body {
  font-family: 'Cairo', sans-serif;
}

html.is-ar {
  --serif: 'Cairo', sans-serif;
  --sans: 'Cairo', sans-serif;
}

html.is-ar .social-rail {
  left: auto;
  right: 0;
  border-right: 0;
  border-left: 1px solid var(--line);
}

html.is-ar .site-header {
  left: 0;
  right: var(--rail-w);
  padding: 0 28px 0 36px;
}

html.is-ar .hero {
  padding: calc(var(--header-h) + 40px) calc(var(--rail-w) + 70px) 80px 60px;
}

html.is-ar .hero-hello {
  flex-direction: row-reverse;
  letter-spacing: 0.06em;
}

html.is-ar .intro-eyebrow {
  letter-spacing: 0.12em;
}

html.is-ar .about-section,
html.is-ar .skills-section,
html.is-ar .projects-section,
html.is-ar .journey-section,
html.is-ar .certs-section,
html.is-ar .contact-section,
html.is-ar .site-footer {
  padding-left: 48px;
  padding-right: calc(48px + var(--rail-w));
}

html.is-ar .about-main {
  text-align: right;
  border-left: 0;
  border-right: 3px solid var(--green);
}

html.is-ar .about-main .intro-eyebrow,
html.is-ar .about-title,
html.is-ar .about-lead {
  text-align: right;
}

html.is-ar .about-line {
  margin-right: 0;
  margin-left: auto;
  background: linear-gradient(270deg, var(--green), transparent);
}

html.is-ar .skill-card,
html.is-ar .project-card,
html.is-ar .project-body,
html.is-ar .cert-card,
html.is-ar .journey-card,
html.is-ar .contact-copy {
  text-align: right;
}

html.is-ar .contact-copy .intro-eyebrow {
  text-align: right;
}

html.is-ar .journey-track {
  text-align: right;
  padding-left: 0;
  padding-right: 4px;
  /* Keep layout LTR so grid columns don't flip with dir=rtl */
  direction: ltr;
}

html.is-ar .journey-line {
  left: auto;
  right: 23px;
}

html.is-ar .journey-item {
  grid-template-columns: 1fr 50px;
}

html.is-ar .journey-marker {
  order: 2;
}

html.is-ar .journey-card {
  order: 1;
  direction: rtl;
  text-align: right;
}

html.is-ar .journey-brands {
  justify-content: flex-start;
  flex-direction: row;
}

html.is-ar .contact-tile:hover {
  transform: translateX(-4px);
}

html.is-ar .contact-tile {
  text-align: right;
}

html.is-ar .certs-grid,
html.is-ar .projects-grid,
html.is-ar .skills-grid {
  text-align: right;
}

html.is-ar .main-nav a {
  letter-spacing: 0;
}

@media (max-width: 760px) {
  html.is-ar .site-header {
    right: 0;
    left: 0;
  }

  html.is-ar .about-section,
  html.is-ar .skills-section,
  html.is-ar .projects-section,
  html.is-ar .journey-section,
  html.is-ar .certs-section,
  html.is-ar .contact-section,
  html.is-ar .site-footer,
  html.is-ar .hero {
    padding-left: 20px;
    padding-right: 20px;
  }
}
