:root {
  --bg: #071019;
  --bg-2: #0d1724;
  --surface: rgba(14, 23, 35, 0.78);
  --surface-strong: rgba(16, 26, 40, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef4fb;
  --muted: #9ca9ba;
  --accent: #59e0c3;
  --accent-strong: #9ef2de;
  --accent-warm: #ff9a58;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --shell: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(89, 224, 195, 0.08), transparent 24%),
    linear-gradient(135deg, #08111b 0%, #0c1623 48%, #101a2a 100%);
  color: var(--text);
  font-family: Manrope, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 92%);
  pointer-events: none;
  z-index: -3;
}

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

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

.page-noise,
.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.page-noise {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 0.8px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.045;
}

.page-glow {
  filter: blur(90px);
  opacity: 0.55;
}

.glow-top {
  inset: -20% 45% auto -10%;
  background: rgba(89, 224, 195, 0.18);
}

.glow-bottom {
  inset: auto -8% -22% 48%;
  background: rgba(255, 154, 88, 0.14);
}

.shell,
.nav-shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 14px 0 0;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(7, 12, 19, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(89, 224, 195, 0.25), rgba(255, 154, 88, 0.24)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.hero {
  padding: 34px 0 80px;
}

.hero-layout {
  width: min(calc(100% - 32px), 1320px);
  margin: 0 auto;
  min-height: calc(100svh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 40px;
}

.hero-copy h1,
h2,
h3,
.project-card h3,
.modal-content h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.hero-kicker,
.eyebrow,
.mini-label,
.stage-label,
.project-label,
.modal-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-kicker {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(89, 224, 195, 0.22);
  color: var(--accent-strong);
  background: rgba(89, 224, 195, 0.08);
  margin-bottom: 22px;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.96;
  margin-bottom: 22px;
}

.hero-text,
.section-desc,
.about-panel p,
.skills-copy p,
.project-summary,
.project-card p,
.modal-description,
.modal-section p,
.contact-links a span {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text {
  max-width: 620px;
  font-size: 1.06rem;
  margin-bottom: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 22px;
  border-radius: 18px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
  color: #061219;
  background: linear-gradient(135deg, var(--accent) 0%, #b7ffe9 100%);
  box-shadow: 0 18px 40px rgba(89, 224, 195, 0.2);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

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

.hero-points article,
.about-panel,
.info-panel,
.skills-board,
.project-card,
.projects-spotlight,
.contact-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-points article {
  min-height: 156px;
  padding: 18px;
  border-radius: 22px;
}

.hero-points strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.hero-stage {
  perspective: 1800px;
}

.stage-frame {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  padding: 36px;
  background:
    linear-gradient(160deg, rgba(18, 30, 46, 0.96), rgba(7, 13, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.42);
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
}

.stage-backdrop,
.stage-grid {
  position: absolute;
  inset: 0;
}

.stage-backdrop {
  background:
    radial-gradient(circle at 25% 25%, rgba(89, 224, 195, 0.18), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(255, 154, 88, 0.16), transparent 22%);
}

.stage-grid {
  inset: auto 6% 8% 6%;
  height: 44%;
  border-radius: 26px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotateX(72deg) translateZ(-32px);
  transform-origin: center bottom;
  opacity: 0.4;
}

.stage-card {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 14, 22, 0.8);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.stage-card-main {
  inset: 64px 90px 158px 34px;
  transform: translateZ(70px) rotateY(-10deg) rotateX(4deg);
}

.stage-card-side {
  width: 240px;
  right: 42px;
  top: 70px;
  transform: translateZ(130px) rotateY(-22deg) rotateX(10deg);
}

.stage-card-floating {
  width: 220px;
  right: 84px;
  bottom: 42px;
  transform: translateZ(170px) rotateY(-26deg) rotateX(-6deg);
}

.stage-shot {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.stage-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 10, 16, 0.92) 58%);
}

.stage-copy span {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.stage-copy.compact span {
  font-size: 0.94rem;
}

.stage-copy p {
  color: #cad5e2;
  line-height: 1.55;
  font-size: 0.92rem;
}

.stage-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(8, 15, 23, 0.76);
  border: 1px solid rgba(89, 224, 195, 0.18);
}

.stage-pulse {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(89, 224, 195, 0.16);
  animation: pulse 5s ease-in-out infinite;
}

.stage-pulse-a {
  width: 220px;
  height: 220px;
  top: 30px;
  left: 45%;
}

.stage-pulse-b {
  width: 180px;
  height: 180px;
  bottom: 110px;
  left: 10%;
  animation-delay: -2s;
}

.section {
  padding: 86px 0;
}

.section-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.eyebrow,
.mini-label,
.modal-label {
  color: var(--accent-strong);
}

h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.02;
}

.section-desc {
  max-width: 650px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
}

.about-panel,
.info-panel,
.skills-board,
.projects-spotlight,
.project-card,
.contact-panel {
  border-radius: var(--radius);
}

.about-panel {
  padding: 28px;
}

.about-intro {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}

.profile-photo-shell {
  width: 124px;
  height: 124px;
  padding: 6px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(89, 224, 195, 0.26), rgba(255, 154, 88, 0.2));
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background: #0e1824;
}

.about-panel h3 {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.08;
}

.about-columns {
  display: grid;
  gap: 22px;
}

.info-panel {
  padding: 24px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #d8e2ee;
  line-height: 1.7;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
}

.skills-board {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 22px;
  padding: 28px;
}

.skills-copy {
  padding-right: 8px;
}

.skill-list,
.stack-list,
.modal-thumbs,
.project-metrics,
.modal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-list {
  align-content: start;
}

.chip,
.metric-pill {
  display: inline-flex;
  align-items: center;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 10, 15, 0.5);
  color: #edf4fb;
  transition: 0.25s ease;
}

.chip:hover,
.metric-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 224, 195, 0.28);
  color: var(--accent-strong);
}

