:root {
  --bg: #f8f7f2;
  --bg-soft: #ffffff;
  --text: #101928;
  --muted: #637083;
  --border: #e9e4d8;
  --primary: #f6b900;
  --primary-dark: #d99f00;
  --dark: #07111f;
  --card-shadow: 0 18px 55px rgba(16, 25, 40, .08);
  --radius: 22px;
}

[data-theme="dark"] {
  --bg: #07111f;
  --bg-soft: #0d1a2b;
  --text: #f6f8fb;
  --muted: #a9b5c5;
  --border: #1f2f46;
  --dark: #030812;
  --card-shadow: 0 18px 55px rgba(0, 0, 0, .25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth !important;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(246, 185, 0, .12), transparent 26%),
    radial-gradient(circle at 90% 20%, rgba(85, 119, 255, .08), transparent 22%),
    var(--bg);
  color: var(--text);
  transition: background .25s ease, color .25s ease;
}

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

.section {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 max(28px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 22px rgba(16, 25, 40, .05);
}

[data-theme="dark"] .site-header {
  background: rgba(7, 17, 31, .78);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}

.brand-icon {
  font-weight: 900;
  color: var(--primary);
  font-size: 25px;
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
  transition: .2s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.theme-toggle,
.menu-button {
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
}

.menu-button {
  display: none;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
  padding: 70px 0 48px;
}

.hero-photo {
  position: relative;
  justify-self: center;
}

.hero-photo img {
  width: 178px;
  height: 178px;
  object-fit: cover;
  border-radius: 999px;
  border: 8px solid var(--bg-soft);
  box-shadow: var(--card-shadow);
}

.status-dot {
  position: absolute;
  right: 14px;
  bottom: 20px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #16c784;
  border: 5px solid var(--bg-soft);
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero h1 {
  max-width: 740px;
  font-size: clamp(54px, 8vw, 92px);
  line-height: .92;
  letter-spacing: -5px;
  margin-bottom: 24px;
  font-weight: 900;
}

.hero h1 span {
  color: var(--primary);
}

.hero h2 {
  font-size: clamp(18px, 2.2vw, 25px);
  margin-bottom: 24px;
  font-weight: 900;
}

.hero p {
  max-width: 735px;
  font-size: 19px;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 16px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-primary {
  background: var(--primary);
  color: #09111f;
  box-shadow: 0 14px 24px rgba(246, 185, 0, .25);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
}

.about-card,
.info-card,
.project-card,
.article-card,
.stats,
.loading-card {
  background: color-mix(in srgb, var(--bg-soft) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

.about-card {
  padding: 40px;
  width: 100%;
}

.about-card h3 {
  font-size: 24px;
  margin-bottom: 28px;
}

.about-list {
  display: grid;
  gap: 24px;
}

.about-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  align-items: start;
}

.about-item i {
  color: var(--primary);
  margin-top: 3px;
}

.about-item strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
}

.about-item span {
  color: var(--muted);
}

.about-card a:hover {
  color: var(--primary);
}

.stats {
  margin-top: 8px;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid var(--border);
}

.stats article:last-child {
  border-right: 0;
}

.stats i {
  grid-row: span 2;
  color: var(--primary);
  font-size: 28px;
}

.stats strong {
  font-size: 30px;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.section-title {
  margin: 64px 0 34px;
}

.section-title h2 {
  font-size: 30px;
  letter-spacing: -1px;
}

.section-title span {
  display: block;
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 10px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  gap: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(var(--primary), rgba(246, 185, 0, .28));
  border-radius: 999px;
}

.timeline-item {
  display: contents;
}

.timeline-card {
  min-height: 182px;
  padding: 28px;
  margin-bottom: 42px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  position: relative;
  transition: .25s;
}

.timeline-card:hover {
  transform: translateY(-5px);
}

.timeline-card.left {
  grid-column: 1;
}

.timeline-card.right {
  grid-column: 3;
}

.timeline-marker {
  grid-column: 2;
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker span {
  width: 20px;
  height: 20px;
  margin-top: 32px;
  display: block;
  border-radius: 50%;
  background: var(--primary);
  border: 5px solid var(--bg);
  z-index: 2;
  box-shadow: 0 0 0 3px rgba(246, 185, 0, .16);
}

.timeline-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: 7px;
}

.timeline-card h4 {
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.timeline-card small {
  display: block;
  font-weight: 800;
  margin-bottom: 18px;
}

.timeline-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-stack span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 196, 0, 0.08);
  border: 1px solid rgba(255, 196, 0, 0.18);
  color: #f5c542;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.timeline-stack span:hover {
  transform: translateY(-2px);
  background: rgba(255, 196, 0, 0.14);
  border-color: rgba(255, 196, 0, 0.35);
  color: #ffd95e;
  box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.08), 0 10px 30px rgba(255, 196, 0, 0.08);
}

.experience-footer {
  display: flex;
  justify-content: center;
}

.experience-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;

  border-radius: 999px;

  border: 1px solid rgba(255, 196, 0, 0.2);

  background: rgba(255, 196, 0, 0.08);

  color: #f5c542;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.experience-toggle:hover {
  transform: translateY(-2px);

  background: rgba(255, 196, 0, 0.12);

  border-color: rgba(255, 196, 0, 0.4);

  box-shadow:
    0 10px 30px rgba(255, 196, 0, 0.08);
}

.cards-area {
  display: grid;
  grid-template-columns: 1.2fr .82fr .92fr;
  gap: 22px;
  margin-top: 42px;
}

.info-card {
  padding: 28px;
}

.info-card h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
}

.info-card h3 i {
  color: var(--primary);
}

.tabs {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  overflow: auto;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  padding-bottom: 8px;
  cursor: pointer;
}

.tabs button.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 12px;
}

