:root {
  --background: #070b14;
  --background-deep: #03060c;
  --surface: #0e1624;
  --surface-light: #131f31;
  --surface-glass: rgba(14, 22, 36, 0.76);
  --text: #f7f9fc;
  --muted: #a8b3c6;
  --muted-dark: #768399;
  --accent: #32b6ff;
  --accent-strong: #74d3ff;
  --accent-secondary: #8a7dff;
  --success: #50e3a4;
  --border: rgba(255, 255, 255, 0.09);
  --border-accent: rgba(50, 182, 255, 0.35);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --maximum-width: 1160px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 10%, rgba(50, 182, 255, 0.08), transparent 30%),
    radial-gradient(circle at 85% 55%, rgba(138, 125, 255, 0.07), transparent 28%),
    var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

body::selection {
  background: rgba(50, 182, 255, 0.35);
  color: var(--text);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--maximum-width), calc(100% - 40px));
  margin-inline: auto;
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.18;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(50, 182, 255, 0.32), transparent 68%);
  filter: blur(10px);
  transition: opacity 0.25s ease;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(7, 11, 20, 0.68);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.88);
  border-color: var(--border);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--accent-strong);
  background: linear-gradient(145deg, rgba(50, 182, 255, 0.16), rgba(138, 125, 255, 0.08));
  box-shadow: inset 0 0 22px rgba(50, 182, 255, 0.08);
}

.brand-text {
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: transform 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 88px) 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 0.96) 0%, rgba(7, 11, 20, 0.76) 46%, rgba(7, 11, 20, 0.3) 100%),
    radial-gradient(circle at 72% 34%, rgba(50, 182, 255, 0.16), transparent 26%),
    radial-gradient(circle at 78% 46%, rgba(138, 125, 255, 0.12), transparent 22%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(50, 182, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 182, 255, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 20%, transparent 90%);
}

.speed-lines {
  position: absolute;
  top: 8%;
  right: -8%;
  width: 58%;
  height: 82%;
  opacity: 0.22;
  transform: skewX(-18deg) rotate(-4deg);
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 34px,
      rgba(50, 182, 255, 0.22) 35px 36px,
      transparent 37px 74px
    );
  mask-image: linear-gradient(90deg, transparent, black 35%, black 75%, transparent);
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: 70px;
}

.status-pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 13px;
  border: 1px solid rgba(80, 227, 164, 0.2);
  border-radius: 999px;
  color: #c7f7e4;
  background: rgba(80, 227, 164, 0.07);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(80, 227, 164, 0.9);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-strong);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.25rem, 7vw, 6.65rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
}

.gradient-text {
  display: block;
  margin-top: 10px;
  color: transparent;
  background: linear-gradient(90deg, #f7fbff 0%, var(--accent-strong) 38%, #9a90ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-description {
  max-width: 740px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

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

.button-primary {
  color: #02111b;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 14px 34px rgba(50, 182, 255, 0.22);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(50, 182, 255, 0.34);
}

.button-secondary {
  border-color: var(--border-accent);
  color: var(--accent-strong);
  background: rgba(50, 182, 255, 0.06);
}

.button-secondary:hover {
  background: rgba(50, 182, 255, 0.1);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 750;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--border);
}

.hero-metrics article {
  padding: 18px;
  background: rgba(10, 16, 27, 0.86);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.hero-metrics span {
  margin-top: 4px;
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.hero-panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border-accent);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(19, 31, 49, 0.88), rgba(8, 14, 24, 0.93));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(50, 182, 255, 0.28), transparent 35%, rgba(138, 125, 255, 0.22));
  filter: blur(22px);
  opacity: 0.35;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-dark);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.live-indicator {
  color: var(--success);
}

.telemetry-card {
  padding: 34px 4px 26px;
}

.telemetry-ring {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 54%, transparent 55%),
    conic-gradient(var(--accent) 0 74%, rgba(255, 255, 255, 0.07) 74% 100%);
  box-shadow: 0 0 50px rgba(50, 182, 255, 0.13);
}

.telemetry-ring div {
  text-align: center;
}

.telemetry-value,
.telemetry-label {
  display: block;
}

