: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;
}

.section.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 100vh;
  padding-right: max(16px, calc((100% - 1180px) / 2));
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-top: 120px;
  padding-bottom: 72px;
  background: #020617;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 72%;
  background: url("../assets/profile-placeholder.jpeg") center 35% / cover no-repeat;
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.98) 32%, rgba(2, 6, 23, 0.7) 58%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.54), transparent 45%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content.reveal {
  opacity: 1;
  transform: none;
}

.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;
}

.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;
}

.landing-pages-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 48px;
  min-height: 430px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  background: radial-gradient(circle at 86% 18%, rgba(34, 211, 238, 0.16), transparent 18rem), linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 29, 51, 0.88));
  box-shadow: var(--shadow);
}
.landing-pages-copy { position: relative; z-index: 2; }
.landing-pages-copy h2 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.3rem); line-height: 1; letter-spacing: -0.045em; }
.landing-pages-copy > p:not(.eyebrow) { max-width: 670px; color: var(--muted); }
.landing-pages-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.landing-pages-preview { position: relative; min-height: 300px; }
.preview-window { position: absolute; width: min(100%, 340px); aspect-ratio: 1.22; border: 1px solid rgba(148, 163, 184, 0.24); border-radius: 14px; background: rgba(2, 6, 23, 0.82); box-shadow: 0 26px 70px rgba(2, 6, 23, 0.55); }
.preview-window-back { top: 4px; right: -35px; transform: rotate(8deg); opacity: 0.55; }
.preview-window-back span { display: inline-block; width: 7px; height: 7px; margin: 13px 0 0 7px; border-radius: 50%; background: var(--violet); }
.preview-window-front { right: 18px; bottom: 0; padding: 60px 28px 28px; transform: rotate(-3deg); }
.preview-window-front::before { content: ""; position: absolute; inset: 0 0 auto; height: 38px; border-bottom: 1px solid var(--line); background: rgba(15, 23, 42, 0.75); }
.preview-window-front i { display: block; width: 42px; height: 5px; margin-bottom: 18px; border-radius: 4px; background: var(--cyan); }
.preview-window-front strong,.preview-window-front small { display: block; }
.preview-window-front strong { color: #f8fafc; font-size: 1.7rem; }
.preview-window-front small { margin: 5px 0 26px; color: var(--muted); }
.preview-window-front b { display: block; width: 100%; height: 9px; margin-top: 10px; border-radius: 8px; background: rgba(148, 163, 184, 0.16); }
.preview-window-front b:nth-of-type(2) { width: 82%; }
.preview-window-front b:nth-of-type(3) { width: 55%; background: rgba(56, 189, 248, 0.5); }

.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,
  .landing-pages-panel {
    grid-template-columns: 1fr;
  }

  .landing-pages-preview { display: none; }

  .hero {
    min-height: auto;
    padding-top: 116px;
  }

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

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

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
  }

  .hero::before {
    inset: 0;
    width: 100%;
    background-position: 30% center;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 58%, rgba(2, 6, 23, 0.38) 100%), linear-gradient(0deg, #020617 0%, transparent 48%, rgba(2, 6, 23, 0.28));
  }

  .hero-content {
    max-width: 640px;
  }
}

.whatsapp-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.whatsapp-fab:hover {
  background: #20bd5a;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.32);
  transform: translateY(-3px) scale(1.04);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 560px) {
  .whatsapp-fab {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }

  .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,
  .landing-pages-panel {
    padding: 18px;
  }

  .landing-pages-actions .button { width: 100%; }

  .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;
  }
}

.personal-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 32px 16px 48px;
  color: var(--muted);
  font-size: .9rem;
}

.personal-footer a { color: var(--cyan); font-weight: 700; }

.typing-text::after {
  display: inline-block;
  width: .08em;
  height: .82em;
  margin-left: .08em;
  background: currentColor;
  content: "";
  animation: typing-caret .8s steps(1) infinite;
}

@keyframes typing-caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .typing-text::after { animation: none; opacity: .7; }
}

@media (max-width: 560px) {
  .personal-footer { flex-direction: column; align-items: center; gap: 8px; }
}