.tech-grid div {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.tech-grid i {
  font-size: 31px;
}

.tech-item {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  border-radius: 16px;

  opacity: 1;
  transform: scale(1);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.tech-item.hidden {
  opacity: 0;
  transform: scale(.82);
  pointer-events: none;
  position: absolute;
}

.icon-list {
  list-style: none;
  display: grid;
  gap: 20px;
}

.icon-list li {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  line-height: 1.5;
}

.icon-list i {
  width: 18px;
  color: var(--text);
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.view-all {
  color: var(--muted);
  font-weight: 800;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 38px;
}

.projects-grid,
.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.project-card,
.article-card {
  overflow: hidden;
  transition: .25s;
}

.project-card:hover,
.article-card:hover {
  transform: translateY(-7px);
}

.project-cover,
.article-cover {
  position: relative;
  height: 170px;
  background: #0b1422;
  overflow: hidden;
}

.project-cover img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .38));
}

.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badges span {
  background: rgba(8, 17, 32, .72);
  padding: 7px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.card-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.card-actions a {
  color: var(--text);
  font-size: 18px;
  transition: .2s;
}

.card-actions a:hover {
  color: var(--primary);
}

.articles-grid {
  grid-template-columns: repeat(3, 1fr);
}

.article-cover {
  height: 150px;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
}

.article-card:hover {
  transform: translateY(-6px) !important;
}

.loading-card {
  padding: 26px;
  color: var(--muted);
}

.cta {
  margin-top: 78px;
  margin-bottom: 34px;
  padding: 36px;
  background: linear-gradient(135deg, #07111f, #101d2c);
  border-radius: var(--radius);
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr .75fr .65fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--card-shadow);
}

.cta h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.cta p {
  color: #bdc7d4;
  margin-bottom: 24px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list p {
  margin: 0;
}

.contact-list i {
  color: var(--primary);
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}

.social-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  font-size: 20px;
  transition: .2s;
}

.social-links a:hover {
  background: var(--primary);
  color: #07111f;
  transform: translateY(-4px);
}

.scroll-top {
  position: fixed;
  right: 28px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.stack-card {
  max-height: 393px;
  overflow: hidden;
}

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

  .about-card {
    grid-column: 1 / -1;
  }

  .cards-area,
  .cta {
    grid-template-columns: 1fr;
  }

  .projects-grid,
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-links {
    justify-content: flex-start;
  }
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.education-card {
  display: flex;
  gap: 22px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--card-shadow);
  transition: .25s ease;
}

.education-card:hover {
  transform: translateY(-6px);
}

.education-icon {
  min-width: 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(246, 185, 0, .12);
  color: var(--primary);
  font-size: 24px;
}

.education-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.education-content h4 {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 12px;
}

.education-content p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .section {
    width: min(100% - 32px, 1280px);
  }

  .site-header {
    height: auto;
    min-height: 70px;
    padding: 18px 16px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--bg-soft);
    box-shadow: var(--card-shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

  .hero-photo {
    justify-self: start;
  }

  .hero-photo img {
    width: 136px;
    height: 136px;
  }

  .hero h1 {
    letter-spacing: -3px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .about-card {
    padding: 26px;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    padding: 22px;
  }

  .stats article {
    padding: 18px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stats article:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .timeline {
    grid-template-columns: 26px 1fr;
    gap: 16px;
    display: block;
  }

  .timeline::before {
    left: 0px;
    display: none;
  }

  .timeline-card.left,
  .timeline-card.right {
    grid-column: 2;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: auto;
    display: none;
  }

  .timeline-marker span {
    margin-top: 32px;
    width: 18px;
    height: 18px;
    display: none;
  }

  .timeline-stack {
    gap: 8px;
  }

  .timeline-stack span {
    font-size: 11px;
    padding: 7px 12px;
  }

  .stack-card {
    max-height: 426px;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-row {
    display: block;
  }

  .projects-grid,
  .articles-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 28px;
  }

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

@media (max-width: 420px) {

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

  .hero h1 {
    font-size: 48px;
  }

  .stats article:nth-child(3) {
    border-bottom: 1px solid var(--border);
  }

  .stats article:nth-last-child() {
    border-bottom: 0;
  }
}

.tech-item.hide {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none !important;
}

.tech-item.remove {
  display: none !important;
}

.tech-grid .hide {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none !important;
}

.tech-grid .remove {
  display: none !important;
}