:root {
  --bg: #03050b;
  --bg-deep: #010208;
  --panel: rgba(8, 14, 26, 0.78);
  --panel-strong: rgba(9, 18, 34, 0.94);
  --line: rgba(116, 181, 255, 0.24);
  --line-soft: rgba(255, 255, 255, 0.09);
  --text: #f7fbff;
  --muted: #b8c6d7;
  --blue: #1a72ff;
  --cyan: #24d4ff;
  --green: #21e781;
  --amber: #ffc857;
  --coral: #ff6b5a;
  --violet: #9d66ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --glow-blue: 0 0 34px rgba(36, 212, 255, 0.22);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #02040a 0%, #06101b 44%, #040713 100%);
  background-size:
    4rem 4rem,
    4rem 4rem,
    auto;
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button {
  font: inherit;
}

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap,
.footer-wrap {
  width: min(1180px, calc(100% - 4rem));
  margin-inline: auto;
}

.site-header,
main,
.site-footer {
  position: relative;
}

main,
.site-footer {
  z-index: 1;
}

.tech-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.76;
}

.tech-background::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 17% 22%, rgba(36, 212, 255, 0.15), transparent 19rem),
    radial-gradient(circle at 76% 22%, rgba(255, 200, 87, 0.13), transparent 20rem),
    radial-gradient(circle at 52% 80%, rgba(33, 231, 129, 0.09), transparent 24rem);
  animation: techGlow 14s ease-in-out infinite alternate;
}

.solar-system {
  position: absolute;
  inset: 0;
  opacity: 0.55;
}

.sun {
  position: absolute;
  top: 17%;
  right: 10%;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, #fff0a8 0%, #ffc857 42%, #ff6b5a 100%);
  box-shadow:
    0 0 24px rgba(255, 200, 87, 0.42),
    0 0 72px rgba(255, 107, 90, 0.28);
  animation: pulseGlow 3.4s ease-in-out infinite alternate;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: rotateOrbit 18s linear infinite;
}

.orbit-one {
  top: 20%;
  right: 8%;
  width: 15rem;
  height: 15rem;
}

.orbit-two {
  top: 10%;
  right: 18%;
  width: 22rem;
  height: 22rem;
  animation-duration: 24s;
}

.orbit-three {
  top: 30%;
  right: 2%;
  width: 30rem;
  height: 30rem;
  animation-duration: 32s;
}

.planet {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px currentColor;
}

.planet-one {
  background: var(--cyan);
  color: var(--cyan);
}

.planet-two {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--violet);
  color: var(--violet);
}

.planet-three {
  width: 1.4rem;
  height: 1.4rem;
  background: var(--green);
  color: var(--green);
}

.tech-float {
  position: absolute;
  display: grid;
  place-items: center;
  user-select: none;
  transform-origin: center;
  will-change: transform;
}

.react-float {
  --ring-w: 7.2rem;
  --ring-h: 2.8rem;
  width: 9rem;
  height: 9rem;
  color: #61dafb;
  opacity: 0.16;
  filter: drop-shadow(0 0 18px rgba(97, 218, 251, 0.72));
  animation:
    techDrift 18s ease-in-out infinite,
    techBreath 5.8s ease-in-out infinite;
}

.react-float::before,
.react-float::after,
.react-float i {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ring-w);
  height: var(--ring-h);
  border: 1.6px solid currentColor;
  border-radius: 50%;
}

.react-float::before {
  transform: translate(-50%, -50%) rotate(60deg);
}

.react-float::after {
  transform: translate(-50%, -50%) rotate(-60deg);
}

.react-float i {
  transform: translate(-50%, -50%);
}

.react-float i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
  transform: translate(-50%, -50%);
}

.rust-float {
  width: 8.5rem;
  height: 8.5rem;
  border: 1px solid rgba(255, 200, 87, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.14), rgba(2, 4, 10, 0.02) 62%);
  color: var(--amber);
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0.16;
  box-shadow:
    0 0 28px rgba(255, 200, 87, 0.3),
    inset 0 0 28px rgba(255, 200, 87, 0.14);
  animation:
    techDrift 20s ease-in-out infinite reverse,
    techBreath 6.5s ease-in-out infinite;
}

.rust-float::before {
  content: "\2699";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 7rem;
  line-height: 1;
  opacity: 0.28;
  animation: techSpin 20s linear infinite;
}

