:root {
  --bg: #04050b;
  --bg-soft: #091120;
  --panel: rgba(10, 18, 33, 0.78);
  --panel-strong: #0d172a;
  --line: rgba(109, 150, 255, 0.18);
  --text: #f4f7ff;
  --muted: #9ba8c7;
  --primary: #4e7bff;
  --primary-soft: rgba(78, 123, 255, 0.18);
  --accent: #79d8ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(121, 216, 255, 0.55) rgba(7, 14, 28, 0.9);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(78, 123, 255, 0.2), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(121, 216, 255, 0.12), transparent 25%),
    radial-gradient(circle at 50% 0%, rgba(55, 90, 180, 0.2), transparent 35%),
    linear-gradient(180deg, #020308 0%, #050914 45%, #020308 100%);
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background:
    linear-gradient(180deg, rgba(6, 12, 24, 0.96), rgba(10, 18, 33, 0.92));
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.28);
}

body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(7, 14, 28, 0.92);
  background:
    linear-gradient(180deg, rgba(78, 123, 255, 0.88), rgba(121, 216, 255, 0.72));
  box-shadow:
    0 0 16px rgba(78, 123, 255, 0.28),
    0 0 24px rgba(121, 216, 255, 0.18);
}

body::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(102, 145, 255, 0.94), rgba(135, 226, 255, 0.82));
  box-shadow:
    0 0 18px rgba(78, 123, 255, 0.34),
    0 0 28px rgba(121, 216, 255, 0.22);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto -140px -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 123, 255, 0.22), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: bloomFloat 10s ease-in-out infinite alternate;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 123, 255, 0.16), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 220ms ease;
  filter: blur(8px);
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 96px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border: 1px solid rgba(101, 138, 229, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 19, 36, 0.54), rgba(6, 12, 24, 0.36));
  backdrop-filter: blur(18px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.brand,
.nav a,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  height: 80px;
  width: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(121, 216, 255, 0.1));
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 34px;
  padding: 6px 0 8px;
  color: var(--muted);
  transition: color 180ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #4e7bff 0%, #79d8ff 100%);
  transform: scaleX(0);
  opacity: 0;
  transform-origin: left;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.nav a:hover::after,
.nav a:focus-visible::after,
.nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 52px;
  padding: 38px 0 28px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.22));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px 8px 12px;
  margin: 0 0 20px;
  border: 1px solid rgba(121, 216, 255, 0.12);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(12, 25, 45, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.eyebrow-divider {
  color: rgba(121, 216, 255, 0.8);
  font-weight: 700;
}

.hero h1,
.section-heading h2,
.contact-banner h2 {
  margin: 0;
  font-family: "Syne", sans-serif;
  line-height: 1;
}

.hero h1 {
  max-width: none;
  font-size: clamp(3rem, 4.65vw, 4.95rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-wrap: initial;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.accent-line {
  color: #89b7ff;
  text-shadow:
    0 0 24px rgba(98, 149, 255, 0.18),
    0 0 60px rgba(78, 123, 255, 0.12);
}

.hero-text {
  max-width: 48ch;
  margin: 26px 0 0;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 34px 0 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

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

.button.primary {
  color: var(--text);
  background: linear-gradient(135deg, var(--primary), #2146b4);
  box-shadow: 0 18px 35px rgba(78, 123, 255, 0.28);
  animation: pulseGlow 3.2s ease-in-out infinite;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.signal-card,
.feature-strip article,
.project-card,
.visual-card,
.contact-banner {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  padding-top: 28px;
}

.signal-card {
  width: 100%;
  max-width: 640px;
  padding: 24px;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(102, 134, 210, 0.05);
}

.terminal-card {
  padding: 0;
  background:
    radial-gradient(circle at top right, rgba(93, 146, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(20, 28, 48, 0.94), rgba(7, 11, 22, 0.98)),
    var(--panel);
}

.signal-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 123, 255, 0.28), transparent 70%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
}

.orb-one {
  top: 18px;
  right: 28px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(121, 216, 255, 0.26), transparent 72%);
  animation: floatOrb 7s ease-in-out infinite;
}

.orb-two {
  bottom: 42px;
  left: -10px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(78, 123, 255, 0.24), transparent 70%);
  animation: floatOrb 9s ease-in-out infinite reverse;
}

.project-image::after,
.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 3, 8, 0.05), rgba(2, 3, 8, 0.65)),
    linear-gradient(135deg, rgba(78, 123, 255, 0.2), transparent 45%);
}

.project-image img,
.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 700ms ease;
  animation: imageDrift 14s ease-in-out infinite alternate;
}
.project-tag,
.terminal-topbar p {
  margin: 0;
}