.telemetry-value {
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.telemetry-label {
  margin-top: 7px;
  color: var(--muted-dark);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.telemetry-details > p {
  color: var(--muted-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.telemetry-details h2 {
  margin: 7px 0 20px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.telemetry-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

.telemetry-row strong {
  color: var(--text);
  font-weight: 700;
}

.track-line {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.7fr 1.2fr;
  gap: 6px;
}

.track-line span {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0.6;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-dark {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 20%),
    var(--background-deep);
  border-block: 1px solid var(--border);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 46px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.section-heading h2 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 70px;
  align-items: start;
}

.about-copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-copy p + p {
  margin-top: 22px;
}

.about-cards {
  display: grid;
  gap: 14px;
}

.about-cards article {
  position: relative;
  padding: 22px 22px 22px 72px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(19, 31, 49, 0.72), rgba(10, 16, 27, 0.72));
}

.about-cards h3 {
  font-size: 1.05rem;
}

.about-cards p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.91rem;
}

.card-number {
  position: absolute;
  left: 20px;
  top: 22px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.skills-grid,
.project-grid,
.certification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.skill-card,
.project-card,
.certification-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(19, 31, 49, 0.78), rgba(9, 15, 25, 0.9));
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.skill-card::before,
.project-card::before,
.certification-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(50, 182, 255, 0.08), transparent 34%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.skill-card:hover,
.project-card:hover,
.certification-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.skill-card:hover::before,
.project-card:hover::before,
.certification-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  color: var(--accent-strong);
  background: rgba(50, 182, 255, 0.07);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.skill-card h3,
.project-card h3,
.certification-card h3 {
  font-size: 1.45rem;
  line-height: 1.2;
}

.skill-card p,
.project-card p {
  margin-top: 12px;
  color: var(--muted);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip-list span {
  padding: 7px 10px;
  border: 1px solid rgba(50, 182, 255, 0.14);
  border-radius: 999px;
  color: #c9eefe;
  background: rgba(50, 182, 255, 0.06);
  font-size: 0.76rem;
  font-weight: 650;
}

.featured-project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(17, 29, 46, 0.94), rgba(8, 14, 24, 0.96));
  box-shadow: var(--shadow);
}

.project-visual {
  min-height: 450px;
  display: grid;
  place-items: center;
  padding: 42px;
}

.project-visual-ai {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(50, 182, 255, 0.22), transparent 32%),
    linear-gradient(135deg, #08111d, #0b1a2a);
}

.project-visual-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(50, 182, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50, 182, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

.terminal-window {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  overflow: hidden;
  border: 1px solid rgba(116, 211, 255, 0.25);
  border-radius: 16px;
  background: rgba(3, 8, 14, 0.92);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.terminal-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.terminal-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted-dark);
}

.terminal-bar span:nth-child(1) {
  background: #ff6a6a;
}

.terminal-bar span:nth-child(2) {
  background: #ffd15c;
}

.terminal-bar span:nth-child(3) {
  background: var(--success);
}

.terminal-bar p {
  margin-left: 8px;
  color: var(--muted-dark);
  font-family: monospace;
  font-size: 0.76rem;
}

.terminal-content {
  padding: 26px;
  color: #d9e7f3;
  font-family: monospace;
  font-size: 0.88rem;
}

.terminal-content p + p {
  margin-top: 14px;
}

.terminal-blue {
  color: var(--accent-strong);
}

.terminal-green {
  color: var(--success);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
}

.project-label {
  color: var(--accent-strong) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-content h3 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.project-content > p:not(.project-label) {
  margin-top: 18px;
  color: var(--muted);
}

.project-actions {
  margin-top: 30px;
}

.project-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.project-index {
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
}

.project-status {
  padding: 5px 8px;
  border: 1px solid rgba(80, 227, 164, 0.18);
  border-radius: 999px;
  color: #b8f2dc;
  background: rgba(80, 227, 164, 0.05);
  font-size: 0.7rem;
  font-weight: 700;
}

.project-status.muted {
  border-color: var(--border);
  color: var(--muted-dark);
  background: rgba(255, 255, 255, 0.02);
}

.project-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent-strong);
  font-weight: 800;
}

.project-link.disabled {
  color: var(--muted-dark);
  cursor: default;
}

.timeline {
  position: relative;
  max-width: 930px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 78px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(var(--accent), rgba(50, 182, 255, 0.04));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 34px;
  padding: 0 0 44px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 72px;
  top: 11px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--background-deep);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(50, 182, 255, 0.7);
}

