:root {
  --bg: #fff8ef;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #102033;
  --muted: #5f6f86;
  --label: #273951;
  --border: rgba(229, 237, 245, 0.9);
  --violet: #6d5dfc;
  --blue: #2b91df;
  --green: #15be53;
  --orange: #ff9b3d;
  --pink: #ea2261;
  --sun: #ffc53d;
  --shadow: rgba(50, 50, 93, 0.22) 0 32px 48px -30px, rgba(0, 0, 0, 0.14) 0 18px 36px -18px;
  --soft-shadow: rgba(23, 23, 23, 0.09) 0 18px 38px 0;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Source Sans 3', 'Assistant', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "ss01";
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 197, 61, 0.34), transparent 18rem),
    radial-gradient(circle at 88% 8%, rgba(109, 93, 252, 0.22), transparent 24rem),
    radial-gradient(circle at 18% 86%, rgba(21, 190, 83, 0.20), transparent 22rem),
    radial-gradient(circle at 82% 78%, rgba(234, 34, 97, 0.18), transparent 22rem),
    linear-gradient(135deg, #fff8ef 0%, #f7fbff 52%, #fff0f6 100%);
}

body[dir="rtl"] {
  font-family: 'Assistant', 'Source Sans 3', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 18px 28px;
  overflow: hidden;
}

.color-ribbon {
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  background: linear-gradient(90deg, var(--violet), var(--blue), var(--green), var(--sun), var(--orange), var(--pink));
  box-shadow: 0 8px 28px rgba(109, 93, 252, 0.26);
}

.gradient-orb {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-one {
  top: -130px;
  right: -80px;
  background: conic-gradient(from 140deg, var(--violet), var(--pink), var(--orange), var(--violet));
}

.orb-two {
  bottom: -160px;
  left: -130px;
  background: conic-gradient(from 20deg, var(--green), var(--blue), var(--sun), var(--green));
}

.orb-three {
  top: 44%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 197, 61, 0.45), rgba(234, 34, 97, 0.18), transparent 70%);
  opacity: 0.22;
}

.profile-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  padding: 22px 34px 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(109, 93, 252, 0.5), rgba(21, 190, 83, 0.35), rgba(255, 197, 61, 0.42), rgba(234, 34, 97, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.language-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 16px;
  padding: 6px;
  width: fit-content;
  border: 1px solid rgba(229, 237, 245, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: rgba(23, 23, 23, 0.05) 0 8px 18px;
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 13px/1 'Source Sans 3', 'Assistant', system-ui, sans-serif;
  letter-spacing: 0.03em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  outline: none;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: rgba(109, 93, 252, 0.25) 0 10px 22px -12px;
}

.hero {
  text-align: center;
  padding: 4px 6px 26px;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 88px;
  margin-block: 0 18px;
  margin-inline: auto;
  object-fit: contain;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--violet);
  font-family: 'Source Code Pro', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[dir="rtl"] .eyebrow {
  letter-spacing: 0.04em;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(34px, 9vw, 54px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -1.25px;
}

.subtitle {
  max-width: 430px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.links {
  display: grid;
  gap: 13px;
}

.project-link {
  --tone: var(--violet);
  --tone-soft: rgba(109, 93, 252, 0.12);
  display: grid;
  grid-template-columns: 50px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 15px 17px;
  border: 1px solid rgba(229, 237, 245, 0.92);
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--tone-soft), rgba(255, 255, 255, 0.92) 42%),
    var(--surface-strong);
  color: var(--text);
  text-decoration: none;
  box-shadow: rgba(23, 23, 23, 0.055) 0 8px 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

body[dir="rtl"] .project-link {
  grid-template-columns: 50px 1fr auto;
}

.project-link:hover,
.project-link:focus-visible {
  transform: translateY(-2px) scale(1.005);
  border-color: color-mix(in srgb, var(--tone), white 55%);
  box-shadow: var(--soft-shadow);
  outline: none;
}

.tone-violet { --tone: var(--violet); --tone-soft: rgba(109, 93, 252, 0.15); }
.tone-green { --tone: var(--green); --tone-soft: rgba(21, 190, 83, 0.14); }
.tone-orange { --tone: var(--orange); --tone-soft: rgba(255, 155, 61, 0.15); }
.tone-pink { --tone: var(--pink); --tone-soft: rgba(234, 34, 97, 0.13); }
.tone-blue { --tone: var(--blue); --tone-soft: rgba(43, 145, 223, 0.14); }
.tone-sun { --tone: var(--sun); --tone-soft: rgba(255, 197, 61, 0.18); }

.project-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone), white 18%), var(--tone));
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  box-shadow: color-mix(in srgb, var(--tone), transparent 70%) 0 14px 22px -12px;
}

.project-copy {
  display: grid;
  gap: 2px;
}

.project-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.project-copy small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.25;
}

.arrow {
  color: var(--tone);
  font-size: 22px;
  transition: transform 180ms ease;
}

body[dir="rtl"] .arrow {
  transform: rotate(180deg);
}

.project-link:hover .arrow,
.project-link:focus-visible .arrow {
  transform: translateX(3px);
}

body[dir="rtl"] .project-link:hover .arrow,
body[dir="rtl"] .project-link:focus-visible .arrow {
  transform: rotate(180deg) translateX(3px);
}

.note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(21, 190, 83, 0.26);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(21, 190, 83, 0.11), rgba(43, 145, 223, 0.08));
  color: #108c3d;
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(21, 190, 83, 0.14);
}

.note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.footer {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin-top: 22px;
  color: rgba(39, 57, 81, 0.72);
  text-align: center;
  font-size: 13px;
}

.footer p {
  margin: 0;
}

@media (max-width: 520px) {
  .page-shell {
    justify-content: flex-start;
    padding-top: 24px;
  }

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

  .profile-card::before {
    border-radius: 24px;
  }

  .hero {
    padding-bottom: 20px;
  }

  .brand-logo {
    max-height: 64px;
    margin-bottom: 14px;
  }

  .language-switcher {
    margin-bottom: 14px;
  }

  .project-link {
    grid-template-columns: 44px 1fr auto;
    padding: 13px;
    border-radius: 16px;
  }

  .project-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .project-copy strong {
    font-size: 16px;
  }

  .project-copy small {
    font-size: 13px;
  }
}
