:root {
  color-scheme: dark;
  --bg: #091018;
  --bg-2: #10151d;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --muted: #aab7c7;
  --soft: #d9e2ee;
  --line: rgba(255, 255, 255, 0.15);
  --brand: #35d3d8;
  --brand-2: #ffd166;
  --brand-3: #ff6b6b;
  --green: #71e985;
  --ink: #090d12;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 14%, rgba(53, 211, 216, 0.18), transparent 29rem),
    radial-gradient(circle at 86% 6%, rgba(255, 209, 102, 0.14), transparent 28rem),
    radial-gradient(circle at 72% 72%, rgba(255, 107, 107, 0.1), transparent 28rem),
    linear-gradient(135deg, var(--bg) 0%, #121923 52%, #080c12 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 76%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(9, 16, 24, 0.18) 42%, rgba(9, 16, 24, 0.82) 100%);
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(255, 209, 102, 0.72);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 99;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
  transform: scaleX(0);
  transform-origin: left;
}

.network-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(53, 211, 216, 0.18), transparent 66%);
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
}

.section-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 16px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(9, 16, 24, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(130%);
}

.site-header.is-scrolled {
  background: rgba(9, 16, 24, 0.9);
}

.brand,
.header-cta,
.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.brand {
  width: 46px;
  color: var(--ink);
  background: linear-gradient(135deg, #fff, var(--brand), var(--brand-2));
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-cta {
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(320px, 0.87fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 82px 0 58px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3.75rem, 11vw, 9.2rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 750px;
  margin-bottom: 0;
  color: var(--soft);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 32px;
}

.primary-btn,
.ghost-btn,
.text-btn {
  padding: 0 22px;
  border: 1px solid transparent;
}

.primary-btn {
  color: var(--ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 46px rgba(53, 211, 216, 0.18);
}

.ghost-btn,
.text-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.text-btn {
  color: var(--brand-2);
  background: transparent;
}

.primary-btn:hover,
.ghost-btn:hover,
.text-btn:hover,
.header-cta:hover {
  transform: translateY(-2px);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.signal-strip span,
.tags span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #eaf0f8;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
}

.signal-strip span {
  padding: 8px 11px;
}

.hero-panel,
.feature-card,
.skill-card,
.info-card,
.timeline-card,
.metrics div,
.project-card,
.contact-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(120%);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  transform-style: preserve-3d;
}

.hero-panel::before,
.project-visual::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(135deg, rgba(53, 211, 216, 0.2), transparent 48%, rgba(255, 107, 107, 0.12));
}

.profile-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 348px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
}

.profile-orbit::before,
.profile-orbit::after,
.profile-orbit span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.profile-orbit::before {
  inset: 4%;
  animation: spin 18s linear infinite;
}

.profile-orbit::after {
  inset: 18%;
  border-color: rgba(255, 209, 102, 0.34);
  animation: spin 11s linear infinite reverse;
}

.profile-orbit span:nth-child(2) {
  inset: 3%;
  border-top-color: var(--brand);
  border-right-color: transparent;
}

.profile-orbit span:nth-child(3) {
  inset: 28%;
  border-bottom-color: var(--brand-3);
  border-left-color: transparent;
}

.profile-orbit span:nth-child(4) {
  inset: 42%;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.profile-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--ink);
  background: linear-gradient(135deg, #fff, var(--brand), var(--brand-2));
  font-size: 2.3rem;
  font-weight: 900;
  box-shadow: 0 0 60px rgba(53, 211, 216, 0.28);
}

.quick-facts {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
}

.quick-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.quick-facts dt {
  color: var(--muted);
}

.quick-facts dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 0 0 88px;
}

.metrics div {
  padding: 24px;
  min-height: 130px;
}

.metrics strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2.12rem);
  line-height: 1;
}

.metrics span,
.feature-card p,
.timeline-card li,
.info-card span,
.info-card p,
.project-body p,
.company {
  color: var(--muted);
}

.about,
.expertise,
.experience,
.projects,
.skills,
.education,
.contact {
  padding: 72px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading h2 {
  max-width: 900px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.about-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  color: var(--soft);
  font-size: 1.07rem;
}

.expertise-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 24px;
}

.feature-card::after {
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 132px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  content: "";
}

