:root {
  --bg: #050b14;
  --bg-2: #0a1320;
  --panel: rgba(12, 22, 34, 0.82);
  --panel-strong: #0d1726;
  --text: #edf8ff;
  --muted: #9bb2c8;
  --blue: #29b8ff;
  --blue-2: #6fe6ff;
  --line: rgba(41, 184, 255, 0.24);
  --glow: rgba(41, 184, 255, 0.28);
  --shadow: rgba(7, 16, 26, 0.8);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(41, 184, 255, 0.2), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(110, 230, 255, 0.18), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  font-family: 'Space Mono', monospace;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.45;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 2px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.5;
}

.section-shell {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 0 0.8rem;
  backdrop-filter: blur(8px);
  background: rgba(5, 11, 20, 0.38);
}

.brand {
  color: var(--blue-2);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 0 16px rgba(41, 184, 255, 0.5);
}

.brand span {
  color: var(--blue);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

nav a:hover,
.text-link:hover {
  color: var(--blue-2);
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0 5rem;
}

.eyebrow,
.section-label,
.project-tag {
  color: var(--blue);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0.7rem 0 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.hero h1 span,
.section-heading h2 span,
.contact-wrap h2 span {
  color: var(--blue);
}

.intro {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--glow);
  border-color: rgba(41, 184, 255, 0.7);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #041520;
  border-color: transparent;
  font-weight: 700;
}

.button-secondary {
  background: rgba(12, 22, 34, 0.7);
  color: var(--blue-2);
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 2rem;
  color: #7c93ab;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #45f299;
  box-shadow: 0 0 12px rgba(69, 242, 153, 0.9);
}

.mini-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.mini-stack span {
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(41, 184, 255, 0.05);
  color: var(--blue-2);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel {
  background: linear-gradient(180deg, rgba(10, 19, 32, 0.9), rgba(10, 19, 32, 0.65));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(41, 184, 255, 0.15);
  padding: 1.2rem;
  animation: panelFloat 5s ease-in-out infinite alternate;
}

@keyframes panelFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.panel-tag {
  display: inline-block;
  padding: 0.4rem 0.6rem;
  background: rgba(41, 184, 255, 0.12);
  border: 1px solid rgba(41, 184, 255, 0.5);
  color: var(--blue-2);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.panel-code {
  color: var(--muted);
  font-size: 0.7rem;
}

.panel-body {
  display: grid;
  gap: 1rem;
}

.panel-body > div {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}

.panel-body small {
  display: block;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel-body strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.1rem;
}

.about-section,
.projects-section,
.contact-section,
.spotlight-section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-heading h2,
.contact-wrap h2 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.about-copy {
  max-width: 560px;
}

.about-copy p,
.project-content p,
.contact-copy,
.spotlight-panel p {
  color: var(--muted);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.skill-list span {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  background: rgba(41, 184, 255, 0.05);
  color: var(--blue-2);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-section .section-heading {
  margin-bottom: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: linear-gradient(180deg, rgba(12, 22, 34, 0.9), rgba(9, 17, 27, 0.8));
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), 0 0 35px rgba(41, 184, 255, 0.09);
  border-radius: 24px;
  overflow: hidden;
}

.project-visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(41, 184, 255, 0.2), transparent 40%), linear-gradient(135deg, #0c1d2e, #061019);
}

.project-orb {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(41, 184, 255, 0.7);
  box-shadow: inset 0 0 35px rgba(41,184,255,0.18), 0 0 50px rgba(41,184,255,0.2);
  animation: orbitPulse 6s ease-in-out infinite alternate;
}

@keyframes orbitPulse {
  0% { transform: scale(0.96); opacity: 0.8; }
  100% { transform: scale(1.06); opacity: 1; }
}

.project-title-block {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  color: var(--blue-2);
  font-family: 'Orbitron', sans-serif;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.project-title-block span {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
}

.project-title-block strong {
  font-size: clamp(3rem, 8vw, 6rem);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.8rem, 3vw, 3rem);
}

.project-content h3 {
  margin: 0.6rem 0 0.8rem;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--blue-2);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-panel {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 30, 46, 0.72), rgba(10, 18, 28, 0.8));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18), 0 0 24px rgba(41,184,255,0.08);
  border-radius: 20px;
}

.spotlight-panel h3 {
  margin: 0.7rem 0 0.9rem;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

.contact-links {
  display: grid;
  gap: 0.9rem;
}

.contact-links a {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  background: rgba(12, 22, 34, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(41,184,255,0.7);
  box-shadow: 0 0 25px rgba(41, 184, 255, 0.12);
}

.placeholder-link {
  opacity: 0.9;
}

.contact-links small {
  display: block;
  color: var(--blue);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-links strong {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--text);
  font-size: 1rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 0 3.2rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .hero,
  .about-section,
  .contact-wrap,
  .project-card {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.1rem;
  }

  nav {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-panel {
    max-width: 460px;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .section-shell {
    width: min(100% - 1.3rem, 1120px);
  }

  .hero h1 {
    font-size: clamp(3.1rem, 20vw, 5rem);
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
