:root {
  --black: #050505;
  --panel: rgba(12, 12, 12, 0.9);
  --line: rgba(198, 163, 54, 0.28);
  --gold: #c9a33a;
  --gold-bright: #f0d77a;
  --text: #f8f4e9;
  --muted: #c9c0a9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 8%, rgba(201, 163, 58, 0.06), transparent 28rem),
    radial-gradient(circle at 85% 36%, rgba(240, 215, 122, 0.035), transparent 26rem),
    linear-gradient(180deg, #030303 0%, #090909 48%, #050505 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(240, 215, 122, 0.045), transparent 18rem),
    radial-gradient(circle at 76% 72%, rgba(201, 163, 58, 0.028), transparent 22rem);
  opacity: 0.72;
  pointer-events: none;
  animation: ambientSweep 22s ease-in-out infinite alternate;
}

body > *:not(.pointer-glow):not(.scroll-progress) {
  position: relative;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: right center;
}

.pointer-glow {
  position: fixed;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  z-index: 0;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 215, 122, 0.055), transparent 64%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
  transition: padding 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(240, 215, 122, 0.16);
  background: rgba(0, 0, 0, 0.84);
}

.brand,
.site-nav,
.hero-actions,
.floating-actions,
.contact-links a {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  color: var(--gold-bright);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.site-nav {
  gap: 10px;
}

.site-nav a,
.lang-toggle,
.btn,
.filter-chip,
.back-top,
.whatsapp-float {
  border: 1px solid rgba(240, 215, 122, 0.28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms ease, border-color 220ms ease;
}

.site-nav a,
.lang-toggle {
  padding: 10px 14px;
}

.lang-toggle {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.48);
  font-size: 1.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(28px, 7vw, 84px);
  align-items: center;
  min-height: 100vh;
  padding: 130px min(8vw, 110px) 70px;
  background:
    radial-gradient(circle at 78% 24%, rgba(240, 215, 122, 0.08), transparent 24rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(10, 10, 10, 0.5), rgba(0, 0, 0, 0.88));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 0.98;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 8vw, 8.4rem);
}

h2 {
  font-size: clamp(2.4rem, 5.5vw, 5.7rem);
}

h3 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
}

.hero-title,
.hero-summary,
.about-copy p,
.muted,
.contact-panel p,
.timeline p,
.focus-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-title {
  max-width: 720px;
  color: var(--gold-bright);
  font-weight: 800;
}

.hero-summary {
  max-width: 720px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  font-weight: 900;
}

.primary,
.filter-chip.is-active,
.btn:hover,
.filter-chip:hover,
.whatsapp-float {
  color: #060606;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.site-nav a:hover,
.lang-toggle:hover,
.back-top:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 215, 122, 0.7);
}

.identity-card,
.cv-card,
.contact-panel,
.portfolio-card,
.timeline article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.identity-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.identity-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border: 1px solid rgba(240, 215, 122, 0.24);
  border-radius: 8px;
  filter: saturate(0.94) contrast(1.08);
}

.identity-summary {
  display: grid;
  gap: 8px;
}

.identity-summary span {
  padding: 10px 12px;
  border: 1px solid rgba(240, 215, 122, 0.2);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(240, 215, 122, 0.07);
  font-weight: 800;
}

.section-band {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
}

.section-inner {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) 0;
}

.split,
.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(26px, 6vw, 78px);
  align-items: center;
}

.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.story-text {
  margin-top: 14px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.fact-grid div,
.focus-card {
  border: 1px solid rgba(240, 215, 122, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.fact-grid div {
  padding: 14px;
}

.fact-grid span,
.focus-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-bright);
  font-size: 0.82rem;
  font-weight: 900;
}

.fact-grid strong,
.focus-card strong {
  color: var(--text);
  line-height: 1.5;
}

.skill-grid span {
  padding: 12px 14px;
  border: 1px solid rgba(240, 215, 122, 0.28);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(240, 215, 122, 0.08);
}

.section-title {
  margin-bottom: 28px;
}

.portfolio-tools {
  position: sticky;
  top: 92px;
  z-index: 20;
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid rgba(240, 215, 122, 0.16);
  border-radius: 8px;
  background: linear-gradient(90deg, #050505 0%, #0b0b0b 48%, #050505 100%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.72);
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 14px;
}

.timeline,
.credential-grid,
.focus-grid {
  display: grid;
  gap: 18px;
}

.timeline,
.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card {
  min-height: 250px;
  padding: 22px;
  overflow: hidden;
  align-content: start;
  animation: cardRise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0ms);
}

.focus-card:hover,
.cv-card:hover {
  transform: translateY(-5px);
  border-color: rgba(240, 215, 122, 0.62);
}

.credential-grid {
  position: relative;
  grid-template-columns: 1fr;
  gap: 22px;
}

.credential-card {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(168px, 220px);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 20%, rgba(240, 215, 122, 0.09), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
  cursor: pointer;
  padding: clamp(22px, 3.4vw, 34px);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease;
  animation: cardRise 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay, 0ms);
}

