:root {
  --bg: #f8fcff;
  --surface: #ffffff;
  --text: #0f1720;
  --muted: #4b5a68;
  --line: #d8e6f2;
  --accent: #2181c5;
  --accent-soft: #e5f2fc;
  --shadow: 0 18px 40px rgba(19, 58, 94, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3,
.brand {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.55;
}

.bg-orb-one {
  width: 360px;
  height: 360px;
  background: #d8efff;
  top: -120px;
  right: -80px;
}

.bg-orb-two {
  width: 280px;
  height: 280px;
  background: #eaf6ff;
  bottom: 8%;
  left: -120px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1100px, 92%);
  margin: 1rem auto;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

.brand {
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 24, 40, 0.18);
}

.brand-logo {
  width: 72px;
  height: 72px;
  display: block;
  border-radius: 10px;
  filter: drop-shadow(0 10px 20px rgba(2, 8, 14, 0.45));
}

.site-nav {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-btn,
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 1rem;
  font-weight: 700;
  transition: all 0.22s ease;
}

.nav-btn {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: #d8ecfb;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 4rem;
}

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

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.lead {
  max-width: 60ch;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #0f2030 0%, #1b6da8 100%);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14, 56, 87, 0.25);
}

.btn-github {
  position: relative;
  background: linear-gradient(135deg, #0f1116 0%, #24292f 100%);
  color: #fff;
  border-color: #0f1116;
  box-shadow: 0 10px 26px rgba(15, 17, 22, 0.35);
}

.btn-github::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 2px solid rgba(33, 129, 197, 0.5);
  animation: github-pulse 2.2s ease-out infinite;
}

.btn-github:hover,
.btn-github:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 17, 22, 0.45);
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--text);
}

.hero-media img {
  width: min(420px, 100%);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  justify-self: end;
}

.hero-deco {
  position: absolute;
  width: min(180px, 35vw);
  right: -32px;
  top: -36px;
  z-index: 0;
  opacity: 0.9;
}

.hero-media img:not(.hero-deco) {
  position: relative;
  z-index: 1;
}

.section {
  padding: 1rem 0 3rem;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

.section-wave {
  width: 100%;
  height: auto;
  display: block;
  margin-top: -1rem;
}

.section-head {
  margin-bottom: 0.85rem;
}

h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: 0 2px 14px rgba(24, 58, 88, 0.04);
}

.about-grid {
  display: block;
}

.about-grid p {
  margin: 0;
}

.meta-list {
  margin: 0;
  padding-left: 1rem;
}

.timeline {
  display: grid;
  gap: 0.75rem;
}

.timeline-item h3 {
  margin: 0.25rem 0 0.45rem;
}

.role-points {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem;
}

.role-points li {
  margin: 0.35rem 0;
  color: var(--muted);
}

.timeline-date {
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-wrap {
  display: grid;
  gap: 1rem;
}

.skills-intro {
  margin: 0;
  color: var(--muted);
}

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

.tag-grid span {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f4faff;
  font-size: 0.92rem;
  font-weight: 700;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.education-grid {
  align-items: stretch;
}

.education-card {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
  box-shadow: 0 16px 34px rgba(24, 58, 88, 0.08);
}

.education-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(33, 129, 197, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(229, 242, 252, 0.22), transparent 42%);
  pointer-events: none;
}

.education-card > * {
  position: relative;
  z-index: 1;
}

.education-card h3 {
  margin: 0 0 0.45rem;
}

.education-card p {
  margin: 0;
}

.education-card p + p {
  margin-top: 0.35rem;
}

.education-logo-plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 106px;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.education-logo-plate::before {
  content: "";
  position: absolute;
  inset: auto auto -46px -28px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.education-logo-plate::after {
  content: "";
  position: absolute;
  inset: 12px 16px auto auto;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(4px);
}

.education-logo-plate--su {
  background:
    radial-gradient(circle at top right, rgba(202, 162, 88, 0.4), transparent 34%),
    linear-gradient(135deg, #3f1027 0%, #61223b 54%, #7b3850 100%);
}

.education-logo-plate--petra {
  background:
    radial-gradient(circle at top right, rgba(217, 67, 85, 0.38), transparent 34%),
    linear-gradient(135deg, #091329 0%, #10255a 52%, #1b3979 100%);
}

.education-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.education-logo--su {
  width: min(250px, 100%);
}

.education-logo--petra {
  width: min(252px, 100%);
}

.education-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.education-meta::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.muted {
  color: var(--muted);
}

.contact-card {
  max-width: 700px;
}

.contact-form {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

label {
  font-weight: 700;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.72rem;
  font: inherit;
  background: #fff;
}

input:focus,
textarea:focus {
  outline: 2px solid #c2e5ff;
  border-color: #93c7eb;
}

#contact-response {
  margin-top: 0.75rem;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 1rem 2.6rem;
  text-align: center;
  color: var(--muted);
}

@keyframes github-pulse {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }

  70% {
    opacity: 0.2;
    transform: scale(1.04);
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-github::after {
    animation: none;
  }
}

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

  .hero {
    padding-top: 2rem;
  }

  .hero-media {
    order: -1;
    justify-self: start;
  }

  .hero-media img {
    width: min(320px, 72vw);
  }

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

  .education-logo-plate {
    min-height: 96px;
    padding: 0.9rem 1rem;
  }

  .education-logo--su {
    width: min(220px, 100%);
  }

  .education-logo--petra {
    width: min(235px, 100%);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0.5rem;
    left: 0.5rem;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    display: none;
  }

  .site-nav.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