.rust-float b {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
}

.react-one {
  top: 12%;
  left: 7%;
  animation-delay:
    -2s,
    -1s;
}

.react-two {
  --ring-w: 8.8rem;
  --ring-h: 3.4rem;
  top: 53%;
  right: 7%;
  width: 11rem;
  height: 11rem;
  animation-delay:
    -8s,
    -2s;
}

.react-three {
  --ring-w: 5.6rem;
  --ring-h: 2.2rem;
  bottom: 8%;
  left: 18%;
  width: 7rem;
  height: 7rem;
  animation-delay:
    -13s,
    -3s;
}

.rust-one {
  top: 18%;
  right: 17%;
  animation-delay:
    -5s,
    -1s;
}

.rust-two {
  top: 66%;
  left: 5%;
  width: 7.2rem;
  height: 7.2rem;
  animation-delay:
    -11s,
    -2s;
}

.rust-three {
  right: 23%;
  bottom: 10%;
  animation-delay:
    -16s,
    -4s;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 2rem;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(2, 4, 10, 0.96), rgba(2, 4, 10, 0.54), transparent);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    padding 0.25s ease;
}

.site-header > * {
  min-width: 0;
}

.hero-layout > *,
.about-grid > *,
.section-head > *,
.skills-layout > *,
.project-showcase > *,
.contact-inner > *,
.footer-wrap > * {
  min-width: 0;
}

.site-header.scrolled {
  padding-block: 0.7rem;
  border-bottom-color: rgba(36, 212, 255, 0.24);
  background: rgba(2, 6, 14, 0.9);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
}

.brand img,
.footer-brand img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 0 24px rgba(255, 107, 90, 0.18);
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  padding: 0.7rem 0.1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.25rem;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--cyan);
}

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

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 12, 24, 0.9);
  color: var(--text);
  cursor: pointer;
}

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

.talk-btn,
.primary-btn,
.secondary-btn,
.mini-link,
.view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 2.9rem;
  border-radius: 999px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.talk-btn {
  justify-self: end;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(36, 212, 255, 0.46);
  background: rgba(8, 14, 26, 0.72);
  color: var(--text);
  box-shadow: 0 0 22px rgba(36, 212, 255, 0.16);
  cursor: pointer;
}

.talk-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.mini-link:hover,
.view-all:hover,
.back-top:hover {
  transform: translateY(-2px);
}

.talk-btn svg {
  color: var(--cyan);
}

.primary-btn {
  min-width: 11rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(80, 205, 255, 0.72);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 0 28px rgba(36, 212, 255, 0.28);
}

.secondary-btn {
  min-width: 11rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid rgba(255, 200, 87, 0.38);
  background: rgba(2, 4, 10, 0.62);
  color: #fff;
  box-shadow: inset 0 0 22px rgba(255, 200, 87, 0.07);
}

.ai-chatbot[hidden] {
  display: none;
}

.ai-chatbot {
  position: fixed;
  top: 5.35rem;
  right: 2rem;
  z-index: 70;
  width: min(23rem, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.8rem) scale(0.98);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.ai-chatbot.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chatbot-card {
  overflow: hidden;
  border: 1px solid rgba(36, 212, 255, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(8, 15, 30, 0.97), rgba(2, 4, 10, 0.95));
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(36, 212, 255, 0.2);
  backdrop-filter: blur(18px);
}

.chatbot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
}

.chatbot-head p {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.15rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chatbot-head p span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.chatbot-head h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1;
}

.chatbot-close {
  position: relative;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.chatbot-close span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.chatbot-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chatbot-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.chatbot-messages {
  display: grid;
  gap: 0.75rem;
  max-height: 18rem;
  overflow-y: auto;
  padding: 1rem;
  scrollbar-width: thin;
}

.chat-message {
  display: grid;
  gap: 0.28rem;
  max-width: 88%;
}

.chat-message.user {
  justify-self: end;
}

.chat-message span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.chat-message.user span {
  justify-self: end;
  color: var(--green);
}

.chat-message p {
  margin: 0;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.5;
}

.chat-message.user p {
  border-color: rgba(33, 231, 129, 0.28);
  background: rgba(33, 231, 129, 0.11);
}

.chatbot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1rem 1rem;
}

