:root {
  --bg: #08111f;
  --bg-soft: #0f1d33;
  --surface: rgba(11, 22, 39, 0.84);
  --surface-2: rgba(9, 18, 32, 0.92);
  --text: #eaf2ff;
  --muted: #adc1dd;
  --line: rgba(135, 170, 214, 0.26);
  --accent: #4dd2ff;
  --accent-2: #31f0bf;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(2, 9, 20, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% -8%, #183968 0%, transparent 35%),
    radial-gradient(circle at 95% 0%, #153660 0%, transparent 28%),
    linear-gradient(180deg, #060d18 0%, #08111f 100%);
  line-height: 1.65;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(77, 210, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(77, 210, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 16%, transparent 78%);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.2rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(7, 14, 25, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
}

.brand-role {
  color: var(--muted);
  font-size: 0.84rem;
}

.topdiv {
  display: flex;
  gap: 0.35rem;
}

.topmenu {
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: 200ms ease;
}

.topmenu:hover,
.topmenu.active {
  color: var(--text);
  background: rgba(77, 210, 255, 0.12);
  border-color: var(--line);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(77, 210, 255, 0.1);
  color: var(--text);
  border-radius: 10px;
  padding: 0.46rem 0.76rem;
  font-weight: 600;
}

.eyebrow {
  font-family: "Sora", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

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

.section-head h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  line-height: 1.18;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.1rem;
  align-items: start;
}

.hero-main h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.05;
  margin-bottom: 1.1rem;
  max-width: 18ch;
}

.lead {
  color: var(--muted);
  max-width: 68ch;
  font-size: 1.05rem;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.kpis article {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.kpis h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.kpis p {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-aside {
  position: sticky;
  top: 104px;
}

.profile-card {
  background: linear-gradient(180deg, rgba(11, 22, 39, 0.88), rgba(7, 16, 30, 0.95));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.profile_image {
  width: 100%;
  border-radius: 15px;
  border: 1px solid var(--line);
  margin-bottom: 1rem;
  display: block;
}

.quick-facts {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.quick-facts strong {
  color: var(--text);
}

.quick-facts a {
  color: var(--text);
  text-decoration: none;
}

.hero-cta {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.button {
  text-decoration: none;
  border-radius: 12px;
  padding: 0.64rem 0.92rem;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  color: #031321;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.button-ghost {
  background: rgba(16, 31, 52, 0.78);
  color: var(--text);
  border-color: var(--line);
}

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

.timeline-item {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
}

.timeline-item header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.timeline-item h3 {
  font-size: 1.03rem;
  font-family: "Sora", sans-serif;
}

.timeline-item span {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
}

.timeline-item ul {
  margin-left: 1.1rem;
  color: var(--muted);
}

.timeline-item li + li {
  margin-top: 0.35rem;
}

.skills-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.skill-group {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.skill-group h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.skill-group p {
  color: var(--muted);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.project-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.project-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 0.62rem;
}

.project-card ul {
  margin-left: 1.1rem;
  color: var(--muted);
}

.portfolio-summary {
  margin-top: 2.2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.highlight-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.highlight-card.live-project {
  order: -1;
  border-color: rgba(49, 240, 191, 0.56);
  box-shadow: 0 14px 36px rgba(5, 26, 32, 0.5);
  background: linear-gradient(180deg, rgba(16, 46, 58, 0.5), rgba(10, 26, 38, 0.88));
}

.highlight-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.live-badge {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #07241d;
  background: linear-gradient(120deg, #3df0ba, #7dffd8);
}

.highlight-card p {
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.highlight-card ul {
  margin-left: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.highlight-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.highlight-card a:hover {
  text-decoration: underline;
}

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

.portfolio-note {
  margin-top: 1rem;
  color: var(--muted);
}

.portfolio-note a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
}

.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.credential-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.credential-card h3 {
  font-family: "Sora", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 0.42rem;
}

.credential-card ul {
  margin-left: 1.1rem;
  color: var(--muted);
}

.contact-section {
  padding: 1.3rem 0 4.5rem;
}

.contact-shell {
  background: linear-gradient(120deg, rgba(77, 210, 255, 0.14), rgba(49, 240, 191, 0.07));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.contact-shell p {
  color: var(--muted);
  max-width: 65ch;
}

.contact-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.footer {
  text-align: center;
  padding: 1.5rem 1rem 2.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

  .hero-aside {
    position: static;
  }

  .kpis,
  .skills-groups,
  .projects-grid,
  .highlights-grid,
  .credentials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-shell {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .topdiv {
    position: absolute;
    right: 4%;
    top: 74px;
    width: min(290px, 92vw);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(6, 12, 22, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  .topdiv.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .topmenu {
    width: 100%;
  }

  .section {
    padding: 4rem 0;
  }

  .kpis,
  .skills-groups,
  .projects-grid,
  .highlights-grid,
  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}
