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

:root {
  --bg: #070b14;
  --panel: #0b1220;
  --panel2: #0e1728;
  --text: #e8eef9;
  --muted: #93a1b7;
  --line: rgba(148, 163, 184, 0.14);
  --accent: #5eead4;
  --accent2: #60a5fa;
  --purple: #a78bfa;
  --green: #4ade80;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 1px
    );
  background-size: 60px 60px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -2;
}

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

button {
  font: inherit;
}

/* ================================
   GLOBAL EFFECTS
================================ */

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(94, 234, 212, 0.08),
    transparent 68%
  );
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: -1;
}

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

/* ================================
   NAVIGATION
================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  z-index: 50;
  transition: 0.3s;
}

.nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 15px "JetBrains Mono", monospace;
  letter-spacing: -0.4px;
}

.brand-mark {
  color: var(--accent);
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: 27px;
  margin-left: auto;
  margin-right: 30px;
}

.nav-links a {
  font-size: 12px;
  color: #aab6c8;
  transition: 0.2s;
}

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

.nav-cta {
  font: 600 11px "JetBrains Mono", monospace;
  border: 1px solid rgba(94, 234, 212, 0.28);
  padding: 10px 15px;
  border-radius: 7px;
  color: var(--accent);
  transition: 0.25s;
}

.nav-cta:hover {
  background: rgba(94, 234, 212, 0.08);
  transform: translateY(-1px);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: white;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 23px;
  height: 2px;
  background: #cbd5e1;
  margin: 5px;
}

/* ================================
   SECTIONS
================================ */

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding: 115px 0;
}

/* ================================
   HERO
================================ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 130px;
}

.hero-grid {
  position: absolute;
  width: 700px;
  height: 700px;
  right: -190px;
  top: 40px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(96, 165, 250, 0.12),
      rgba(167, 139, 250, 0.06) 38%,
      transparent 68%
    );
  filter: blur(2px);
  z-index: -1;
}

.hero-content {
  width: 58%;
  position: relative;
  z-index: 2;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.045);
  color: #9ce8b3;
  font: 500 10px "JetBrains Mono", monospace;
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 13px var(--green);
  animation: pulse 2s infinite;
}

.eyebrow {
  font: 600 10px "JetBrains Mono", monospace;
  letter-spacing: 2.5px;
  color: #718096;
  margin-bottom: 13px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -4px;
  max-width: 800px;
}

.gradient-text {
  background: linear-gradient(
    100deg,
    var(--accent),
    var(--accent2) 52%,
    var(--purple)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 15px;
  margin: 24px 0 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  transition: 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: #061014;
  box-shadow: 0 8px 30px rgba(94, 234, 212, 0.13);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 13px 38px rgba(94, 234, 212, 0.22);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.018);
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 212, 0.3);
  color: var(--accent);
  transform: translateY(-3px);
}

.quick-stats {
  display: flex;
  gap: 0;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.quick-stats div {
  padding-right: 30px;
  margin-right: 30px;
  border-right: 1px solid var(--line);
}

.quick-stats div:last-child {
  border: 0;
}

.quick-stats strong {
  display: block;
  font: 700 19px "JetBrains Mono", monospace;
}

.quick-stats span {
  display: block;
  color: #68778e;
  font-size: 10px;
  margin-top: 3px;
}

/* ================================
   TERMINAL
================================ */

.terminal-card {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-43%);
  width: 410px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 13px;
  background: rgba(10, 17, 29, 0.86);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.terminal-top {
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  font: 500 9px "JetBrains Mono", monospace;
  color: #69778b;
}

.terminal-dots {
  display: flex;
  gap: 5px;
}

.terminal-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #475569;
}

.terminal-lock {
  font-size: 7px;
  color: #64748b;
}

.terminal-body {
  padding: 21px 19px 24px;
  font: 500 10px/2 "JetBrains Mono", monospace;
  color: #cbd5e1;
}

.prompt {
  color: var(--accent);
}

.path {
  color: #60a5fa;
}

.out {
  color: #8391a6;
}

.table-head {
  color: #607087;
}

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