.chatbot-prompts button {
  min-height: 2rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgba(36, 212, 255, 0.32);
  border-radius: 999px;
  background: rgba(36, 212, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.chatbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 0.9rem 1rem 1rem;
  border-top: 1px solid var(--line-soft);
}

.chatbot-form input {
  min-width: 0;
  min-height: 2.65rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
}

.chatbot-form input:focus {
  border-color: rgba(36, 212, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(36, 212, 255, 0.12);
}

.chatbot-form button {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(36, 212, 255, 0.62);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue), #0046ff);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(36, 212, 255, 0.28);
}

.chatbot-prompts button:hover,
.chatbot-close:hover,
.chatbot-form button:hover {
  transform: translateY(-1px);
}

.chatbot-prompts button,
.chatbot-close,
.chatbot-form button {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.hero {
  position: relative;
  min-height: 46rem;
  padding: 9rem 0 5rem;
  overflow: hidden;
  background-image:
    linear-gradient(100deg, rgba(2, 4, 10, 0.96) 0%, rgba(2, 4, 10, 0.76) 43%, rgba(2, 4, 10, 0.34) 100%),
    url("Assest/hero-wallpaper.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 4, 10, 0.98), rgba(2, 4, 10, 0.54), rgba(2, 4, 10, 0.5)),
    linear-gradient(180deg, rgba(2, 4, 10, 0.14), rgba(2, 4, 10, 0.9));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16rem;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size:
    4rem 4rem,
    4rem 4rem;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.14));
  opacity: 0.65;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.78fr);
  align-items: center;
  gap: 4rem;
  min-height: 32rem;
}

.hero-copy {
  max-width: 48rem;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  color: var(--cyan);
  font-size: 0.92rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-kicker span,
.section-kicker span {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px var(--green);
}

.hero h1 {
  max-width: 46rem;
  margin: 0;
  font-size: 5.45rem;
  line-height: 0.95;
  font-weight: 950;
}

.hero h1 strong {
  display: block;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(36, 212, 255, 0.42);
}

.hero-copy > p:not(.hero-kicker) {
  width: min(38rem, 100%);
  margin: 1.35rem 0 1.5rem;
  color: var(--text);
  font-size: 1.17rem;
  line-height: 1.72;
  overflow-wrap: break-word;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(36rem, 100%);
  margin-top: 1.6rem;
}

.hero-metrics article {
  min-height: 5.4rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
}

.hero-metrics strong {
  display: block;
  color: var(--amber);
  font-size: 1.65rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-console,
.skill-radar,
.project-showcase,
.service-card,
.stat-card,
.signal-grid article,
.skill-card {
  transform-style: preserve-3d;
}

.hero-console {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 212, 255, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(12, 23, 42, 0.92), rgba(3, 5, 11, 0.84)),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    auto,
    2rem 2rem;
  box-shadow:
    var(--shadow),
    var(--glow-blue);
  backdrop-filter: blur(18px);
}

.hero-console::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.console-top {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.045);
}

.console-top span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.console-top span:nth-child(1) {
  background: var(--coral);
}

.console-top span:nth-child(2) {
  background: var(--amber);
}

.console-top span:nth-child(3) {
  background: var(--green);
}

.console-top b {
  margin-left: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.console-status {
  padding: 1.3rem 1.2rem 1rem;
}

.console-status p {
  margin: 0 0 0.35rem;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

.console-status strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.18;
}

.console-lines {
  display: grid;
  gap: 0.65rem;
  padding: 0 1.2rem 1.15rem;
  color: #cce7ff;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 0.92rem;
}

.console-lines span {
  display: block;
  min-width: 0;
  white-space: normal;
}

.console-lines b {
  color: var(--green);
}

.console-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid var(--line-soft);
}

.console-stack span,
.tags span,
.project-features span {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.25rem 0.58rem;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
}

