:root {
  --bg: #040814;
  --bg-elevated: rgba(9, 16, 36, 0.86);
  --surface: rgba(16, 24, 55, 0.42);
  --surface-strong: rgba(13, 21, 49, 0.75);
  --border: rgba(144, 173, 255, 0.18);
  --border-strong: rgba(130, 208, 255, 0.35);
  --text: #eef3ff;
  --muted: #aab6dc;
  --cyan: #84f5ff;
  --blue: #59b2ff;
  --purple: #9c7dff;
  --pink: #ea72ff;
  --shadow: 0 24px 80px rgba(7, 14, 33, 0.5);
  --radius: 28px;
  --radius-sm: 18px;
  --container: min(1140px, calc(100% - 2rem));
  --header-height: 88px;
  --section-glow: linear-gradient(135deg, rgba(89, 178, 255, 0.16), rgba(156, 125, 255, 0.08));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(71, 129, 255, 0.2), transparent 30%),
    radial-gradient(circle at 82% 9%, rgba(180, 75, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #040814 0%, #060b1d 46%, #03050d 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

#particle-canvas,
.bg-grid,
.bg-glow {
  position: absolute;
  inset: 0;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(112, 133, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 133, 255, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 94%);
}

.bg-glow {
  filter: blur(80px);
  opacity: 0.48;
}

.glow-one {
  background: radial-gradient(circle, rgba(78, 162, 255, 0.5), transparent 55%);
  transform: translate(-24%, -12%);
}

.glow-two {
  background: radial-gradient(circle, rgba(198, 80, 255, 0.35), transparent 55%);
  transform: translate(48%, 24%);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 1rem auto auto 50%;
  width: min(82vw, 68rem);
  height: 100%;
  transform: translateX(-50%);
  border-radius: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
  border: 1px solid rgba(124, 149, 255, 0.06);
  opacity: 0.7;
  pointer-events: none;
}

.glass-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(10, 16, 37, 0.5);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  isolation: isolate;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  transition: padding 0.25s ease, transform 0.25s ease;
}

.header.scrolled {
  padding: 0.65rem 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(4, 8, 24, 0.28);
  border: 1px solid rgba(120, 141, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled .navbar {
  background: rgba(7, 12, 31, 0.84);
  border-color: rgba(140, 170, 255, 0.28);
  box-shadow: 0 20px 60px rgba(5, 10, 27, 0.4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, rgba(84, 188, 255, 0.95), rgba(151, 109, 255, 0.88));
  box-shadow: 0 0 30px rgba(98, 177, 255, 0.42);
}

.brand-text {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-shadow: 0 0 12px rgba(115, 198, 255, 0.55);
}

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

.menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.32rem auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 1rem);
  padding-top: 2rem;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-gradient,
.hero-rings {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  background:
    radial-gradient(circle at 20% 18%, rgba(70, 168, 255, 0.24), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(180, 88, 255, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(18, 30, 69, 0.18), rgba(7, 13, 31, 0));
  animation: heroShift 18s ease-in-out infinite;
}

.hero-gradient-alt {
  mix-blend-mode: screen;
  opacity: 0.65;
  animation-delay: -9s;
}

.hero-rings {
  inset: 8% 12%;
  border-radius: 32px;
  border: 1px solid rgba(126, 150, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 42px rgba(76, 152, 255, 0.08);
  mask-image: radial-gradient(circle at center, transparent 18%, rgba(0, 0, 0, 0.9) 58%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(45px);
  opacity: 0.5;
  animation: floatGlow 16s ease-in-out infinite;
}

.aurora-one {
  top: 8%;
  left: -6%;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(88, 181, 255, 0.32), transparent 60%);
}

.aurora-two {
  right: -8%;
  bottom: 2%;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle, rgba(204, 88, 255, 0.22), transparent 60%);
  animation-delay: -6s;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Orbitron", sans-serif;
  line-height: 1.02;
}

.hero h1 {
  font-size: clamp(3.5rem, 8vw, 6.9rem);
  text-shadow: 0 0 34px rgba(97, 175, 255, 0.2);
}

.hero-role {
  margin: 1rem 0 0;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  color: #d7e0ff;
}

.hero-tagline,
.about-card p,
.skill-card p,
.project-card p,
.timeline-item p,
.contact-panel,
.form-note {
  color: var(--muted);
  line-height: 1.78;
}

.hero-tagline {
  max-width: 42rem;
  margin: 1.35rem 0 0;
  font-size: 1.08rem;
}

.hero-actions,
.project-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-pills span,
.project-tags span {
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 164, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe7ff;
  font-size: 0.92rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.24), transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.button:hover {
  transform: translateY(-3px);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.22);
}

.button:hover::before {
  transform: translateX(100%);
}

.button-primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 14px 36px rgba(102, 183, 255, 0.3);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(108, 188, 255, 0.38);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(133, 162, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.button-secondary:hover {
  border-color: var(--border-strong);
  box-shadow:
    0 12px 34px rgba(88, 129, 255, 0.18),
    0 0 24px rgba(125, 208, 255, 0.12);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  border-radius: 22px;
  padding: 1.15rem 1rem;
}

.stat-value {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
  font-size: 1.3rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.profile-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: min(30rem, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.orb-core {
  display: grid;
  place-items: center;
  width: 48%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(80, 174, 255, 0.85), rgba(161, 94, 255, 0.76));
  box-shadow: 0 0 50px rgba(106, 183, 255, 0.38);
}

.core-text {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
}

.orb-ring {
  position: absolute;
  border: 1px solid rgba(143, 205, 255, 0.22);
  border-radius: 50%;
}

.orb-ring-a {
  width: 78%;
  height: 78%;
  animation: orbit 18s linear infinite;
}

.orb-ring-b {
  width: 92%;
  height: 92%;
  border-style: dashed;
  animation: orbit-reverse 24s linear infinite;
}

.signal-card {
  position: absolute;
  right: 8%;
  bottom: 12%;
  max-width: 13rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
}

.signal-title {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.signal-value {
  color: var(--text);
  line-height: 1.45;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 2.6rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.about-grid,
.contact-grid,
.skills-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.about-card,
.skill-panel,
.contact-panel,
.contact-form,
.project-card,
.timeline-item {
  border-radius: var(--radius);
}

.about-card,
.contact-panel,
.contact-form {
  padding: 1.8rem;
}

.about-card,
.contact-panel,
.contact-form,
.skill-panel,
.project-card,
.timeline-item {
  position: relative;
  overflow: hidden;
}

.about-card::after,
.contact-panel::after,
.contact-form::after,
.skill-panel::after,
.project-card::after,
.timeline-item::after {
  content: "";
  position: absolute;
  inset: auto auto -35% -10%;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(circle, rgba(98, 188, 255, 0.12), transparent 68%);
  pointer-events: none;
}

.about-card::before,
.contact-panel::before,
.contact-form::before,
.skill-panel::before,
.project-card::before,
.timeline-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(108, 196, 255, 0.25), transparent 30%, rgba(170, 104, 255, 0.25));
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.about-metrics {
  display: grid;
  gap: 1.4rem;
}

.metric-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.skill-panel {
  padding: 1.6rem;
}

.skill-panel h3,
.contact-panel h3,
.project-card h3,
.timeline-item h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: "Orbitron", sans-serif;
}

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

.skill-card {
  position: relative;
  min-height: 12rem;
  padding: 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(132, 160, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(101, 115, 255, 0.07)),
    rgba(8, 14, 31, 0.55);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card::after {
  content: "";
  position: absolute;
  inset: auto -26% -55% auto;
  width: 9rem;
  height: 9rem;
  background: radial-gradient(circle, rgba(115, 202, 255, 0.26), transparent 65%);
}

.skill-card:hover,
.project-card:hover,
.timeline-item:hover,
.about-card:hover,
.contact-panel:hover,
.contact-form:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 189, 255, 0.34);
  box-shadow: 0 24px 70px rgba(12, 24, 60, 0.5);
}

.skill-card:hover {
  box-shadow:
    0 18px 50px rgba(11, 22, 50, 0.56),
    0 0 28px rgba(94, 189, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(101, 115, 255, 0.1)),
    rgba(8, 14, 31, 0.72);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.95rem;
  border-radius: 14px;
  background: rgba(90, 184, 255, 0.12);
  color: var(--cyan);
  font-family: "Orbitron", sans-serif;
}

.skill-card h4 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  padding: 1.8rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(19, 31, 67, 0.88), rgba(8, 14, 31, 0.74)),
    var(--section-glow);
}

.project-content {
  position: relative;
  z-index: 1;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.project-badge,
.project-index {
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-badge {
  color: var(--cyan);
}

.project-index {
  color: var(--purple);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.5rem 0;
}

.project-highlights {
  margin: 0 0 1.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: #dce6ff;
}

.project-highlights li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.project-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 12px rgba(119, 205, 255, 0.4);
}

.project-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-window {
  width: min(100%, 28rem);
  padding: 0.85rem;
  border-radius: 24px;
  border: 1px solid rgba(136, 166, 255, 0.2);
  background: linear-gradient(180deg, rgba(14, 25, 56, 0.82), rgba(8, 15, 34, 0.74));
  box-shadow:
    0 24px 70px rgba(8, 17, 42, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover .preview-window {
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg) translateY(-4px);
  box-shadow:
    0 26px 76px rgba(8, 17, 42, 0.62),
    0 0 32px rgba(100, 182, 255, 0.1);
}

.preview-bar {
  display: flex;
  gap: 0.45rem;
  padding-bottom: 0.75rem;
}

.preview-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.preview-bar span:first-child {
  background: #ff6d8d;
}

.preview-bar span:nth-child(2) {
  background: #ffd96a;
}

.preview-bar span:last-child {
  background: #70f3a1;
}

.preview-screen {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  min-height: 19rem;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 23, 51, 0.86), rgba(7, 12, 26, 0.9));
}

.preview-sidebar {
  background:
    linear-gradient(180deg, rgba(112, 135, 255, 0.14), transparent),
    rgba(255, 255, 255, 0.03);
}

.preview-workspace {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.preview-dock {
  display: inline-grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: 0.55rem;
  padding: 0.4rem 0.6rem;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(140, 168, 255, 0.14);
}

.preview-dock span {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(89, 178, 255, 0.9), rgba(156, 125, 255, 0.9));
  box-shadow: 0 0 18px rgba(103, 191, 255, 0.25);
}

.preview-panel,
.preview-panel-row {
  border-radius: 16px;
}

.preview-panel {
  min-height: 4.2rem;
  background:
    linear-gradient(135deg, rgba(89, 178, 255, 0.16), rgba(153, 102, 255, 0.1)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(140, 168, 255, 0.16);
}

.panel-large {
  min-height: 8.6rem;
}

.preview-panel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(130, 217, 255, 0.4), rgba(154, 124, 255, 0.1));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  margin-left: 1.2rem;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(90, 184, 255, 0.92), rgba(157, 98, 255, 0.9));
  color: #06111f;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  box-shadow: 0 0 24px rgba(116, 196, 255, 0.35);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-list a {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(135, 164, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe7ff;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-list a:hover {
  transform: translateX(4px);
  border-color: rgba(130, 204, 255, 0.35);
  box-shadow:
    0 12px 28px rgba(13, 25, 57, 0.35),
    0 0 24px rgba(110, 187, 255, 0.1);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-row label {
  color: #d8e4ff;
  font-size: 0.95rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(136, 163, 255, 0.18);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(122, 213, 255, 0.52);
  box-shadow: 0 0 0 4px rgba(89, 182, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.form-note {
  margin: 0;
  font-size: 0.92rem;
}

.footer {
  padding: 1.2rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-top: 1px solid rgba(136, 166, 255, 0.14);
  color: var(--muted);
}

.footer-links a {
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.footer-links a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(115, 198, 255, 0.45);
}

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

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

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

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

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

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

.form-success {
  color: var(--cyan);
}

.button:focus-visible,
.nav-links a:focus-visible,
.contact-list a:focus-visible,
.form-row input:focus-visible,
.form-row textarea:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid rgba(122, 213, 255, 0.72);
  outline-offset: 4px;
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-reverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes floatGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(3%, -4%, 0) scale(1.08);
  }
}