.project-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(121, 216, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.control.red {
  background: #ff5f56;
}

.control.yellow {
  background: #ffbd2f;
}

.control.green {
  background: #27c93f;
}

.terminal-topbar p {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.terminal-window {
  padding: 18px 18px 20px;
  min-height: 390px;
  font-family: "Consolas", "Courier New", monospace;
  position: relative;
  overflow-x: auto;
}

.terminal-window::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(121, 216, 255, 0.03), transparent 18%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 28px
    );
  pointer-events: none;
}

.terminal-line {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  color: #dfe9ff;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: nowrap;
}

.prompt {
  color: #7bdff6;
}

.symbol {
  color: #8aa7ff;
}

.path {
  color: #b887ff;
}

.command {
  color: #f7f9ff;
}

.ok {
  color: #61f2a2;
  text-shadow: 0 0 10px rgba(97, 242, 162, 0.25);
}

.text {
  color: #d3dcf5;
}

.value {
  color: #8fb3ff;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tag.blue {
  color: #90c8ff;
  background: rgba(84, 140, 255, 0.14);
}

.tag.cyan {
  color: #7ff6ff;
  background: rgba(63, 222, 255, 0.12);
}

.tag.purple {
  color: #d3a5ff;
  background: rgba(170, 100, 255, 0.14);
}

.tag.amber {
  color: #ffc978;
  background: rgba(255, 178, 73, 0.14);
}

.tag.green {
  color: #83ffba;
  background: rgba(62, 204, 120, 0.14);
}

.typing {
  color: #f7f9ff;
  overflow: hidden;
  white-space: nowrap;
  width: 0;
  animation: typing 3s steps(25, end) 1.1s forwards;
}

.muted-line {
  color: rgba(255, 255, 255, 0.45);
}

.cursor-block {
  width: 10px;
  height: 18px;
  background: #8fb3ff;
  box-shadow: 0 0 12px rgba(143, 179, 255, 0.25);
  animation: caretBlink 1s step-end infinite;
}

.feature-strip,
.projects,
.experience-grid {
  display: grid;
  gap: 22px;
}

.feature-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.tech-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.feature-strip article,
.project-card,
.visual-card,
.contact-banner {
  border-radius: 26px;
  padding: 26px;
}

.feature-strip article {
  animation: cardFloat 7s ease-in-out infinite;
  backdrop-filter: blur(12px);
}

.feature-strip article:nth-child(2) {
  animation-delay: 1s;
}

.feature-strip article:nth-child(3) {
  animation-delay: 2s;
}

.feature-strip article:nth-child(4) {
  animation-delay: 0.5s;
}

.feature-strip article:nth-child(5) {
  animation-delay: 1.5s;
}

.feature-strip article:nth-child(6) {
  animation-delay: 2.5s;
}

.tech-tile {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.tech-tile::before {
  content: "";
  position: absolute;
  inset: auto -35px -45px auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121, 216, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.tech-icon {
  width: 72px;
  height: 72px;
  padding: 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 30px rgba(0, 0, 0, 0.18);
}

.tech-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tech-meta {
  display: grid;
  gap: 8px;
}

.tech-tile h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.tech-meta span {
  color: var(--muted);
  line-height: 1.6;
}

.tech-tile.python .tech-icon {
  background: linear-gradient(135deg, rgba(54, 109, 157, 0.18), rgba(244, 193, 75, 0.14));
}

.tech-tile.javascript .tech-icon {
  background: linear-gradient(135deg, rgba(240, 219, 79, 0.2), rgba(199, 166, 0, 0.12));
}

.tech-tile.html .tech-icon {
  background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(228, 77, 38, 0.14));
}

.tech-tile.css .tech-icon {
  background: linear-gradient(135deg, rgba(38, 77, 228, 0.18), rgba(41, 101, 241, 0.14));
}

.tech-tile.lua .tech-icon {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.18), rgba(91, 124, 255, 0.14));
}

.tech-tile.sql .tech-icon {
  background: linear-gradient(135deg, rgba(31, 157, 139, 0.18), rgba(71, 214, 194, 0.14));
}

.feature-strip p,
.project-card h3,
.tech-tile h3 {
  margin: 0 0 12px;
}

.feature-strip span,
.project-card p {
  color: var(--muted);
  line-height: 1.8;
}

.section-heading {
  padding: 76px 0 24px;
}

.section-heading h2,
.contact-banner h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.projects {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 0;
  border-radius: 34px;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.project-card::before,
.contact-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(121, 216, 255, 0.08), transparent 45%);
  opacity: 0;
  transition: opacity 220ms ease;
  pointer-events: none;
}