.caret {
  color: var(--accent);
  animation: blink 1s infinite;
}

.scroll-cue {
  position: absolute;
  bottom: 25px;
  left: 0;
  color: #4f5d72;
  font: 500 9px "JetBrains Mono", monospace;
  display: flex;
  gap: 10px;
  align-items: center;
}

.scroll-cue span {
  width: 22px;
  height: 1px;
  background: #475569;
}

/* ================================
   SECTION HEAD
================================ */

.section-head {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 55px;
}

.section-number {
  font: 600 11px "JetBrains Mono", monospace;
  color: var(--accent);
  padding-top: 7px;
}

.section-head h2 {
  font-size: clamp(32px, 4.4vw, 53px);
  line-height: 1.1;
  letter-spacing: -2px;
}

/* ================================
   ABOUT
================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-copy {
  color: var(--muted);
  font-size: 14px;
}

.about-copy p {
  margin-bottom: 17px;
}

.about-copy .lead {
  font-size: 19px;
  color: #d6dfeb;
  line-height: 1.65;
}

.about-links {
  display: flex;
  gap: 22px;
  margin-top: 27px;
  font: 600 11px "JetBrains Mono", monospace;
}

.about-links a {
  color: var(--accent);
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
  padding-bottom: 3px;
}

.about-card {
  position: relative;
  background: linear-gradient(
    145deg,
    #0d1828,
    #090f1b
  );
  border: 1px solid var(--line);
  padding: 34px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.card-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -90px;
  background: var(--accent);
  opacity: 0.08;
  filter: blur(45px);
  border-radius: 50%;
}

.code-line {
  display: grid;
  grid-template-columns: 35px 105px 1fr;
  font: 500 11px/2.4 "JetBrains Mono", monospace;
}

.code-line span {
  color: #39475a;
}

.code-line b {
  color: #7dd3fc;
  font-weight: 500;
}

.code-line em {
  color: #8ee4ba;
  font-style: normal;
}

/* ================================
   TECH STACK
================================ */

.stack-section {
  padding-top: 75px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stack-card {
  background: rgba(12, 19, 32, 0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  min-height: 205px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.stack-card:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.stack-card.featured {
  background: linear-gradient(
    145deg,
    rgba(15, 31, 44, 0.9),
    rgba(10, 18, 29, 0.8)
  );
  border-color: rgba(94, 234, 212, 0.17);
}

.stack-icon {
  font-size: 24px;
  color: var(--accent);
  height: 42px;
}

.stack-card h3 {
  font-size: 16px;
  margin-bottom: 7px;
}

.stack-card p {
  font-size: 11px;
  color: #718096;
  min-height: 43px;
}

.chips,
.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chips span,
.project-tags span {
  font: 500 9px "JetBrains Mono", monospace;
  color: #8492a7;
  border: 1px solid var(--line);
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.015);
}

/* ================================
   PROJECTS
================================ */

.projects-section {
  padding-top: 90px;
}

.project-filters {
  display: flex;
  gap: 7px;
  margin: -20px 0 25px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: #718096;
  padding: 7px 12px;
  border-radius: 6px;
  font: 500 9px "JetBrains Mono", monospace;
  cursor: pointer;
  transition: 0.2s;
}

.filter:hover,
.filter.active {
  color: var(--accent);
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(94, 234, 212, 0.04);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(
    145deg,
    rgba(13, 21, 35, 0.82),
    rgba(8, 14, 24, 0.88)
  );
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: var(--accent2);
  opacity: 0;
  filter: blur(55px);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.27);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28);
}

.project-card:hover::before {
  opacity: 0.07;
}

.project-card.hidden {
  display: none;
}

.project-featured {
  grid-column: span 2;
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 9px "JetBrains Mono", monospace;
}

.project-no {
  color: var(--accent);
}

.project-type {
  color: #58667b;
}

.project-card h3 {
  font-size: 18px;
  margin: 17px 0 7px;
}

.project-card p {
  color: #7e8ca1;
  font-size: 11px;
  line-height: 1.75;
}

/* ================================
   PROJECT LINKS
================================ */