@keyframes heroShift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 1.5%, 0) scale(1.03);
  }
}

@media (max-width: 1040px) {
  .project-card {
    grid-template-columns: 1fr;
  }
}

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

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .section::before {
    width: calc(100% - 1.5rem);
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }
}

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

  .section {
    padding: 4.25rem 0;
  }

  .navbar {
    min-height: var(--header-height);
    padding: 0 0.85rem;
  }

  .menu-toggle {
    display: inline-block;
    z-index: 3;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1.15rem;
    border-radius: 26px;
    background: rgba(7, 13, 31, 0.92);
    border: 1px solid rgba(138, 164, 255, 0.18);
    box-shadow: 0 20px 60px rgba(7, 13, 31, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 16vw, 4.4rem);
  }

  .project-highlights {
    gap: 0.55rem;
  }

  .hero-stats,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 0.7rem;
  }

  .timeline-item {
    margin-left: 0.6rem;
    grid-template-columns: 1fr;
  }

  .preview-window {
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 1.2rem, 1120px);
  }

  .brand-text {
    display: none;
  }

  .project-actions,
  .hero-actions,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .project-card,
  .about-card,
  .contact-panel,
  .contact-form,
  .skill-panel,
  .timeline-item {
    padding: 1.25rem;
  }

  .signal-card {
    right: 4%;
    left: 4%;
    bottom: 5%;
    max-width: none;
  }

  .preview-screen {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    min-height: 2.6rem;
  }

  .preview-panel-row {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