.project-card:hover::before,
.contact-banner:hover::before {
  opacity: 1;
}

.project-card:hover,
.visual-card:hover {
  transform: translateY(-6px);
  border-color: rgba(121, 216, 255, 0.32);
  box-shadow:
    var(--shadow),
    0 0 40px rgba(78, 123, 255, 0.12);
}

.project-card:hover .project-image img,
.visual-card:hover img {
  transform: scale(1.09);
}

.project-image {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
}

.project-image::after {
  background:
    linear-gradient(180deg, rgba(2, 3, 8, 0.08), rgba(2, 3, 8, 0.38) 54%, rgba(2, 3, 8, 0.72) 100%),
    linear-gradient(135deg, rgba(78, 123, 255, 0.12), transparent 45%);
}

.project-image img {
  filter: grayscale(0.5) saturate(0.3) brightness(0.42);
  transition:
    transform 700ms ease,
    filter 280ms ease;
}

.project-card:hover .project-image img {
  filter: grayscale(0) saturate(1) brightness(0.92);
}

.project-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 102px;
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(121, 216, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 16, 30, 0.08), rgba(9, 16, 30, 0.28)),
    rgba(7, 13, 25, 0.14);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-copy {
  min-width: 0;
}

.project-card h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.15;
}

.project-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  background: linear-gradient(135deg, #4e7bff, #2146b4);
  box-shadow:
    0 14px 30px rgba(78, 123, 255, 0.28),
    0 0 24px rgba(121, 216, 255, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-button:hover,
.project-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(78, 123, 255, 0.32),
    0 0 28px rgba(121, 216, 255, 0.18);
}

.visual-band {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  margin-top: 28px;
}

.visual-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  padding: 0;
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.visual-card.large {
  min-height: 340px;
}

.visual-overlay {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 1;
}

.visual-overlay h3 {
  margin: 0;
  max-width: 18ch;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.contact-banner {
  margin-top: 80px;
  display: grid;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.contact-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

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

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-width: 220px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  width: 100%;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(121, 216, 255, 0.14);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(121, 216, 255, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.contact-link.primary {
  background: linear-gradient(135deg, #4e7bff, #2146b4);
  box-shadow:
    0 14px 30px rgba(78, 123, 255, 0.24),
    0 0 24px rgba(121, 216, 255, 0.12);
  border-color: transparent;
}

.contact-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-banner::after {
  content: "";
  position: absolute;
  inset: auto -120px -140px auto;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 123, 255, 0.28), transparent 70%);
  pointer-events: none;
  animation: bloomFloat 8s ease-in-out infinite alternate;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@keyframes pulseGlow {
  0% {
    box-shadow: 0 18px 35px rgba(78, 123, 255, 0.2);
  }
  50% {
    box-shadow:
      0 20px 42px rgba(78, 123, 255, 0.35),
      0 0 28px rgba(121, 216, 255, 0.12);
  }
  100% {
    box-shadow: 0 18px 35px rgba(78, 123, 255, 0.2);
  }
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 26ch;
  }
}

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

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -16px, 0) scale(1.08);
  }
  100% {
    transform: translate3d(10px, 8px, 0) scale(0.96);
  }
}

@keyframes bloomFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(30px, -20px, 0) scale(1.12);
  }
}

@keyframes imageDrift {
  0% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  100% {
    transform: scale(1.1) translate3d(0, -10px, 0);
  }
}

@keyframes cardFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fadeInGlow {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .projects,
  .visual-band,
  .experience-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .tech-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terminal-line {
    flex-wrap: wrap;
    white-space: normal;
  }

  .hero {
    padding-top: 18px;
  }

  .hero h1,
  .section-heading h2,
  .contact-banner h2 {
    max-width: none;
  }

  .headline-line {
    white-space: normal;
  }

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

  .contact-actions {
    width: 100%;
    max-width: 320px;
  }

  .hero-panel {
    padding-top: 0;
  }

  .project-dock {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px 18px;
  }

}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
  }

  .topbar {
    top: 10px;
    padding: 16px 18px;
    border-radius: 18px;
  }

  .nav {
    display: none;
  }

  .brand-logo {
    height: 26px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 11vw, 4.3rem);
    line-height: 0.96;
  }

  .eyebrow-icon {
    width: 34px;
    height: 34px;
  }

  .button {
    width: 100%;
  }

  .tech-strip {
    grid-template-columns: 1fr;
  }

  .cursor-glow {
    width: 220px;
    height: 220px;
  }
}

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

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