/* Combined stylesheet: base + components + sections */

:root {
  --bg-1: #06080c;
  --bg-2: #0d1118;
  --cyan: #c9d3e0;
  --violet: #8e98a8;
  --line: rgba(166, 177, 193, 0.62);
  --text: #eef3fb;
  --muted: #c6cfdd;
  --panel-w: min(1040px, 92vw);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  overflow: hidden;
}

body.about-page {
  overflow-y: auto;
}

.starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 7% 12%, rgba(236, 241, 248, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 15% 64%, rgba(190, 200, 216, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 15%, rgba(223, 231, 242, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(192, 201, 216, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 45% 70%, rgba(165, 174, 192, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 56%, rgba(139, 148, 165, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 74%, rgba(228, 234, 243, 0.42) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 10%, rgba(166, 176, 193, 0.38) 0 1px, transparent 2px);
  background-size: 140px 140px, 200px 200px, 180px 180px, 220px 220px, 160px 160px, 140px 140px, 190px 190px, 210px 210px;
  opacity: 0.82;
  z-index: -2;
}

.panel-stack {
  height: 100vh;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.panel {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 28px 0 18px;
  overflow: hidden;
}

.panel-inner {
  width: var(--panel-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.panel-inner.narrow {
  width: min(760px, 90vw);
}

.hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  filter: blur(3px);
  pointer-events: none;
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .panel-stack {
    transform: none !important;
    transition: none;
  }

  .panel {
    min-height: 100svh;
  }
}


.top-nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100vw - 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid rgba(162, 173, 190, 0.5);
  border-radius: 12px;
  background: rgba(11, 14, 20, 0.76);
  box-shadow: 0 0 24px rgba(109, 121, 138, 0.18);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.top-nav .brand,
.top-nav nav a {
  text-decoration: none;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

.top-nav .brand {
  font-weight: 700;
  padding: 6px 8px;
}

.top-nav nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav nav a {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.top-nav nav a:hover {
  border-color: rgba(190, 201, 216, 0.75);
  box-shadow: 0 0 14px rgba(120, 131, 148, 0.35);
}

.left-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  z-index: 20;
}

.left-rail a,
.contact-footer a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(166, 177, 193, 0.65);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: rgba(11, 14, 20, 0.78);
  backdrop-filter: blur(3px);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.left-rail a:hover,
.contact-footer a:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 210, 223, 0.95);
  box-shadow: 0 0 16px rgba(120, 130, 146, 0.42);
}

.contact-link {
  position: fixed;
  right: 22px;
  top: 76px;
  z-index: 20;
  color: var(--text);
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.tiny-label {
  color: #d4dbe7;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.title-box {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 6px 14px;
  margin-bottom: 14px;
  text-shadow: 0 0 12px rgba(165, 174, 189, 0.72);
}

.intro-name,
.project-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 18px 0 12px;
  text-transform: uppercase;
}

.intro-name span {
  color: var(--cyan);
}

.section-sub {
  font-family: "Orbitron", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.cursor-orb-zone {
  position: relative;
  width: clamp(150px, 26vw, 280px);
  height: clamp(150px, 26vw, 280px);
  border-radius: 50%;
  margin: 8px 0 16px;
  background: radial-gradient(circle, rgba(168, 177, 192, 0.28), rgba(42, 45, 56, 0.52) 62%, rgba(13, 14, 20, 0.24));
  border: 1px solid rgba(171, 179, 194, 0.46);
  box-shadow: inset 0 0 42px rgba(138, 148, 164, 0.26), 0 0 40px rgba(96, 104, 120, 0.32);
  overflow: hidden;
}

.planet-cosmos,
.code-star,
.mini-planet {
  position: absolute;
}

.planet-cosmos {
  bottom: -265px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1080px, 100vw);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  background:
    radial-gradient(circle at 3% 10%, rgba(238, 241, 246, 0.92) 0 1px, transparent 2px),
    radial-gradient(circle at 8% 16%, rgba(201, 209, 222, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 11% 24%, rgba(170, 179, 194, 0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 10% 26%, rgba(230, 235, 243, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 14% 36%, rgba(196, 205, 220, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 18% 20%, rgba(149, 158, 174, 0.55) 0 1px, transparent 2px),
    radial-gradient(circle at 22% 14%, rgba(210, 218, 232, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 26% 31%, rgba(132, 141, 158, 0.5) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 11%, rgba(206, 214, 227, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 16%, rgba(176, 184, 199, 0.56) 0 1px, transparent 2px),
    radial-gradient(circle at 85% 22%, rgba(220, 226, 237, 0.66) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 30%, rgba(195, 203, 218, 0.6) 0 1px, transparent 2px),
    radial-gradient(circle at 92% 44%, rgba(142, 151, 166, 0.48) 0 1px, transparent 2px);
  animation: cosmosPulse 4.2s ease-in-out infinite;
}

.planet-cosmos::before,
.planet-cosmos::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -7px -9px 12px rgba(0, 0, 0, 0.2), 0 0 16px rgba(151, 203, 169, 0.38), 0 0 14px rgba(155, 104, 215, 0.38);
  animation: orbitFloat 6s ease-in-out infinite;
}

.planet-cosmos::before {
  width: 36px;
  height: 36px;
  left: 2%;
  top: 23%;
  background: radial-gradient(circle at 28% 24%, #d9ffe7, #79cd9f 56%, #6b3fc4);
}

.planet-cosmos::after {
  width: 24px;
  height: 24px;
  left: 7%;
  top: 42%;
  background: radial-gradient(circle at 30% 24%, #eddfff, #a982e8 55%, #4ebc87);
  animation-delay: 1.2s;
}

.code-star {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.8rem);
  color: rgba(228, 233, 240, 0.9);
  text-shadow: 0 0 8px rgba(180, 188, 204, 0.8);
  animation: twinkle 2.6s ease-in-out infinite;
}

.planet-cosmos .star-a { top: 14%; left: 12%; animation-delay: 0.2s; }
.planet-cosmos .star-b { top: 11%; right: 16%; animation-delay: 1.1s; }
.planet-cosmos .star-c { top: 31%; left: 8%; animation-delay: 1.7s; }
.planet-cosmos .star-d { top: 25%; right: 8%; animation-delay: 0.8s; }
.planet-cosmos .star-e { top: 20%; left: 20%; animation-delay: 0.5s; }
.planet-cosmos .star-f { top: 18%; right: 25%; animation-delay: 1.9s; }
.planet-cosmos .star-g { top: 37%; left: 14%; animation-delay: 1.4s; }
.planet-cosmos .star-h { top: 32%; right: 20%; animation-delay: 2.1s; }

.mini-planet {
  border-radius: 50%;
  box-shadow: inset -6px -8px 10px rgba(0, 0, 0, 0.34), 0 0 16px rgba(155, 108, 219, 0.48), 0 0 14px rgba(127, 199, 160, 0.42);
  animation: orbitFloat 6s ease-in-out infinite, planetGlow 3.1s ease-in-out infinite;
}

.mini-planet-1 {
  width: 38px;
  height: 38px;
  top: 11%;
  left: 28%;
  background: radial-gradient(circle at 30% 28%, #e5ffd8, #8bde8f 50%, #763fd0 84%);
}

.mini-planet-2 {
  width: 26px;
  height: 26px;
  top: 14%;
  right: 30%;
  background: radial-gradient(circle at 30% 30%, #f0deff, #ba86ef 52%, #4ac47f);
  animation-delay: 0.8s;
}

.mini-planet-3 {
  width: 30px;
  height: 30px;
  top: 26%;
  right: 16%;
  background: radial-gradient(circle at 32% 27%, #d7ffde, #74cf98 52%, #7642d1);
  animation-delay: 1.4s;
}

.mini-planet-4 {
  width: 20px;
  height: 20px;
  top: 23%;
  left: 18%;
  background: radial-gradient(circle at 30% 30%, #f2e0ff, #bf8cf4 50%, #53c784);
  animation-delay: 0.9s;
}

.mini-planet-5 {
  width: 18px;
  height: 18px;
  top: 34%;
  left: 24%;
  background: radial-gradient(circle at 30% 30%, #dcffe3, #79d29b 54%, #7345cc);
  animation-delay: 1.8s;
}

.mini-planet-6 {
  width: 22px;
  height: 22px;
  top: 20%;
  right: 10%;
  background: radial-gradient(circle at 30% 28%, #ebdbff, #b584ec 54%, #4fbe85);
  animation-delay: 2.2s;
}

.cursor-core,
.cursor-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.cursor-core {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle, rgba(241, 245, 251, 0.96), rgba(144, 153, 168, 0.92));
  box-shadow: 0 0 18px rgba(173, 182, 196, 0.6);
  z-index: 2;
}

.cursor-ring {
  width: 100px;
  height: 100px;
  border: 1px dashed rgba(183, 193, 207, 0.58);
  animation: spin 7s linear infinite;
  z-index: 2;
}

.cursor-trail {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.trail-ball {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #eef2f8 0%, #8993a7 70%);
  box-shadow: 0 0 10px rgba(166, 177, 191, 0.72);
  transform: translate(-50%, -50%);
}

.tech-animation {
  position: relative;
  width: clamp(140px, 22vw, 220px);
  height: clamp(140px, 22vw, 220px);
  margin: 8px 0 16px;
  border-radius: 50%;
  border: 1px solid rgba(160, 171, 188, 0.42);
}

.skill-animation span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(176, 187, 202, 0.32);
  animation: pulseRing 3.6s ease-in-out infinite;
}

.skill-animation span:nth-child(2) { inset: 14%; animation-delay: 0.4s; }
.skill-animation span:nth-child(3) { inset: 28%; animation-delay: 0.8s; }
.skill-animation span:nth-child(4) { inset: 42%; animation-delay: 1.2s; }
.skill-animation span:nth-child(5) { inset: 46%; border-style: dashed; animation-delay: 1.6s; }

.project-animation {
  border-color: rgba(156, 168, 184, 0.58);
  box-shadow: inset 0 0 36px rgba(109, 121, 138, 0.26);
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(186, 197, 212, 0.4);
  inset: 18%;
}

.ring-2 {
  inset: 35%;
}

.radar-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e7edf5;
  box-shadow: 0 0 10px rgba(173, 184, 200, 0.85);
  left: 50%;
  top: 50%;
  transform-origin: -56px 0;
  animation: radarSweep 2.8s linear infinite;
}

.panel-action,
.contact-form button {
  border: 1px solid rgba(160, 171, 188, 0.72);
  background: linear-gradient(130deg, rgba(41, 45, 56, 0.76), rgba(92, 102, 118, 0.8));
  color: #e9eff8;
  font-family: "Orbitron", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 240ms ease, box-shadow 260ms ease, border-color 220ms ease;
}

.panel-action:hover,
.contact-form button:hover {
  transform: translateY(-2px);
  border-color: rgba(208, 217, 229, 0.95);
  box-shadow: 0 10px 22px rgba(23, 27, 35, 0.55);
}

.info-card {
  margin-top: 16px;
  max-width: 600px;
  background: linear-gradient(145deg, rgba(20, 23, 31, 0.84), rgba(35, 39, 49, 0.74));
  border: 1px solid rgba(154, 165, 182, 0.56);
  border-radius: 12px;
  padding: 18px;
  line-height: 1.5;
  color: #e6ecf5;
  backdrop-filter: blur(8px);
  box-shadow: 0 14px 30px rgba(13, 16, 24, 0.56);
  transform: translateY(0) scale(1);
  filter: blur(0);
  will-change: opacity, transform, filter;
  transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1), transform 360ms cubic-bezier(0.16, 1, 0.3, 1), filter 360ms ease;
}

.info-card a {
  display: inline-block;
  margin-top: 12px;
  color: #d3dbe7;
  text-decoration: none;
}

.planet {
  position: absolute;
  bottom: -280px;
  width: min(920px, 96vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 26%, rgba(178, 188, 204, 0.34), rgba(74, 82, 96, 0.24) 36%, rgba(18, 20, 28, 0.98) 78%),
    radial-gradient(circle at 64% 68%, rgba(196, 205, 218, 0.24), transparent 42%),
    radial-gradient(circle at 30% 50%, rgba(132, 142, 158, 0.2), transparent 48%);
  box-shadow: 0 -24px 86px rgba(146, 156, 173, 0.28), 0 -14px 52px rgba(88, 97, 112, 0.26), 0 -10px 34px rgba(12, 14, 20, 0.84);
  z-index: 1;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 60px;
  border: 1px solid rgba(181, 191, 206, 0.58);
  background: rgba(18, 22, 30, 0.72);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  z-index: 8;
}

.arrow.left {
  left: 16px;
}

.arrow.right {
  right: 16px;
}

.panel-hint {
  position: absolute;
  bottom: 16px;
  border: 1px solid rgba(188, 199, 214, 0.62);
  background: rgba(12, 15, 22, 0.72);
  color: #eff0ff;
  padding: 8px 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  border-radius: 8px;
  cursor: pointer;
  z-index: 9;
}

.panel-hint.prev {
  left: 16px;
}

.panel-hint.next {
  right: 16px;
}

.contact-form {
  width: min(640px, 92vw);
  background: rgba(28, 32, 40, 0.62);
  border: 1px solid rgba(154, 165, 182, 0.62);
  border-radius: 12px;
  padding: 18px;
  text-align: left;
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.contact-form span {
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(157, 168, 184, 0.54);
  background: rgba(102, 112, 128, 0.2);
  color: #eef3fb;
  padding: 10px;
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
}

.form-status {
  min-height: 18px;
  margin-top: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #d2dae8;
}

.contact-footer {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.back-link {
  align-self: flex-start;
  text-decoration: none;
  color: #ffffff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.about-layout {
  min-height: 100vh;
  padding: 110px 16px 40px;
  display: grid;
  place-items: start center;
}

.about-card {
  width: min(840px, 95vw);
  background: linear-gradient(145deg, rgba(16, 20, 28, 0.86), rgba(30, 34, 44, 0.74));
  border: 1px solid rgba(157, 168, 184, 0.54);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(12, 15, 22, 0.52);
}

.about-card .title-box {
  display: inline-block;
  margin-bottom: 18px;
}

.about-copy {
  display: grid;
  gap: 12px;
  font-size: 1.1rem;
  color: #e8edf5;
  line-height: 1.6;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.3;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes orbitFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes planetGlow {
  0%, 100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes cosmosPulse {
  0%, 100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulseRing {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

@media (max-width: 900px) {
  .top-nav {
    top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .top-nav .brand,
  .top-nav nav a {
    font-size: 0.62rem;
  }

  .top-nav nav {
    gap: 4px;
  }

  .left-rail,
  .panel-hint,
  .arrow {
    display: none;
  }

  .contact-link {
    right: 12px;
    top: 58px;
    font-size: 0.76rem;
  }

  .planet {
    bottom: -190px;
  }

  .planet-cosmos {
    bottom: -185px;
  }

  .about-layout {
    padding-top: 94px;
  }

  .about-copy {
    font-size: 1rem;
  }
}


.hero-bg {
  background:
    radial-gradient(1200px 560px at 50% 105%, rgba(98, 108, 124, 0.36), transparent 55%),
    linear-gradient(180deg, #0f1117 0%, #0b0d12 45%, #07080b 100%);
}

.skills-bg {
  background:
    radial-gradient(1000px 460px at 50% -10%, rgba(115, 125, 142, 0.24), transparent 45%),
    linear-gradient(180deg, #11141b 0%, #0e1017 42%, #090b10 100%);
}

.projects-bg {
  background:
    radial-gradient(900px 420px at 50% 8%, rgba(102, 112, 128, 0.24), transparent 45%),
    linear-gradient(180deg, #0f1219 0%, #0c0f15 40%, #080a0f 100%);
}

.contact-bg {
  background:
    radial-gradient(860px 390px at 50% 0%, rgba(109, 120, 138, 0.28), transparent 42%),
    linear-gradient(180deg, #0e1118 0%, #0b0e14 35%, #07090d 100%);
}

.vision-bg {
  background:
    radial-gradient(920px 380px at 50% 0%, rgba(102, 114, 130, 0.28), transparent 48%),
    linear-gradient(180deg, #0c0f15 0%, #0a0d13 45%, #07090d 100%);
}

.about-section-bg {
  background:
    radial-gradient(920px 380px at 50% 0%, rgba(110, 122, 140, 0.28), transparent 48%),
    linear-gradient(180deg, #0c1016 0%, #0a0d13 45%, #07090d 100%);
}

.skills-grid {
  width: min(720px, 94vw);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.skills-grid span {
  border: 1px solid rgba(148, 158, 175, 0.6);
  background: rgba(41, 46, 57, 0.45);
  min-height: 54px;
  display: grid;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.skill-item {
  border: 1px solid rgba(148, 158, 175, 0.6);
  background: rgba(41, 46, 57, 0.45);
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.skill-item i {
  font-size: 1.2rem;
  color: #e8edf5;
}

.skill-item span {
  border: none;
  background: transparent;
  min-height: auto;
  display: block;
  text-align: left;
  font-family: "Orbitron", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
}

.vision-card {
  max-width: 760px;
}

#vision-text {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: #e8edf5;
  text-shadow: 0 0 8px rgba(156, 166, 182, 0.45);
}

#project-title {
  margin-bottom: 4px;
}

.project-canvas-grid {
  width: min(980px, 96vw);
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 16px 8px 22px;
}

.project-canvas-grid::before,
.project-canvas-grid::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 3;
  pointer-events: none;
}

.project-canvas-grid::before {
  left: 0;
  background: linear-gradient(90deg, rgba(9, 11, 15, 0.95), transparent);
}

.project-canvas-grid::after {
  right: 0;
  background: linear-gradient(270deg, rgba(9, 11, 15, 0.95), transparent);
}

.project-orbit-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
}

.project-canvas-grid.is-orbiting .project-orbit-track {
  animation: orbitRight 18s linear infinite;
}

.project-canvas-grid.is-orbiting:hover .project-orbit-track {
  animation-play-state: paused;
}

.project-window {
  border: 1px solid rgba(153, 164, 181, 0.62);
  background: rgba(31, 35, 44, 0.5);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: box-shadow 240ms ease, border-color 220ms ease;
  min-width: 228px;
  max-width: 228px;
}

.project-window:hover {
  border-color: rgba(201, 211, 224, 0.95);
  box-shadow: 0 14px 26px rgba(14, 17, 24, 0.56);
}

.project-preview {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(154, 166, 185, 0.42);
  background: radial-gradient(circle at 20% 20%, rgba(171, 183, 201, 0.18), rgba(20, 23, 30, 0.9));
}

.project-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  align-items: center;
}

.project-name {
  font-family: "Orbitron", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.project-tag {
  font-size: 0.7rem;
  color: #dbe2ec;
  border: 1px solid rgba(157, 168, 184, 0.54);
  padding: 2px 7px;
  border-radius: 999px;
}

@keyframes orbitRight {
  from {
    transform: translateX(-33.333%);
  }
  to {
    transform: translateX(0%);
  }
}

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

  .skills-grid span {
    min-height: 48px;
  }

  .project-canvas-grid {
    overflow: visible;
    padding: 0;
    width: min(900px, 95vw);
  }

  .project-canvas-grid::before,
  .project-canvas-grid::after {
    display: none;
  }

  .project-orbit-track {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    animation: none !important;
    transform: none !important;
  }

  .project-window {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .project-orbit-track {
    grid-template-columns: 1fr;
  }
}

/* Visual polish overrides for a more handcrafted look */
:root {
  --bg-1: #070a11;
  --bg-2: #11192a;
  --cyan: #b7d2ff;
  --violet: #97a8bf;
  --line: rgba(215, 191, 152, 0.5);
  --text: #f4f7ff;
  --muted: #cdd7e7;
}

body {
  background:
    radial-gradient(1300px 700px at 78% -12%, rgba(111, 148, 214, 0.16), transparent 55%),
    radial-gradient(950px 520px at 14% 108%, rgba(206, 161, 96, 0.14), transparent 56%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}

.top-nav {
  border: 1px solid rgba(193, 204, 224, 0.36);
  border-radius: 16px 8px 16px 8px;
  background: linear-gradient(165deg, rgba(16, 22, 34, 0.88), rgba(12, 16, 26, 0.72));
  box-shadow: 0 14px 30px rgba(8, 11, 18, 0.48);
}

.top-nav nav a {
  border-radius: 10px 5px 10px 5px;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.top-nav nav a:hover {
  transform: translateY(-1px);
}

.title-box {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 3px solid rgba(211, 176, 122, 0.48);
  border-right: 3px solid rgba(173, 198, 238, 0.38);
  padding: 8px 16px;
  border-radius: 6px 2px 6px 2px;
  text-shadow: 0 0 14px rgba(124, 153, 196, 0.42);
}

.panel-action,
.contact-form button {
  border: 1px solid rgba(205, 217, 236, 0.62);
  background:
    linear-gradient(145deg, rgba(44, 58, 83, 0.8), rgba(29, 35, 51, 0.86)),
    radial-gradient(circle at 18% 20%, rgba(217, 175, 114, 0.16), transparent 54%);
  border-radius: 12px 6px 12px 6px;
  box-shadow: 0 8px 18px rgba(10, 13, 20, 0.38);
}

.panel-action:hover,
.contact-form button:hover {
  box-shadow: 0 14px 24px rgba(10, 13, 20, 0.52), 0 0 0 1px rgba(214, 186, 137, 0.26);
}

.info-card,
.contact-form,
.skill-item,
.project-window {
  border-color: rgba(188, 202, 224, 0.5);
  background:
    linear-gradient(155deg, rgba(24, 31, 45, 0.88), rgba(17, 21, 32, 0.78));
  box-shadow: 0 16px 34px rgba(7, 9, 15, 0.52);
}

.skill-item {
  border-radius: 12px 5px 12px 5px;
}

.project-window {
  border-radius: 14px 6px 14px 6px;
  transition: box-shadow 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.project-window:hover {
  transform: translateY(-3px);
}

.project-tag {
  border-color: rgba(218, 189, 142, 0.52);
  color: #e8edf9;
  background: rgba(176, 142, 89, 0.13);
}

.contact-form input,
.contact-form textarea {
  background: rgba(114, 131, 161, 0.14);
  border-color: rgba(197, 209, 227, 0.44);
  border-radius: 10px 4px 10px 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(213, 185, 133, 0.8);
  box-shadow: 0 0 0 2px rgba(213, 185, 133, 0.2);
}

.hero-bg {
  background:
    radial-gradient(1200px 560px at 50% 105%, rgba(103, 128, 168, 0.3), transparent 55%),
    linear-gradient(180deg, #0d121c 0%, #0b1019 45%, #090d15 100%);
}

.skills-bg {
  background:
    radial-gradient(1000px 460px at 52% -10%, rgba(124, 143, 176, 0.22), transparent 45%),
    linear-gradient(180deg, #101620 0%, #0f141e 42%, #0c1119 100%);
}

.projects-bg {
  background:
    radial-gradient(900px 420px at 54% 8%, rgba(120, 142, 172, 0.24), transparent 45%),
    linear-gradient(180deg, #111722 0%, #0f151f 40%, #0b1018 100%);
}

.vision-bg,
.about-section-bg,
.contact-bg {
  background:
    radial-gradient(920px 390px at 50% 0%, rgba(122, 142, 172, 0.2), transparent 47%),
    linear-gradient(180deg, #0d131d 0%, #0c121b 45%, #090f16 100%);
}

/* Performance overrides */
.top-nav,
.left-rail a,
.contact-footer a,
.info-card {
  backdrop-filter: none;
}

.project-preview {
  display: grid;
  place-items: center;
}

.project-preview-text {
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: #eaf1ff;
  padding: 10px;
}

.project-preview iframe {
  display: none;
}

.panel:not(.active) .planet-cosmos,
.panel:not(.active) .planet-cosmos::before,
.panel:not(.active) .planet-cosmos::after,
.panel:not(.active) .code-star,
.panel:not(.active) .mini-planet,
.panel:not(.active) .cursor-ring,
.panel:not(.active) .skill-animation span,
.panel:not(.active) .radar-dot,
.panel:not(.active) .project-orbit-track {
  animation: none !important;
}

@media (max-width: 900px) {
  .planet-cosmos,
  .planet-cosmos::before,
  .planet-cosmos::after,
  .code-star,
  .mini-planet,
  .cursor-ring,
  .skill-animation span,
  .radar-dot,
  .project-orbit-track {
    animation: none !important;
  }
}
