:root {
  --bg-main: #050816;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-light: rgba(30, 41, 59, 0.72);

  --border-soft: rgba(148, 163, 184, 0.18);
  --border-hover: rgba(96, 165, 250, 0.5);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --blue: #60a5fa;
  --cyan: #22d3ee;
  --green: #34d399;
  --purple: #a78bfa;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --max-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(52, 211, 153, 0.16), transparent 36rem),
    linear-gradient(145deg, #020617 0%, #050816 50%, #0f172a 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul,
ol {
  list-style: none;
}

main {
  position: relative;
  z-index: 1;
}

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6.5rem 1.5rem;
}

/* BACKGROUND DECORATION */
.background-orb {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.background-orb--blue {
  top: 8rem;
  left: -8rem;
  background: var(--blue);
}

.background-orb--green {
  right: -8rem;
  bottom: 6rem;
  background: var(--green);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.brand__icon {
  color: var(--green);
  font-size: 0.8rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
  transform: translateY(-1px);
}

.lang-switch {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  font-family: var(--font-mono);
}

/* COMMON */
.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading {
  margin-bottom: 2.8rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

/* HERO */
.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 3rem;
  align-items: center;
  padding-top: 5rem;
}

.hero__content h1 {
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero__content h1 span {
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__tagline {
  max-width: 720px;
  margin-bottom: 2.3rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #020617;
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.22);
}

.button--secondary {
  border: 1px solid var(--border-soft);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-main);
}

.button--secondary:hover {
  border-color: var(--border-hover);
  box-shadow: 0 18px 45px rgba(96, 165, 250, 0.14);
}

/* HERO CARD */
.hero-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.62));
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), transparent, rgba(52, 211, 153, 0.32));
  opacity: 0.35;
  pointer-events: none;
}

.hero-card__top,
.hero-card__body {
  position: relative;
  z-index: 1;
}

.hero-card__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.status-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
}

.hero-card__body {
  display: grid;
  gap: 1rem;
}

.hero-card__body div {
  padding: 1.1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(2, 6, 23, 0.4);
}

.hero-card__body strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-card__body span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* SKILLS */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.skill-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 1.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  background: var(--bg-card-light);
}

.skill-card--featured {
  border-color: rgba(52, 211, 153, 0.35);
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(20, 83, 45, 0.36));
}

.skill-card h3 {
  margin-bottom: 1.2rem;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-list li {
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* TIMELINE */
.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  bottom: 0.4rem;
  left: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), var(--green));
  opacity: 0.55;
}

.timeline__item {
  position: relative;
  padding-left: 2.8rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.1rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--blue);
  box-shadow:
    0 0 0 6px rgba(96, 165, 250, 0.12),
    0 0 28px rgba(96, 165, 250, 0.65);
}

.timeline__date {
  margin-bottom: 0.75rem;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline__content {
  padding: 1.6rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
}

.timeline__content h3 {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.timeline__meta {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.timeline__content ul {
  display: grid;
  gap: 0.75rem;
}

.timeline__content li {
  position: relative;
  padding-left: 1.3rem;
  color: #cbd5e1;
}

.timeline__content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  text-align: center;
  font-size: 0.9rem;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 700px) {
  .site-header__inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  section {
    padding: 4.5rem 1.2rem;
  }

  .hero__content h1 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

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

  .hero-card {
    padding: 1.2rem;
  }
}

.contact-email {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-email a {
  color: var(--cyan);
  font-weight: 600;
}

.contact-email a:hover {
  color: var(--green);
}