:root {
  --bg: #07111f;
  --bg-soft: rgba(11, 21, 38, 0.78);
  --panel: rgba(10, 18, 32, 0.78);
  --panel-strong: rgba(9, 16, 29, 0.92);
  --line: rgba(101, 245, 255, 0.28);
  --line-strong: rgba(101, 245, 255, 0.5);
  --text: #f4fbff;
  --muted: #9eb7c8;
  --cyan: #65f5ff;
  --pink: #ff4fd8;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(101, 245, 255, 0.12), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 79, 216, 0.12), transparent 24%),
    linear-gradient(180deg, #06101c 0%, #091423 46%, #040912 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

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

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

img {
  display: block;
  max-width: 100%;
}

#bgCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(7, 13, 24, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-text,
.main-nav a,
.eyebrow,
.button,
.hero-stats strong,
.section-heading h2,
.skill-card h3,
.highlights h3 {
  font-family: 'Orbitron', sans-serif;
}

.brand-text {
  font-size: 0.95rem;
  letter-spacing: 0;
  color: var(--text);
}

.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(101, 245, 255, 0.16);
  border-radius: 8px;
  background: rgba(101, 245, 255, 0.06);
  color: #dffcff;
  font-size: 0.88rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  transition: color 0.25s ease, text-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.main-nav a:hover {
  color: var(--cyan);
  background: rgba(101, 245, 255, 0.12);
  border-color: rgba(101, 245, 255, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(101, 245, 255, 0.16);
  text-shadow: 0 0 14px rgba(101, 245, 255, 0.55);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 36px 0 48px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  line-height: 1.02;
  text-shadow: 0 0 28px rgba(101, 245, 255, 0.12);
}

.lead,
.panel p,
.contact-panel p,
.skill-card p,
.highlight-item p,
.hero-stats span {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 58ch;
  margin-bottom: 28px;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.82rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, rgba(101, 245, 255, 0.18), rgba(255, 79, 216, 0.16));
  border-color: rgba(101, 245, 255, 0.34);
  box-shadow: 0 0 24px rgba(101, 245, 255, 0.15);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.hero-stats li,
.panel,
.skill-card,
.contact-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(11, 20, 35, 0.88), rgba(8, 15, 27, 0.78));
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
}

.hero-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.8rem;
}

.hero-stats span {
  display: block;
  font-size: 0.92rem;
}

.hero-visual {
  display: grid;
  gap: 18px;
  justify-items: center;
  align-items: center;
  align-self: start;
  padding-top: 54px;
}

.portrait-frame {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.panel::before,
.skill-card::before,
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  pointer-events: none;
}

.profile-pic {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(101, 245, 255, 0.85);
  box-shadow:
    0 0 0 6px rgba(101, 245, 255, 0.08),
    0 0 18px rgba(101, 245, 255, 0.42),
    0 0 36px rgba(101, 245, 255, 0.3),
    0 0 58px rgba(255, 79, 216, 0.14);
  animation: neonPulse 2.6s ease-in-out infinite;
}

.content-section {
  padding: 54px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 2rem;
  line-height: 1.15;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
}

.panel {
  position: relative;
  padding: 24px;
}

.panel p + p {
  margin-top: 16px;
}

.highlights {
  display: grid;
  gap: 18px;
}

.highlight-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.highlight-line {
  width: 2px;
  min-height: 100%;
  margin: 3px auto 0;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
  box-shadow: 0 0 18px rgba(101, 245, 255, 0.45);
}

.highlights h3,
.skill-card h3 {
  margin-bottom: 8px;
  font-size: 0.94rem;
  color: var(--text);
}

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

.skill-card {
  position: relative;
  min-height: 168px;
  padding: 22px;
}

.contact-section {
  padding-bottom: 22px;
}

.contact-panel {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 24px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(101, 245, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(101, 245, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 245, 255, 0.54);
  box-shadow: 0 0 18px rgba(101, 245, 255, 0.16);
}

.contact-copy-button:hover {
  transform: translateY(-2px);
  border-color: rgba(101, 245, 255, 0.54);
  box-shadow: 0 0 18px rgba(101, 245, 255, 0.16);
}

.copy-feedback {
  min-height: 24px;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.footer {
  padding: 30px 0 14px;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
}

@keyframes neonPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 6px rgba(101, 245, 255, 0.08),
      0 0 18px rgba(101, 245, 255, 0.42),
      0 0 36px rgba(101, 245, 255, 0.3),
      0 0 58px rgba(255, 79, 216, 0.14);
  }

  50% {
    box-shadow:
      0 0 0 8px rgba(101, 245, 255, 0.14),
      0 0 26px rgba(101, 245, 255, 0.75),
      0 0 52px rgba(101, 245, 255, 0.48),
      0 0 84px rgba(255, 79, 216, 0.26);
  }
}

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

  .hero {
    min-height: auto;
    padding-top: 12px;
  }

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

  .hero h1 {
    max-width: 12ch;
    font-size: 3.1rem;
  }

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

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 14px;
  }

  .brand-text {
    font-size: 0.84rem;
  }

  .main-nav {
    position: static;
    left: auto;
    transform: none;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav a {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.74rem;
  }

  .hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: auto;
    padding-top: 8px;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    padding-top: 0;
  }

  .hero-copy {
    order: 0;
  }

  .portrait-frame {
    justify-items: start;
  }

  .profile-pic {
    width: min(100%, 220px);
    margin: 0 auto;
  }

  .hero h1 {
    max-width: none;
    font-size: 2.5rem;
  }

  .section-heading h2 {
    font-size: 1.65rem;
  }

  .content-section {
    padding: 38px 0;
  }

  .panel,
  .skill-card,
  .contact-panel {
    padding: 18px;
  }

  .profile-pic {
    width: min(100%, 240px);
  }
}