.project-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #aab8ca;
  font: 600 10px "JetBrains Mono", monospace;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
  white-space: nowrap;
}

.project-link span {
  color: var(--accent);
  transition: transform 0.25s ease;
}

.project-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.project-link:hover span {
  transform: translate(3px, -2px);
}

/* ================================
   PROJECT VISUALS
================================ */

.project-visual {
  height: 170px;
  border: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 9px;
  margin-top: 14px;
  position: relative;
  overflow: hidden;
  background: #080e18;
}

.aws-visual {
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(96, 165, 250, 0.11),
      transparent 42%
    ),
    #080e18;
}

.cloud-orb {
  position: absolute;
  left: 50%;
  top: 23px;
  transform: translateX(-50%);
  font-size: 34px;
  color: #60a5fa;
  filter: drop-shadow(
    0 0 18px rgba(96, 165, 250, 0.4)
  );
  animation: cloudFloat 4s ease-in-out infinite;
}

.arch-node {
  position: absolute;
  font: 600 8px "JetBrains Mono", monospace;
  padding: 8px 10px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: #0b1727;
  color: #9cc9ff;
  border-radius: 5px;
}

.n1 {
  left: 40px;
  bottom: 32px;
}

.n2 {
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
}

.n3 {
  right: 105px;
  bottom: 32px;
}

.n4 {
  right: 24px;
  bottom: 32px;
}

.connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    #60a5fa,
    transparent
  );
  bottom: 55px;
  width: 95px;
  animation: connectionPulse 2.5s ease-in-out infinite;
}

.c1 {
  left: 80px;
}

.c2 {
  right: 75px;
}

.docker-visual,
.expense-visual,
.k8s-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.docker-box {
  font-size: 34px;
  text-align: center;
  color: #60a5fa;
  animation: dockerFloat 4s ease-in-out infinite;
}

.docker-box small {
  display: block;
  font: 600 8px "JetBrains Mono", monospace;
  color: #7790ad;
  margin-top: 4px;
}

.service-row {
  position: absolute;
  bottom: 17px;
  display: flex;
  gap: 8px;
}

.service-row b {
  font: 600 7px "JetBrains Mono", monospace;
  color: #8799b0;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 4px;
}

.tier {
  display: flex;
  gap: 8px;
}

.tier i {
  font: 600 8px "JetBrains Mono", monospace;
  font-style: normal;
  color: #9ab0c8;
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 5px;
}