.timeline-year {
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.timeline-content {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.timeline-tag {
  color: var(--muted-dark);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin-top: 6px;
  font-size: 1.35rem;
}

.timeline-content p {
  margin-top: 8px;
  color: var(--muted);
}

.certification-card span {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.certification-card h3 {
  margin-top: 12px;
}

.contact-section {
  padding-top: 72px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 50px;
  padding: 54px;
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 20%, rgba(50, 182, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(19, 31, 49, 0.94), rgba(8, 14, 24, 0.96));
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.contact-card p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
}

.contact-actions {
  max-width: 260px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted-dark);
  font-size: 0.82rem;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-layout a {
  color: var(--accent-strong);
}

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

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

.delay-1 {
  transition-delay: 0.12s;
}

@media (max-width: 980px) {
  .hero-layout,
  .about-layout,
  .featured-project-card,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 620px;
  }

  .project-visual {
    min-height: 380px;
  }

  .contact-actions {
    max-width: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 28px, var(--maximum-width));
  }

  .brand-text {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .menu-button.open span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.open span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    width: min(280px, calc(100vw - 28px));
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(12, 19, 31, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 9px;
  }

  .nav-links a:hover {
    background: rgba(50, 182, 255, 0.07);
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 70px);
  }

  .hero-layout {
    gap: 48px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .status-pill {
    border-radius: 16px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 18px;
  }

  .telemetry-ring {
    width: 165px;
    height: 165px;
  }

  .section {
    padding: 84px 0;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row .text-link {
    margin-top: 20px;
  }

  .skills-grid,
  .project-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 310px;
    padding: 22px;
  }

  .project-content {
    padding: 30px 24px;
  }

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

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

  .timeline-item::before {
    left: 4px;
  }

  .contact-card {
    padding: 34px 24px;
  }

  .footer-layout {
    flex-direction: column;
  }

  .cursor-glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* ===== Enhanced portfolio effects ===== */

.network-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.26;
}

.hero-grid {
  animation: grid-drift 22s linear infinite;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 54px 54px, 54px 54px;
  }
}

.speed-lines {
  animation: speed-drift 14s ease-in-out infinite alternate;
}

@keyframes speed-drift {
  from {
    transform: skewX(-18deg) rotate(-4deg) translateX(0);
    opacity: 0.16;
  }
  to {
    transform: skewX(-18deg) rotate(-4deg) translateX(-28px);
    opacity: 0.28;
  }
}

.system-strip {
  position: relative;
  z-index: 4;
  border-block: 1px solid var(--border);
  background: rgba(5, 9, 16, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.system-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-strip article {
  min-height: 100px;
  padding: 22px;
  border-right: 1px solid var(--border);
}

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

.system-strip span,
.system-strip strong {
  display: block;
}

.system-label {
  color: var(--muted-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.system-strip strong {
  margin-top: 7px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
}

.pulse-dot {
  display: inline-block !important;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px rgba(80, 227, 164, 0.8);
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.project-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  border: 1px solid var(--border-accent);
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.github-section {
  border-block: 1px solid var(--border);
  background:
    radial-gradient(circle at 16% 20%, rgba(50, 182, 255, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.012);
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.github-stat {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(19, 31, 49, 0.78), rgba(9, 15, 25, 0.92));
}

.github-stat span {
  color: var(--muted-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.github-stat strong {
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.github-note {
  margin-top: 16px;
  color: var(--muted-dark);
  font-size: 0.78rem;
}

.reveal-left {
  transform: translateX(-34px);
}

.reveal-right {
  transform: translateX(34px);
}

.reveal-left.visible,
.reveal-right.visible {
  transform: translateX(0);
}

@media (max-width: 900px) {
  .system-strip-grid,
  .github-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-strip article:nth-child(2) {
    border-right: 0;
  }

  .system-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .system-strip-grid,
  .github-stats-grid {
    grid-template-columns: 1fr;
  }

  .system-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .system-strip article:last-child {
    border-bottom: 0;
  }

  .reveal-left,
  .reveal-right {
    transform: translateY(24px);
  }

  .reveal-left.visible,
  .reveal-right.visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid,
  .speed-lines,
  .pulse-dot {
    animation: none !important;
  }
}


/* ===== Cybersecurity + F1 visual upgrade ===== */
:root {
  --cyber-green: #59f0bf;
  --hot-accent: #ff4fd8;
}

.cyber-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.04;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0 2px, rgba(255,255,255,.8) 3px 4px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.13) 0, rgba(255,255,255,.13) 1px, transparent 1px, transparent 4px);
}

.cyber-circuit-layer {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(50,182,255,.18) 8% 8.15%, transparent 8.15% 24%, rgba(89,240,191,.13) 24% 24.15%, transparent 24.15% 100%),
    linear-gradient(0deg, transparent 0 18%, rgba(50,182,255,.15) 18% 18.15%, transparent 18.15% 38%, rgba(138,125,255,.12) 38% 38.15%, transparent 38.15% 100%);
  mask-image: radial-gradient(circle at 72% 40%, black 0 34%, transparent 74%);
}

.cyber-circuit-layer::before,
.cyber-circuit-layer::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 160px 80px 0 -2px var(--cyber-green), 320px 180px 0 -2px var(--accent-secondary), 460px 60px 0 -2px var(--accent), 540px 240px 0 -2px var(--cyber-green);
  animation: cyber-node-pulse 3.4s ease-in-out infinite;
}

.cyber-circuit-layer::before { top: 18%; right: 15%; }
.cyber-circuit-layer::after { bottom: 22%; right: 24%; animation-delay: 1.2s; }

@keyframes cyber-node-pulse {
  0%,100% { opacity:.25; transform:scale(.95); }
  50% { opacity:.9; transform:scale(1.08); }
}

.f1-track-curve {
  position: absolute;
  right: -8%;
  top: 18%;
  width: 56%;
  height: 58%;
  border: 1px solid rgba(116,211,255,.18);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 48% 52% 46% 54% / 55% 44% 56% 45%;
  transform: rotate(-12deg) skewX(-7deg);
  filter: drop-shadow(0 0 18px rgba(50,182,255,.14));
}

.f1-track-curve::before,
.f1-track-curve::after {
  content:"";
  position:absolute;
  inset:7%;
  border:1px dashed rgba(89,240,191,.12);
  border-left-color:transparent;
  border-bottom-color:transparent;
  border-radius:inherit;
}

.f1-track-curve::after {
  inset:14%;
  border-style:solid;
  border-color:rgba(138,125,255,.08);
  border-left-color:transparent;
  border-bottom-color:transparent;
}

.hero-panel { isolation:isolate; }

.hud-corners span {
  position:absolute;
  width:22px;
  height:22px;
  opacity:.55;
}
.hud-corners span:nth-child(1){left:10px;top:10px;border-left:2px solid var(--accent-strong);border-top:2px solid var(--accent-strong);}
.hud-corners span:nth-child(2){right:10px;top:10px;border-right:2px solid var(--accent-strong);border-top:2px solid var(--accent-strong);}
.hud-corners span:nth-child(3){left:10px;bottom:10px;border-left:2px solid var(--accent-strong);border-bottom:2px solid var(--accent-strong);}
.hud-corners span:nth-child(4){right:10px;bottom:10px;border-right:2px solid var(--accent-strong);border-bottom:2px solid var(--accent-strong);}

.telemetry-bars {
  height:76px;
  display:flex;
  align-items:end;
  gap:8px;
  margin:18px 0 12px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01)),repeating-linear-gradient(90deg,transparent 0 20px,rgba(50,182,255,.04) 21px 22px);
}
.telemetry-bars span {
  width:100%;
  height:var(--level);
  border-radius:3px 3px 1px 1px;
  background:linear-gradient(180deg,var(--cyber-green),var(--accent) 58%,var(--accent-secondary));
  box-shadow:0 0 16px rgba(50,182,255,.18);
  transform-origin:bottom;
  animation:telemetry-rise 1.4s ease both;
}
.telemetry-bars span:nth-child(2){animation-delay:.12s}
.telemetry-bars span:nth-child(3){animation-delay:.24s}
.telemetry-bars span:nth-child(4){animation-delay:.36s}
.telemetry-bars span:nth-child(5){animation-delay:.48s}
@keyframes telemetry-rise{from{transform:scaleY(.08);opacity:.2}to{transform:scaleY(1);opacity:1}}

.section-divider {
  width:min(var(--maximum-width),calc(100% - 40px));
  height:34px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--accent-strong);
  font-family:"Space Grotesk",sans-serif;
  font-size:.72rem;
  letter-spacing:.12em;
}
.section-divider::before,
.section-divider::after {
  content:"";
  height:1px;
  flex:1;
  background:linear-gradient(90deg,transparent,rgba(50,182,255,.18),rgba(89,240,191,.16),transparent);
}
.section-divider span {
  min-width:34px;
  text-align:center;
  padding:4px 8px;
  border:1px solid var(--border-accent);
  border-radius:999px;
  background:rgba(50,182,255,.05);
}

.project-card,
.skill-card,
.certification-card,
.github-stat {
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.project-card::after,
.skill-card::after,
.certification-card::after,
.github-stat::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(120deg,transparent 0 36%,rgba(255,255,255,.035) 44%,transparent 52%);
  transform:translateX(-140%);
  transition:transform .8s ease;
}
.project-card:hover::after,
.skill-card:hover::after,
.certification-card:hover::after,
.github-stat:hover::after { transform:translateX(140%); }

.button-primary { position:relative; overflow:hidden; }
.button-primary::after {
  content:"";
  position:absolute;
  inset:-2px;
  background:linear-gradient(110deg,transparent 0 32%,rgba(255,255,255,.35) 45%,transparent 58%);
  transform:translateX(-140%);
  transition:transform .65s ease;
}
.button-primary:hover::after { transform:translateX(140%); }

.project-visual-ai::after {
  content:"SECURITY TELEMETRY";
  position:absolute;
  right:16px;
  bottom:12px;
  color:rgba(116,211,255,.42);
  font-family:monospace;
  font-size:.67rem;
  letter-spacing:.13em;
}

.terminal-window {
  transform:perspective(900px) rotateY(-3deg) rotateX(1deg);
  transition:transform .35s ease,box-shadow .35s ease;
}
.featured-project-card:hover .terminal-window {
  transform:perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow:0 40px 100px rgba(0,0,0,.52);
}

@media (max-width:760px) {
  .f1-track-curve { width:95%; right:-42%; top:20%; opacity:.55; }
  .cyber-circuit-layer { opacity:.11; }
  .scanline-overlay { opacity:.018; }
  .section-divider { width:calc(100% - 28px); }
}

@media (prefers-reduced-motion:reduce) {
  .cyber-circuit-layer::before,
  .cyber-circuit-layer::after,
  .telemetry-bars span { animation:none !important; }
}


/* ===== Recruiter actions + SOC dashboard ===== */

.nav-resume-link {
  padding: 9px 13px;
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  color: var(--accent-strong) !important;
  background: rgba(50, 182, 255, 0.06);
}

.nav-resume-link::after {
  display: none;
}

.nav-resume-link:hover {
  background: rgba(50, 182, 255, 0.12);
}

.recruiter-actions {
  gap: 12px;
}

.button-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
}

.button-ghost:hover {
  border-color: var(--border-accent);
  background: rgba(50, 182, 255, 0.06);
}

.soc-feed {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(2, 7, 13, 0.66);
}

.soc-feed-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-dark);
  font-family: monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.soc-event {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.soc-event:last-child {
  border-bottom: 0;
}

.soc-event p {
  color: var(--muted);
  font-family: monospace;
  font-size: 0.74rem;
  line-height: 1.45;
}

.soc-severity {
  min-width: 52px;
  padding: 4px 6px;
  border: 1px solid;
  border-radius: 999px;
  text-align: center;
  font-family: monospace;
  font-size: 0.58rem;
  font-weight: 800;
}

.soc-severity.low {
  border-color: rgba(50, 182, 255, 0.28);
  color: var(--accent-strong);
  background: rgba(50, 182, 255, 0.06);
}

.soc-severity.medium {
  border-color: rgba(255, 203, 92, 0.3);
  color: #ffdd8a;
  background: rgba(255, 203, 92, 0.06);
}

.soc-severity.resolved {
  border-color: rgba(89, 240, 191, 0.28);
  color: var(--cyber-green);
  background: rgba(89, 240, 191, 0.06);
}

@media (max-width: 760px) {
  .recruiter-actions .button {
    width: 100%;
  }

  .nav-resume-link {
    margin-top: 4px;
    text-align: center;
  }
}