.card-index,
.project-type {
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3,
.project-card h3,
.timeline-card h3,
.skill-card h3,
.info-card h3 {
  margin-bottom: 8px;
  font-size: 1.24rem;
  line-height: 1.2;
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
}

.timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 182px;
  width: 1px;
  content: "";
  background: linear-gradient(to bottom, transparent, var(--brand), var(--brand-2), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 44px;
}

.timeline-date {
  padding-top: 20px;
  color: var(--brand-2);
  font-weight: 900;
}

.timeline-card {
  position: relative;
  padding: 24px;
}

.timeline-card::before {
  position: absolute;
  left: -52px;
  top: 27px;
  width: 15px;
  aspect-ratio: 1;
  border: 4px solid var(--bg);
  border-radius: 50%;
  content: "";
  background: var(--brand);
  box-shadow: 0 0 0 1px rgba(53, 211, 216, 0.45);
}

.timeline-card ul {
  padding-left: 20px;
  margin: 18px 0 0;
}

.inline-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--brand);
  font-weight: 900;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  overflow: hidden;
  background: #111a22;
}

.project-visual span {
  position: absolute;
  display: block;
  border-radius: 999px;
}

.project-visual span:nth-child(1) {
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-visual span:nth-child(2) {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.08);
}

.project-visual span:nth-child(3) {
  width: 220px;
  height: 4px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: scan 3.6s ease-in-out infinite;
}

.diesel {
  background: linear-gradient(135deg, #131922, #1f2933);
}

.agriculture {
  background: linear-gradient(135deg, #102017, #173524);
}

.education {
  background: linear-gradient(135deg, #15152a, #28324a);
}

.project-body {
  padding: 24px;
}

.project-type {
  margin-bottom: 9px;
}

.skill-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-card,
.info-card {
  padding: 24px;
}

.skill-meter {
  height: 8px;
  margin: 16px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.skill-meter span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms ease 260ms;
}

.skill-card.is-visible .skill-meter span {
  transform: scaleX(1);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tags span {
  padding: 8px 12px;
}

.contact-inner {
  padding: clamp(30px, 6vw, 62px);
  background:
    linear-gradient(135deg, rgba(53, 211, 216, 0.18), transparent 52%),
    linear-gradient(315deg, rgba(255, 209, 102, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.085);
}

.contact-inner h2 {
  max-width: 860px;
  margin-bottom: 30px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.contact-links a {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--muted);
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tilt-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-72px) rotate(-12deg);
    opacity: 0.25;
  }

  50% {
    transform: translateY(72px) rotate(-12deg);
    opacity: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  .cursor-glow,
  .network-canvas {
    display: none;
  }
}

@media (max-width: 980px) {
  .metrics,
  .expertise-grid,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: stretch;
    border-radius: var(--radius);
  }

  .nav {
    display: none;
  }

  .hero,
  .about-text,
  .section-heading,
  .skill-grid,
  .two-column,
  .metrics,
  .expertise-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 62px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 32px;
  }

  .timeline-date {
    padding-top: 0;
  }

  .timeline-card::before {
    left: -31px;
  }
}

@media (max-width: 560px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .header-cta {
    padding: 0 14px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(3.12rem, 18vw, 5rem);
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .text-btn,
  .contact-links a {
    width: 100%;
  }

  .hero-panel,
  .project-body,
  .timeline-card,
  .skill-card,
  .info-card,
  .feature-card {
    padding: 20px;
  }

  .project-visual {
    height: 180px;
  }

  .quick-facts div {
    display: grid;
    gap: 3px;
  }

  .quick-facts dd {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
    gap: 10px;
  }
}

@media print {
  .site-header,
  .cursor-glow,
  .network-canvas,
  .scroll-progress,
  .hero-panel,
  .hero-actions,
  .project-visual,
  .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
  }

  .section-shell {
    width: 100%;
  }

  .hero {
    display: block;
    min-height: auto;
    padding: 0 0 18px;
  }

  h1 {
    font-size: 44px;
  }

  .about,
  .expertise,
  .experience,
  .projects,
  .skills,
  .education,
  .contact {
    padding: 14px 0;
  }

  .timeline-card,
  .feature-card,
  .skill-card,
  .info-card,
  .project-card,
  .contact-inner,
  .metrics div {
    border: 1px solid #d7d7d7;
    box-shadow: none;
    background: #fff;
  }
}
