:root {
  --navy: #07111d;
  --navy-2: #0d1c2e;
  --ink: #e8eef6;
  --muted: #93a4b8;
  --line: rgba(232, 238, 246, 0.12);
  --blue: #1e6fff;
  --blue-2: #4d8eff;
  --teal: #00a5c6;
  --green: #709200;
  --paper: #f4f7fb;
  --card: #ffffff;
  --text: #1b2838;
  --text-muted: #5b6b7c;
  --shadow: 0 18px 50px rgba(7, 17, 29, 0.12);
  --radius: 16px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --display: "Outfit", "IBM Plex Sans", sans-serif;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 127, 255, 0.28);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.hero .btn-outline:hover,
.cta-banner .btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

.contact-info .btn-outline {
  border-color: var(--navy);
  color: var(--navy);
  margin-top: 1.5rem;
}

.contact-info .btn-outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  color: var(--muted);
  border-color: transparent;
  padding-inline: 0.85rem;
}

.btn-ghost:hover {
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 17, 29, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
}

.logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-text strong,
.site-url {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: var(--teal);
}

.logo-text small {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  color: #d5deea;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links .btn {
  background: var(--blue);
  color: #fff;
  border: 0;
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  padding: 0.18rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-switch__btn {
  min-width: 2.1rem;
  padding: 0.28rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: #fff;
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.hero {
  position: relative;
  background: var(--navy);
  color: var(--ink);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% 10%, rgba(47, 127, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 40% 50% at 5% 90%, rgba(46, 196, 212, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.9rem;
}

.hero-name {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.hero-url {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(0, 165, 198, 0.4);
}

.hero-url:hover {
  color: #7fe3f2;
  border-bottom-color: #7fe3f2;
}

.hero-role {
  display: block;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--blue-2);
  margin-bottom: 1.1rem;
}

.hero-lead {
  color: var(--muted);
  max-width: 54ch;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.2rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.hero-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  color: #fff;
}

.hero-meta span {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-photo-col {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.hero-photo-wrap {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(145deg, var(--blue), var(--teal), var(--green));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 4px solid var(--navy);
}

.hero-card {
  width: 100%;
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.hero-card-kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.hero-card-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  margin-bottom: 0.3rem;
}

.hero-card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero-site,
.hero-phone,
.hero-email {
  display: block;
  margin-top: 0.45rem;
  color: var(--blue-2);
  font-weight: 600;
}

.hero-site {
  margin-top: 0.85rem;
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--teal);
}

.hero-site:hover,
.hero-phone:hover,
.hero-email:hover {
  color: #fff;
}

.hero-phone {
  font-size: 1.1rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: #e8eef5;
}

.section-header {
  margin-bottom: 2.2rem;
}

.section-header.center {
  text-align: center;
}

.section-header h2,
.about-grid h2,
.contact-info h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  color: var(--navy);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.about-body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.skill-card--ai {
  border-color: rgba(0, 165, 198, 0.45);
  box-shadow: 0 8px 24px rgba(0, 165, 198, 0.08);
}

.skills-grid,
.hl-grid {
  display: grid;
  gap: 1.1rem;
}

.skills-grid {
  grid-template-columns: repeat(3, 1fr);
}

.hl-grid {
  grid-template-columns: repeat(2, 1fr);
}

.skill-card,
.hl-card,
.edu-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  box-shadow: 0 8px 24px rgba(7, 17, 29, 0.05);
  border: 1px solid rgba(7, 17, 29, 0.05);
}

.skill-card h3,
.hl-card h3,
.edu-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  background: #eef3fa;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

.hl-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid #c9d6e6;
  margin-left: 0.4rem;
}

.timeline-item {
  padding: 0 0 2rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px #e8eef5;
}

.timeline-when {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.25rem;
}

.timeline-item h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--navy);
}

.timeline-org {
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.timeline-item ul li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.timeline-item ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.edu-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.edu-card p:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--navy), #123056);
  color: #fff;
  padding: 3.2rem 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-inner h2 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  margin-bottom: 0.45rem;
  max-width: 22ch;
}

.cta-inner p {
  color: var(--muted);
  max-width: 48ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info > p {
  color: var(--text-muted);
  margin: 0.8rem 0 1.5rem;
}

.contact-details li {
  margin-bottom: 1rem;
  padding-left: 0.85rem;
  border-left: 3px solid var(--blue);
}

.contact-details strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-details a {
  color: var(--navy);
  font-weight: 600;
}

.contact-details a:hover {
  color: var(--blue);
}

.contact-details a.contact-url {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--teal);
}

.contact-form,
.form-success {
  background: var(--card);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.form-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #cfd8e3;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 127, 255, 0.15);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
}

.contact-form.hidden,
.form-success.hidden {
  display: none;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.footer {
  background: var(--navy);
  color: var(--muted);
  padding: 1.6rem 0;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.footer-url {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 0.15rem;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-col {
    order: -1;
  }

  .hero-meta,
  .edu-cards,
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-inner h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--navy-2);
    flex-direction: column;
    padding: 1.2rem;
    gap: 0.9rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .skills-grid,
  .hl-grid,
  .form-row,
  .hero-meta,
  .edu-cards,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    flex-direction: column;
  }
}