.flow-line {
  position: absolute;
  width: 125px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.shield {
  position: absolute;
  right: 22px;
  top: 20px;
  color: var(--green);
  font-size: 20px;
  animation: shieldPulse 2s ease-in-out infinite;
}

.pipeline {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 600 7px "JetBrains Mono", monospace;
  color: #91a6bd;
}

.pipeline b {
  color: var(--accent);
  font-size: 13px;
}

.pipeline-status {
  position: absolute;
  bottom: 18px;
  color: var(--green);
  font: 600 8px "JetBrains Mono", monospace;
}

.bucket,
.gha {
  padding: 14px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 6px;
  color: var(--accent);
  font: 800 16px "JetBrains Mono", monospace;
}

.bucket {
  animation: bucketPulse 3s ease-in-out infinite;
}

.gha {
  color: #a78bfa;
  font-size: 12px;
}

.gha small {
  font-size: 7px;
  color: #8793a8;
}

.upload-arrow {
  font-size: 25px;
  color: #64748b;
  margin: 0 18px;
  animation: uploadMove 2s ease-in-out infinite;
}

.k8s {
  font-size: 43px;
  color: #60a5fa;
  filter: drop-shadow(
    0 0 18px rgba(96, 165, 250, 0.3)
  );
  animation: k8sRotate 8s linear infinite;
}

.pod {
  position: absolute;
  width: 30px;
  height: 22px;
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 4px;
  background: rgba(94, 234, 212, 0.05);
  animation: podPulse 2.5s ease-in-out infinite;
}

.p1 {
  top: 28px;
  left: 30px;
}

.p2 {
  top: 45px;
  right: 30px;
  animation-delay: 0.7s;
}

.p3 {
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1.2s;
}

/* ================================
   EXPERIENCE
================================ */

.experience-section {
  padding-top: 80px;
}

.timeline {
  position: relative;
  margin-left: 125px;
  border-left: 1px solid var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 55px 45px;
  max-width: 850px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  left: -5px;
  top: 4px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow:
    0 0 0 5px rgba(94, 234, 212, 0.04);
}

.timeline-date {
  position: absolute;
  left: -125px;
  top: 0;
  width: 95px;
  text-align: right;
  color: #4f5d72;
  font: 600 9px "JetBrains Mono", monospace;
}

.timeline-content h3 {
  font-size: 17px;
}

.timeline-content h4 {
  font-size: 11px;
  color: var(--accent2);
  font-weight: 500;
  margin: 4px 0 10px;
}

.timeline-content p {
  font-size: 11px;
  color: #758399;
  max-width: 700px;
}

/* ================================
   WRITING
================================ */

.writing-section {
  padding-top: 100px;
}

.writing-panel {
  border: 1px solid rgba(94, 234, 212, 0.14);
  border-radius: 15px;
  padding: 50px 55px;
  background:
    radial-gradient(
      circle at 85% 50%,
      rgba(94, 234, 212, 0.09),
      transparent 32%
    ),
    linear-gradient(
      120deg,
      #0b1722,
      #0b1220
    );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.writing-panel h2 {
  font-size: clamp(30px, 4vw, 47px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.writing-panel p:not(.eyebrow) {
  color: #77869a;
  font-size: 12px;
  max-width: 650px;
  margin-top: 15px;
}

/* ================================
   CONTACT
================================ */

.contact-section {
  text-align: center;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-orbit {
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(94, 234, 212, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 100px rgba(94, 234, 212, 0.05) inset;
  animation: orbitPulse 6s ease-in-out infinite;
}

.contact-orbit:before,
.contact-orbit:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(96, 165, 250, 0.08);
  border-radius: 50%;
  inset: 55px;
}

.contact-orbit:after {
  inset: 115px;
}

.contact-content {
  position: relative;
  max-width: 780px;
}

.contact-content h2 {
  font-size: clamp(42px, 6vw, 70px);
  line-height: 1.03;
  letter-spacing: -3px;
}

.contact-content > p:not(.eyebrow) {
  color: #77869a;
  font-size: 13px;
  max-width: 580px;
  margin: 20px auto 28px;
}

.contact-actions {
  justify-content: center;
}

/* ================================
   FOOTER
================================ */

.footer {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
  padding: 25px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #536176;
  font: 500 9px "JetBrains Mono", monospace;
}

.footer .brand-mark {
  margin-right: 5px;
}

/* ================================
   BACK TO TOP
================================ */

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(8px);
  color: var(--accent);
  border-radius: 7px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 40;
}

.back-top:hover {
  border-color: rgba(94, 234, 212, 0.35);
  transform: translateY(-3px);
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ================================
   REVEAL ANIMATION
================================ */

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

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

/* ================================
   KEYFRAMES
================================ */

@keyframes pulse {
  50% {
    box-shadow: 0 0 3px var(--green);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes float {
  50% {
    transform: translateY(calc(-43% - 9px));
  }
}

@keyframes cloudFloat {
  50% {
    transform: translate(-50%, -6px);
  }
}

@keyframes dockerFloat {
  50% {
    transform: translateY(-6px);
  }
}

@keyframes connectionPulse {
  50% {
    opacity: 0.35;
  }
}

@keyframes shieldPulse {
  50% {
    transform: scale(1.12);
  }
}

@keyframes bucketPulse {
  50% {
    box-shadow: 0 0 22px rgba(94, 234, 212, 0.12);
  }
}

@keyframes uploadMove {
  50% {
    transform: translateY(-5px);
  }
}

@keyframes podPulse {
  50% {
    box-shadow:
      0 0 15px rgba(94, 234, 212, 0.08);
  }
}

@keyframes k8sRotate {
  50% {
    transform: rotate(8deg) scale(1.04);
  }
}

@keyframes orbitPulse {
  50% {
    transform: scale(1.015);
    opacity: 0.8;
  }
}

/* ================================
   TABLET
================================ */

@media (max-width: 950px) {

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-cta {
    margin-left: auto;
    margin-right: 14px;
  }

  .hero {
    display: block;
  }

  .hero-content {
    width: 100%;
  }

  .terminal-card {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    margin: 55px auto 0;
    max-width: 600px;
  }

  .quick-stats {
    margin-top: 38px;
  }

  .scroll-cue {
    display: none;
  }

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

  .about-grid {
    gap: 35px;
  }

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

  .project-featured {
    grid-column: auto;
  }

  .project-visual {
    height: 160px;
  }
}

/* ================================
   MOBILE
================================ */

@media (max-width: 650px) {

  .section {
    width: min(100% - 30px, 1180px);
    padding: 80px 0;
  }

  .nav {
    padding: 0 15px;
    height: 66px;
  }

  .nav-cta {
    padding: 8px 10px;
  }

  .hero {
    padding-top: 105px;
  }

  .hero h1 {
    font-size: 45px;
    letter-spacing: -2.5px;
  }

  .hero-copy {
    font-size: 13px;
  }

  .quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px;
  }

  .quick-stats div {
    border: 0;
    margin: 0;
    padding: 0;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 35px;
  }

  .section-head h2 {
    font-size: 33px;
  }

  .about-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 23px;
  }

  .code-line {
    grid-template-columns: 25px 80px 1fr;
    font-size: 9px;
  }

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

  .project-featured {
    grid-column: auto;
  }

  .project-visual {
    height: 145px;
  }

  /* Project links mobile */

  .project-links {
    gap: 12px;
    min-height: 45px;
  }

  .project-link {
    font-size: 9px;
  }

  .project-links .project-link:only-child {
    justify-content: flex-start;
  }

  .timeline {
    margin-left: 10px;
  }

  .timeline-item {
    padding-left: 30px;
    padding-bottom: 43px;
  }

  .timeline-date {
    position: static;
    text-align: left;
    width: auto;
    margin-bottom: 6px;
  }

  .timeline-dot {
    left: -5px;
  }

  .writing-panel {
    padding: 35px 25px;
    display: block;
  }

  .writing-panel .btn {
    margin-top: 25px;
  }

  .footer {
    display: block;
    text-align: center;
    line-height: 2;
  }

  .footer p {
    margin-top: 5px;
  }

  .cursor-glow {
    display: none;
  }

  .contact-orbit {
    width: 420px;
    height: 420px;
  }

  .pipeline {
    gap: 5px;
  }

  .pipeline span {
    font-size: 6px;
  }

  .pipeline b {
    font-size: 10px;
  }

  .n1 {
    left: 15px;
  }

  .n3 {
    right: 75px;
  }

  .n4 {
    right: 12px;
  }

  .c1 {
    left: 50px;
    width: 65px;
  }

  .c2 {
    right: 45px;
    width: 65px;
  }
}

/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 420px) {

  .hero h1 {
    font-size: 40px;
  }

  .project-card {
    padding: 17px;
  }

  .project-card h3 {
    font-size: 16px;
  }

  .project-card p {
    font-size: 10px;
  }

  .project-links {
    flex-wrap: wrap;
  }

  .project-links .project-link {
    font-size: 8px;
  }

  .project-visual {
    height: 135px;
  }

  .service-row {
    gap: 4px;
  }

  .service-row b {
    padding: 4px 6px;
  }
}

/* ================================
   MOBILE NAVIGATION
================================ */

@media (max-width: 950px) {

  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 66px;
    left: 15px;
    right: 15px;
    flex-direction: column;
    gap: 0;
    padding: 10px;
    background: rgba(9, 15, 26, 0.97);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    animation: mobileMenuIn 0.2s ease;
  }

  .nav-links.mobile-open a {
    padding: 12px 10px;
  }

  .nav-links.mobile-open a:hover {
    background: rgba(94, 234, 212, 0.04);
  }
}

@keyframes mobileMenuIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================
   ACCESSIBILITY
================================ */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

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

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