.social-rail {
  position: fixed;
  right: 2rem;
  top: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1rem 0.75rem;
  border: 1px solid rgba(36, 212, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(7, 12, 24, 0.76);
  box-shadow: var(--glow-blue);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.social-rail a {
  color: #fff;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-rail a:hover {
  color: var(--cyan);
  transform: translateX(-2px);
}

.signal-strip {
  position: relative;
  z-index: 1;
  padding: 0 0 1rem;
  margin-top: -2.8rem;
}

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

.signal-grid article {
  min-height: 8.5rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(7, 14, 27, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-grid span {
  display: inline-flex;
  color: var(--amber);
  font-weight: 900;
}

.signal-grid strong {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.03rem;
}

.signal-grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.52;
}

.band {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(7, 12, 24, 0.76), rgba(2, 4, 10, 0.88)),
    linear-gradient(90deg, rgba(36, 212, 255, 0.06), transparent 40%, rgba(255, 200, 87, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.35fr;
  gap: 1.5rem;
  align-items: center;
  padding: 2.4rem 0;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  border: 1px solid rgba(36, 212, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(7, 12, 24, 0.7);
  box-shadow:
    inset 0 0 36px rgba(36, 212, 255, 0.08),
    0 20px 45px rgba(0, 0, 0, 0.24);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  object-position: center top;
}

.portrait-badge {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.5rem;
  padding: 0.55rem 0.72rem;
  border: 1px solid rgba(33, 231, 129, 0.42);
  border-radius: var(--radius);
  background: rgba(2, 7, 12, 0.72);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.portrait-badge span,
.project-status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.section-head {
  padding: 2.2rem 0 1.2rem;
}

.section-head.split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.section-head h2,
.about-copy h2,
.contact-inner h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.12;
  font-weight: 920;
}

.section-head.split > p,
.section-head.split > div + p {
  width: min(30rem, 100%);
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.about-copy p:not(.section-kicker),
.contact-inner p:not(.section-kicker),
.project-panel p,
.journey-step p,
.site-footer p,
.service-card p,
.skill-radar p {
  color: var(--muted);
  line-height: 1.62;
}

.about-copy p:not(.section-kicker) {
  margin: 1rem 0;
}

.mini-link {
  min-height: 2.35rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(36, 212, 255, 0.42);
  background: rgba(2, 4, 10, 0.56);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 0 16px rgba(36, 212, 255, 0.14);
}

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

.stat-card,
.skill-card,
.service-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(36, 212, 255, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(9, 16, 31, 0.9), rgba(2, 4, 10, 0.94));
  box-shadow:
    inset 0 0 30px rgba(36, 212, 255, 0.07),
    0 18px 38px rgba(0, 0, 0, 0.24);
}

.stat-card {
  min-height: 9rem;
  padding: 1.2rem;
}

.stat-card svg {
  width: 2rem;
  height: 2rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.8rem;
  font-size: 2.05rem;
  line-height: 1;
  color: var(--cyan);
}

.stat-card span {
  display: block;
  margin-top: 0.28rem;
  color: #fff;
  font-weight: 700;
}

.stat-card.amber,
.service-card.warm {
  border-color: rgba(255, 200, 87, 0.46);
  box-shadow: inset 0 0 30px rgba(255, 200, 87, 0.1);
}

.stat-card.amber strong,
.stat-card.amber svg,
.service-card.warm .service-icon {
  color: var(--amber);
}

.stat-card.green {
  border-color: rgba(33, 231, 129, 0.42);
  box-shadow: inset 0 0 30px rgba(33, 231, 129, 0.1);
}

.stat-card.green strong,
.stat-card.green svg {
  color: var(--green);
}

.stat-card.coral {
  border-color: rgba(255, 107, 90, 0.48);
  box-shadow: inset 0 0 30px rgba(255, 107, 90, 0.1);
}

.stat-card.coral strong,
.stat-card.coral svg {
  color: var(--coral);
}

.stat-card.blue svg {
  color: var(--cyan);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding-bottom: 2.2rem;
}

.service-card {
  min-height: 19rem;
  padding: 1.25rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(36, 212, 255, 0.4);
  border-radius: var(--radius);
  color: var(--cyan);
  background: rgba(36, 212, 255, 0.08);
}

.service-card > span {
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 0.65rem 0 0.8rem;
  font-size: 1.32rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
}

.service-card.accent {
  border-color: rgba(33, 231, 129, 0.38);
  box-shadow: inset 0 0 30px rgba(33, 231, 129, 0.08);
}

.service-card.accent .service-icon {
  border-color: rgba(33, 231, 129, 0.42);
  background: rgba(33, 231, 129, 0.08);
  color: var(--green);
}

.skill-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.skill-tabs button {
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.skill-tabs button:hover,
.skill-tabs button.active {
  border-color: rgba(36, 212, 255, 0.56);
  background: rgba(36, 212, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.skills-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 0.45fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.skill-radar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(36, 212, 255, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(9, 16, 31, 0.9), rgba(2, 4, 10, 0.94)),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    auto,
    2rem 2rem;
  box-shadow: inset 0 0 34px rgba(36, 212, 255, 0.08);
  text-align: center;
}

.skill-radar::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(36, 212, 255, 0.42);
  animation: rotateOrbit 16s linear infinite;
}

.radar-ring {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.radar-ring:nth-child(1) {
  width: 13rem;
  height: 13rem;
}

.radar-ring:nth-child(2) {
  width: 9rem;
  height: 9rem;
}

.radar-ring:nth-child(3) {
  width: 5rem;
  height: 5rem;
}

.skill-radar div {
  position: relative;
  z-index: 1;
  width: min(13rem, calc(100% - 2rem));
}

.skill-radar strong {
  display: block;
  color: var(--cyan);
  font-size: 1.7rem;
}

.skill-radar p {
  margin: 0.5rem 0 0;
}

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

.skill-card {
  display: grid;
  place-items: center;
  min-height: 7.2rem;
  padding: 0.9rem 0.6rem;
  text-align: center;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.skill-card.is-hidden {
  display: none;
}

.skill-card:hover,
.skill-card:focus-visible,
.project-showcase:hover,
.stat-card:hover,
.service-card:hover,
.signal-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(36, 212, 255, 0.68);
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.34),
    0 0 40px rgba(36, 212, 255, 0.16);
}

.skill-card:focus-visible,
.talk-btn:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.mini-link:focus-visible,
.view-all:focus-visible,
.nav-toggle:focus-visible,
.skill-tabs button:focus-visible,
.copy-email:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skill-card b {
  display: grid;
  place-items: center;
  min-width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0.7rem;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
}

.skill-card span {
  font-size: 0.92rem;
  font-weight: 750;
}

.skill-card.html b {
  color: #ff6b5a;
}

.skill-card.css b {
  color: #35a8ff;
}

.skill-card.js b {
  color: #ffd84d;
}

.skill-card.react b {
  color: #9d66ff;
}

.skill-card.tailwind b {
  color: #3bdcff;
}

.skill-card.git b {
  color: #ff875f;
}

.skill-card.github b {
  color: #fff;
}

.skill-card.vscode b {
  color: #268dff;
}

.skill-card.figma b {
  color: #ff507e;
}

.skill-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0 2.2rem;
}

.skill-bars article {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.skill-bars span {
  color: #fff;
  font-weight: 750;
}

.skill-bars b {
  position: relative;
  overflow: hidden;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.skill-bars b::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  box-shadow: 0 0 18px rgba(36, 212, 255, 0.25);
  transform-origin: left;
}

.projects-band {
  background:
    linear-gradient(180deg, rgba(8, 14, 26, 0.78), rgba(2, 4, 10, 0.9)),
    linear-gradient(110deg, rgba(255, 107, 90, 0.08), transparent 36%, rgba(36, 212, 255, 0.08));
}

.view-all {
  min-height: 2.4rem;
  color: #fff;
  font-size: 0.95rem;
}

.view-all svg {
  color: var(--cyan);
}

.project-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(20rem, 0.94fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 2.25rem;
  border: 1px solid rgba(36, 212, 255, 0.26);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(9, 16, 31, 0.92), rgba(2, 4, 10, 0.95));
  box-shadow:
    inset 0 0 32px rgba(36, 212, 255, 0.08),
    var(--shadow);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.project-media {
  position: relative;
  min-height: 28rem;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.project-showcase:hover .project-media img {
  transform: scale(1.04);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 4, 10, 0.86));
}

.project-overlay {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
}

.project-overlay span {
  color: var(--amber);
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-overlay strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 2rem;
  line-height: 1;
}

.project-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  min-height: 2rem;
  padding: 0.34rem 0.58rem;
  border: 1px solid rgba(33, 231, 129, 0.34);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 850;
}

.project-panel h3 {
  margin: 1rem 0 0.75rem;
  font-size: 2.4rem;
  line-height: 1.05;
}

.project-panel p {
  margin: 0;
}

.project-features,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-features {
  margin: 1.15rem 0 0.9rem;
}

.project-features span {
  border-color: rgba(255, 200, 87, 0.28);
  background: rgba(255, 200, 87, 0.08);
}

.tags {
  margin-bottom: 1.3rem;
}

.project-actions .primary-btn,
.project-actions .secondary-btn,
.contact-actions .primary-btn,
.contact-actions .secondary-btn {
  min-width: 10rem;
}

.journey-band {
  background:
    linear-gradient(180deg, rgba(7, 12, 24, 0.76), rgba(2, 4, 10, 0.84)),
    linear-gradient(90deg, rgba(33, 231, 129, 0.08), transparent 42%, rgba(255, 200, 87, 0.07));
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  padding: 0 0 2.25rem;
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  align-items: start;
  gap: 1rem;
  min-width: 0;
}

.journey-step::after {
  content: "";
  position: absolute;
  right: -1.05rem;
  top: 2.2rem;
  width: 0.85rem;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.journey-step:last-child::after {
  display: none;
}

.journey-icon {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  border: 1px solid rgba(36, 212, 255, 0.58);
  border-radius: 50%;
  color: var(--cyan);
  box-shadow:
    inset 0 0 20px rgba(36, 212, 255, 0.15),
    0 0 22px rgba(36, 212, 255, 0.16);
}

.journey-icon svg {
  width: 2rem;
  height: 2rem;
}

.journey-step.amber .journey-icon {
  border-color: rgba(255, 200, 87, 0.74);
  color: var(--amber);
  box-shadow:
    inset 0 0 20px rgba(255, 200, 87, 0.14),
    0 0 22px rgba(255, 200, 87, 0.14);
}

.journey-step.green .journey-icon {
  border-color: rgba(33, 231, 129, 0.78);
  color: var(--green);
  box-shadow:
    inset 0 0 20px rgba(33, 231, 129, 0.14),
    0 0 22px rgba(33, 231, 129, 0.16);
}

.journey-step span {
  display: inline-flex;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.journey-step h3 {
  margin: 0.3rem 0 0.35rem;
  font-size: 1.05rem;
}

.journey-step p {
  margin: 0;
}

.contact-strip {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(8, 14, 26, 0.92), rgba(2, 4, 10, 0.88)),
    linear-gradient(120deg, rgba(36, 212, 255, 0.12), transparent 44%, rgba(255, 107, 90, 0.12));
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 6.5rem;
  align-items: center;
  gap: 1.5rem;
  min-height: 10rem;
  padding: 1.5rem 0;
}

.contact-inner h2 strong {
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(36, 212, 255, 0.42);
}

.contact-inner p:not(.section-kicker) {
  margin: 0.4rem 0 0;
}

.copy-email {
  cursor: pointer;
}

.copy-email.is-copied {
  border-color: rgba(33, 231, 129, 0.58);
  background: rgba(33, 231, 129, 0.14);
}

.send-orbit {
  display: grid;
  place-items: center;
  width: 5.8rem;
  height: 5.8rem;
  border: 1px solid rgba(36, 212, 255, 0.68);
  border-radius: 50%;
  color: var(--cyan);
  box-shadow:
    0 0 30px rgba(36, 212, 255, 0.26),
    inset 0 0 24px rgba(36, 212, 255, 0.12);
}

.send-orbit svg {
  width: 2.4rem;
  height: 2.4rem;
}

.site-footer {
  background: #01030a;
  border-top: 1px solid var(--line-soft);
}

.footer-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr auto;
  gap: 2rem;
  padding: 1.35rem 0 1.7rem;
}

.site-footer h3 {
  margin: 0 0 0.65rem;
  color: var(--cyan);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.site-footer a:not(.footer-brand):not(.back-top) {
  display: block;
  margin: 0.28rem 0;
  color: var(--muted);
  font-weight: 650;
  word-break: break-word;
}

.site-footer p {
  margin: 0.65rem 0 0;
}

.copyright {
  font-size: 0.9rem;
}

.back-top {
  align-self: center;
  display: grid;
  place-items: center;
  gap: 0.4rem;
  color: var(--cyan);
  font-weight: 750;
  transition: transform 0.22s ease;
}

.back-top svg {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

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

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

@keyframes techGlow {
  0% {
    opacity: 0.65;
    transform: translate3d(-1.2rem, -0.4rem, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(1.2rem, 0.8rem, 0) scale(1.04);
  }
}

@keyframes techDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  34% {
    transform: translate3d(1.4rem, -2rem, 0) rotate(8deg);
  }
  68% {
    transform: translate3d(-1.2rem, 1.3rem, 0) rotate(-7deg);
  }
}

@keyframes techBreath {
  0%,
  100% {
    opacity: 0.11;
  }
  50% {
    opacity: 0.24;
  }
}

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

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

@keyframes pulseGlow {
  0% {
    transform: scale(0.96);
    box-shadow:
      0 0 18px rgba(255, 200, 87, 0.3),
      0 0 54px rgba(255, 107, 90, 0.2);
  }
  100% {
    transform: scale(1.05);
    box-shadow:
      0 0 28px rgba(255, 200, 87, 0.42),
      0 0 80px rgba(255, 107, 90, 0.28);
  }
}

@media (max-width: 1120px) {
  .site-nav {
    gap: 1rem;
  }

  .site-nav a {
    font-size: 0.9rem;
  }

  .hero-layout {
    gap: 2rem;
  }

  .hero h1 {
    font-size: 4.3rem;
  }

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

  .stats-grid {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .skills-layout {
    grid-template-columns: 1fr;
  }

  .skill-radar {
    min-height: 14rem;
  }

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

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

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

  .journey-step::after {
    display: none;
  }
}

@media (max-width: 920px) {
  .tech-background {
    opacity: 0.52;
  }

  .react-two,
  .rust-three {
    display: none;
  }

  .react-one {
    top: 16%;
    left: -1rem;
  }

  .rust-one {
    right: -1.8rem;
  }

  .rust-two {
    left: -2rem;
  }

  .site-header {
    display: flex;
    gap: 0.7rem;
    align-items: center;
    max-width: 100vw;
    padding-inline: 1rem;
    border-bottom: 1px solid rgba(36, 212, 255, 0.18);
    background: rgba(2, 6, 17, 0.92);
    backdrop-filter: blur(18px);
  }

  .brand {
    margin-right: auto;
  }

  .brand span,
  .talk-btn span {
    display: none;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 2.8rem;
    order: 3;
  }

  .talk-btn {
    flex: 0 0 2.8rem;
    order: 2;
    min-width: 2.8rem;
    width: 2.8rem;
    padding: 0;
  }

  .site-nav {
    position: fixed;
    inset: 4.55rem 1rem auto;
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    width: auto;
    max-width: calc(100vw - 2rem);
    min-width: 0;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(2, 4, 10, 0.96);
    box-shadow: var(--glow-blue);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-1rem);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  body.nav-open .site-nav {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  body.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

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

  .wrap,
  .footer-wrap {
    width: min(100% - 2rem, 1180px);
  }

  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
    background-image:
      linear-gradient(90deg, rgba(2, 4, 10, 0.96) 0%, rgba(2, 4, 10, 0.78) 42%, rgba(2, 4, 10, 0.7) 100%),
      url("Assest/bachelors-diary.jpeg");
    background-position: 63% center;
  }

  .hero-layout,
  .about-grid,
  .services-grid,
  .project-showcase,
  .contact-inner,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 2rem);
  }

  .hero h1 {
    font-size: 3.55rem;
  }

  .hero-copy > p:not(.hero-kicker) {
    font-size: 1.07rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .social-rail {
    display: none;
  }

  .signal-strip {
    margin-top: 0;
    padding-top: 1rem;
  }

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

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

  .section-head.split {
    align-items: flex-start;
    flex-direction: column;
  }

  .skill-tabs {
    justify-content: flex-start;
  }

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

  .project-media,
  .project-media img {
    min-height: 20rem;
  }

  .contact-inner {
    justify-items: start;
  }

  .send-orbit {
    display: none;
  }
}

@media (max-width: 560px) {
  .ai-chatbot {
    top: 4.85rem;
    right: 0.75rem;
    width: calc(100vw - 1.5rem);
  }

  .chatbot-messages {
    max-height: 14rem;
  }

  .hero h1 {
    font-size: 2.7rem;
  }

  .hero-actions,
  .project-actions,
  .contact-actions {
    display: grid;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .hero-metrics,
  .stats-grid,
  .skills-grid,
  .skill-bars,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .section-head h2,
  .about-copy h2,
  .contact-inner h2 {
    font-size: 1.72rem;
  }

  .project-panel {
    padding: 1.2rem;
  }

  .project-panel h3 {
    font-size: 1.9rem;
  }

  .project-media,
  .project-media img {
    min-height: 16rem;
  }

  .footer-wrap {
    gap: 1.3rem;
  }
}

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