.projects-spotlight {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  padding: 26px;
  margin-bottom: 24px;
}

.project-preview {
  position: relative;
  min-height: 430px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1724;
}

.project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 15, 24, 0.1), rgba(7, 15, 24, 0.9));
}

.project-preview-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-preview-copy h3 {
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 0.98;
  margin: 10px 0 14px;
}

.project-meta {
  display: grid;
  gap: 18px;
  align-content: center;
}

.project-summary {
  font-size: 1rem;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(89, 224, 195, 0.22);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(89, 224, 195, 0.08), transparent 46%, rgba(255, 154, 88, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-visual {
  position: relative;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  background: linear-gradient(180deg, transparent 25%, rgba(5, 10, 16, 0.88) 100%);
}

.project-label {
  color: var(--accent-strong);
}

.project-card h3 {
  font-size: 1.56rem;
  line-height: 1.04;
  margin: 10px 0 12px;
}

.project-metrics,
.modal-metrics {
  margin: 18px 0;
}

.project-button {
  width: 100%;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.project-button:hover {
  transform: translateY(-2px);
  color: var(--accent-strong);
  border-color: rgba(89, 224, 195, 0.3);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  padding: 30px;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-links a {
  text-decoration: none;
  color: var(--text);
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 21, 0.55);
  transition: 0.25s ease;
}

.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(89, 224, 195, 0.24);
}

.contact-links strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.footer {
  padding: 10px 0 34px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #90a0b3;
  font-size: 0.94rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.76);
  backdrop-filter: blur(10px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(12, 20, 31, 0.98), rgba(8, 13, 21, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-gallery,
.modal-content {
  min-width: 0;
}

.modal-image-frame {
  position: relative;
}

.modal-main-image {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
}

.modal-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 0.88rem;
  background: rgba(5, 10, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-thumbs {
  margin-top: 14px;
}

.modal-thumb {
  width: 92px;
  height: 68px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.78;
  transition: 0.25s ease;
}

.modal-thumb:hover,
.modal-thumb.active {
  opacity: 1;
  border-color: rgba(89, 224, 195, 0.3);
}

.modal-content h3 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1;
  margin-bottom: 12px;
}

.modal-section + .modal-section {
  margin-top: 24px;
}

.modal-section h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.modal-section p {
  margin-bottom: 10px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  align-items: center;
  justify-content: center;
}

.image-viewer.show {
  display: flex;
}

.image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
}

.image-viewer-img {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  border-radius: 18px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.6);
  cursor: zoom-out;
}

body.modal-open {
  overflow: hidden;
}

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

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.2;
  }
}

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

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

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

  .stage-frame {
    min-height: 560px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-shell {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding-top: 6px;
  }

  .nav-links.show {
    display: flex;
  }

  .projects-grid,
  .modal-dialog {
    grid-template-columns: 1fr;
  }

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

  .stage-card-main {
    inset: 64px 34px 150px 24px;
  }

  .stage-card-side {
    width: 210px;
    right: 24px;
  }

  .stage-card-floating {
    width: 190px;
    right: 40px;
  }
}

@media (max-width: 620px) {
  .navbar {
    padding-top: 10px;
  }

  .nav-shell,
  .about-panel,
  .info-panel,
  .skills-board,
  .projects-spotlight,
  .project-card,
  .contact-panel,
  .modal-dialog {
    padding: 20px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .contact-links,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .stage-frame {
    min-height: 470px;
    padding: 18px;
  }

  .stage-card-main {
    inset: 54px 18px 142px 18px;
  }

  .stage-card-side {
    width: 150px;
    top: 56px;
    right: 12px;
  }

  .stage-card-floating {
    width: 146px;
    right: 18px;
    bottom: 28px;
  }

  .project-preview {
    min-height: 280px;
  }

  .modal-thumb {
    width: 78px;
    height: 58px;
  }
}