.credential-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 215, 122, 0.62);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.credential-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(240, 215, 122, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.credential-index {
  position: relative;
  z-index: 1;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border: 1px solid rgba(240, 215, 122, 0.42);
  border-radius: 50%;
  color: var(--gold-bright);
  background:
    radial-gradient(circle, rgba(240, 215, 122, 0.14), transparent 68%),
    rgba(0, 0, 0, 0.44);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.credential-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.credential-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}

.credential-head small,
.credential-head span {
  width: auto;
  max-width: min(100%, 520px);
  padding: 8px 10px;
  border: 1px solid rgba(240, 215, 122, 0.26);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.48);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.credential-body strong {
  color: var(--gold-bright);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.05vw, 2.1rem);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.credential-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  max-width: 58rem;
}

.certificate-meta {
  position: relative;
  z-index: 1;
  justify-self: end;
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(240, 215, 122, 0.2);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

body[dir="rtl"] .certificate-meta {
  justify-self: start;
}

.cv-card {
  display: grid;
  gap: 14px;
  min-height: 220px;
  padding: 28px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.cv-card span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  color: #050505;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  font-weight: 900;
}

.cv-card strong {
  color: var(--gold-bright);
  font-size: 1.6rem;
}

.cv-card small {
  color: var(--muted);
}

.timeline article {
  padding: 22px;
}

.timeline span {
  display: block;
  margin-bottom: 18px;
  color: var(--gold-bright);
  font-weight: 900;
}

.contact {
  display: grid;
  place-items: center;
  padding: clamp(56px, 8vw, 92px) 18px;
  background:
    radial-gradient(circle at 18% 30%, rgba(240, 215, 122, 0.08), transparent 20rem),
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9));
}

.contact-panel {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 48px);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 215, 122, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  flex-direction: column;
  gap: 10px;
}

.back-top {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--gold-bright);
  opacity: 0;
  pointer-events: none;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-float {
  padding: 15px 24px;
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.82);
}

.modal.is-open {
  display: grid;
}

.modal-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 0.7fr);
  gap: 24px;
  width: min(980px, 100%);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.modal-panel.no-media {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
  padding: clamp(24px, 4vw, 42px);
}

.modal-panel.no-media > div {
  display: grid;
  gap: 14px;
}

.modal-panel.no-media #modalDescription {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.modal-panel img {
  width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  object-fit: contain;
  background: #080808;
}

.modal-panel img[hidden] {
  display: none;
}

#modalAction[hidden] {
  display: none;
}

#modalDescription {
  white-space: pre-line;
}

.modal-close {
  position: fixed;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 215, 122, 0.42);
  border-radius: 999px;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  font-size: 1.6rem;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition: opacity 620ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal="right"] {
  transform: translate3d(56px, 0, 0) scale(0.985);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes ambientSweep {
  from {
    transform: translate3d(-0.25%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0.25%, 0, 0) scale(1.015);
  }
}

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

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 18px;
    display: none;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.94);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero,
  .split,
  .cv-layout,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .timeline,
  .focus-grid,
  .fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .credential-card {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
  }

  .certificate-meta,
  body[dir="rtl"] .certificate-meta {
    grid-column: 2;
    justify-self: stretch;
    text-align: start;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 14px 16px;
  }

  .hero {
    padding: 112px 18px 56px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .hero-actions,
  .timeline,
  .focus-grid,
  .fact-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .credential-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .credential-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .credential-index {
    width: 58px;
    height: 58px;
    font-size: 1.05rem;
  }

  .certificate-meta,
  body[dir="rtl"] .certificate-meta {
    grid-column: auto;
  }

  .btn {
    width: 100%;
  }

  .portfolio-tools {
    top: 74px;
  }

  .floating-actions {
    right: 14px;
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
