:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --line: rgba(148, 163, 184, 0.22);
  --text: #e5edf8;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --green: #34d399;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(56, 189, 248, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.14), transparent 30rem),
    radial-gradient(circle at 48% 88%, rgba(34, 211, 238, 0.08), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #07111f 46%, #111827 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  padding: 14px 0;
  transform: translateX(-50%);
}

.brand,
.language-toggle,
.nav-links {
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.28);
}

.brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #f8fafc;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 5px;
  border-radius: 8px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.language-toggle {
  min-width: 86px;
  min-height: 44px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease;
}

.language-toggle:hover {
  border-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-1px);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  align-items: center;
  min-height: 100vh;
  gap: 28px;
  padding-top: 120px;
  padding-bottom: 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero h2 {
  max-width: 740px;
  margin-bottom: 16px;
  color: #bae6fd;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.16;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 14px;
  color: #dbeafe;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 700;
}

.hero-copy,
.wide-text,
.section-heading p,
.contact-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy {
  max-width: 740px;
  margin-bottom: 20px;
}

.stack-line {
  max-width: 760px;
  margin-bottom: 28px;
  color: #dbeafe;
  font-weight: 800;
}

.hero-actions,
.social-links,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #f8fafc;
  box-shadow: 0 18px 42px rgba(56, 189, 248, 0.2);
}

.button.secondary,
.button.tertiary {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
}

.button.tertiary {
  border-color: rgba(52, 211, 153, 0.38);
}

.social-links {
  margin-top: 22px;
}

.social-links a,
.contact-links a {
  border-bottom: 1px solid rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: end;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  right: 6%;
  bottom: 8%;
  z-index: -1;
  width: min(42vw, 540px);
  height: min(42vw, 540px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.28) 0%,
    rgba(34, 211, 238, 0.14) 40%,
    transparent 74%
  );
  filter: blur(78px);
  content: "";
}

.hero-portrait {
  display: block;
  width: clamp(520px, 43vw, 750px);
  height: auto;
  margin-right: max(-8vw, -96px);
  object-fit: cover;
  object-position: center bottom;
  filter: drop-shadow(0 28px 44px rgba(2, 6, 23, 0.56));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.wide-text,
.timeline-card,
.skill-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.wide-text {
  max-width: 960px;
  padding: 30px;
}

.experience-section {
  min-height: 100vh;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  align-items: center;
  min-height: calc(100vh - 120px);
  gap: 48px;
}

.timeline-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
}

.timeline-progress {
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: center;
  padding: 8px 0;
}

.timeline-progress::before {
  position: absolute;
  width: 2px;
  height: 100%;
  background: rgba(148, 163, 184, 0.2);
  content: "";
}

.progress-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(148, 163, 184, 0.6);
  border-radius: 50%;
  background: var(--bg-soft);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.progress-dot.active {
  border-color: var(--cyan);
  background: var(--cyan);
  transform: scale(1.2);
}

.experience-card {
  min-height: 520px;
  transition: opacity 220ms ease, transform 220ms ease;
}

.experience-card.is-switching {
  opacity: 0;
  transform: translateY(10px);
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.experience-meta span {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.42);
  color: #dbeafe;
  font-size: 0.88rem;
  font-weight: 800;
}

.experience-card h3 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3.4vw, 2.55rem);
  line-height: 1.08;
}

.experience-card p {
  color: var(--muted);
  font-size: 0.98rem;
  white-space: pre-line;
}

.career-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.career-steps span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.32);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.career-steps span.active {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(34, 211, 238, 0.12);
  color: #dbeafe;
}

.experience-tags,
.work-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.experience-tags {
  margin-top: 24px;
}

.experience-controls {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.56);
  color: #dbeafe;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
  transition: border-color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.icon-button:hover:not(:disabled) {
  border-color: rgba(56, 189, 248, 0.8);
  transform: translateY(-1px);
}

.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.experience-tags span,
.work-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.74);
  color: #dbeafe;
  font-weight: 700;
}

.logo-carousel {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: scrollLogos 35s linear infinite;
}

.logo-carousel:hover .logo-track {
  animation-play-state: paused;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 174px;
  height: 92px;
  padding: 16px;
  border: 1px solid rgba(226, 232, 240, 0.13);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.66);
  color: #dbeafe;
  font-size: 0.96rem;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.logo-card:hover {
  border-color: rgba(56, 189, 248, 0.7);
  color: #f8fafc;
  transform: translateY(-2px);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  min-height: 190px;
  padding: 22px;
}

.skill-card h3 {
  margin-bottom: 12px;
  color: #dbeafe;
  font-size: 1.08rem;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.work-grid span {
  justify-content: center;
  min-height: 86px;
  text-align: center;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  padding: 34px;
}

.contact-panel p {
  max-width: 720px;
  margin-bottom: 0;
}

.contact-links {
  flex-direction: column;
  align-content: start;
  padding-top: 10px;
}

.contact-links a {
  width: 100%;
  padding: 10px 0;
}

.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.copy-button,
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.copy-button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.48);
  color: #dbeafe;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.copy-button:hover {
  border-color: rgba(56, 189, 248, 0.78);
  background: rgba(15, 23, 42, 0.76);
  transform: translateY(-1px);
}

.copy-button svg,
.icon-link svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.icon-link {
  min-height: 42px;
}

.copy-status {
  min-height: 20px;
  margin: -6px 0 2px;
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .topbar {
    width: min(100% - 20px, 760px);
  }

  .nav-links {
    display: none;
  }

  .section {
    width: min(100% - 24px, 760px);
    padding: 84px 0;
  }

  .experience-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
    min-height: auto;
    padding-top: 116px;
    gap: 28px;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-portrait {
    width: clamp(440px, 48vw, 560px);
    margin-right: -120px;
  }

  .experience-layout {
    min-height: auto;
  }

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

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-actions .button,
  .social-links a,
  .contact-links a {
    width: 100%;
  }

  .email-row {
    grid-template-columns: 1fr;
  }

  .copy-button {
    justify-content: center;
    width: 100%;
  }

  .wide-text,
  .timeline-card,
  .skill-card,
  .contact-panel {
    padding: 18px;
  }

  .timeline-card {
    grid-template-columns: 1fr;
  }

  .timeline-progress {
    display: flex;
    justify-content: space-between;
    padding: 0;
  }

  .timeline-progress::before {
    width: calc(100% - 20px);
    height: 2px;
    margin-top: 6px;
  }

  .experience-card {
    min-height: 620px;
  }

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

  .logo-card {
    min-width: 150px;
  }
}
