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

:root {
  --bg: #050914;
  --bg2: #0b1220;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #a8b4c7;
  --blue: #38bdf8;
  --green: #34d399;
  --violet: #a78bfa;
  --pink: #f472b6;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.22), transparent 25%),
    radial-gradient(circle at 88% 18%, rgba(167, 139, 250, 0.20), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(52, 211, 153, 0.13), transparent 28%),
    linear-gradient(135deg, #050914, #07111f 52%, #050914);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
  z-index: -2;
}

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

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 200;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15), transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  transition: 0.08s linear;
}

.navbar {
  width: min(1180px, calc(100% - 36px));
  position: sticky;
  top: 16px;
  z-index: 100;
  margin: 16px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(5, 9, 20, 0.72);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 900;
  letter-spacing: -0.06em;
  font-size: 1.04rem;
}

.logo span {
  margin-left: 3px;
  color: var(--blue);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a {
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 7px 10px;
  font-size: 1.1rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0 70px;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 42px;
  align-items: center;
}

.hero-grid {
  position: absolute;
  inset: 20px -40px auto auto;
  width: 540px;
  height: 540px;
  background:
    linear-gradient(90deg, rgba(56,189,248,0.13) 1px, transparent 1px),
    linear-gradient(rgba(56,189,248,0.13) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(900px) rotateX(58deg) rotateZ(-18deg);
  opacity: 0.32;
  mask-image: radial-gradient(circle, black, transparent 68%);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 9px 13px;
  margin-bottom: 22px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
  color: #c8ffe9;
  font-weight: 800;
  font-size: 0.78rem;
}

.pulse {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.eyebrow {
  color: var(--blue);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(3rem, 7.1vw, 6.7rem);
  line-height: 0.93;
  letter-spacing: -0.095em;
  max-width: 820px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--blue), var(--green), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 24px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.22s ease;
}

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

.btn.primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  box-shadow: 0 18px 50px rgba(56, 189, 248, 0.22);
}

.btn.ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 600px;
}

.metrics div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.metrics strong {
  display: block;
  font-size: 1.65rem;
  letter-spacing: -0.06em;
}

.metrics span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.system-panel,
.about-main,
.mini-card,
.timeline-item,
.project-card,
.skill-cloud,
.contact-card,
.lead-card,
.explore-item {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
  border-radius: 32px;
}

.system-panel {
  min-height: 575px;
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.system-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 60% 20%, rgba(56,189,248,0.17), transparent 35%);
  pointer-events: none;
}

.panel-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.panel-header span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.panel-header span:nth-child(1) { background: #fb7185; }
.panel-header span:nth-child(2) { background: #facc15; }
.panel-header span:nth-child(3) { background: #34d399; }

.terminal {
  position: relative;
  z-index: 1;
  font-family: "SFMono-Regular", Consolas, monospace;
  color: #cceeff;
  font-size: 0.85rem;
  display: grid;
  gap: 13px;
}

.terminal span {
  color: var(--green);
  font-weight: 900;
}

.terminal .success {
  color: #bbf7d0;
}

.radar {
  position: absolute;
  width: 260px;
  height: 260px;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 22%, rgba(56,189,248,0.05) 23%, transparent 24%),
    radial-gradient(circle, transparent 47%, rgba(56,189,248,0.08) 48%, transparent 49%),
    linear-gradient(rgba(56,189,248,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.14) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 50%, 50% 100%;
  overflow: hidden;
}

.radar::before,
.radar::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: rgba(56,189,248,0.22);
}

.radar::after {
  transform: rotate(90deg);
}

.sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg, rgba(56,189,248,0.0), rgba(56,189,248,0.30), rgba(56,189,248,0.0) 35%);
  animation: rotate 4s linear infinite;
}

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

.dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--green);
}

.d1 { left: 35%; top: 36%; }
.d2 { right: 28%; top: 54%; }
.d3 { left: 55%; bottom: 26%; }

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 105px 0;
}

.section.dark {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100% - 1180px) / 2));
  padding-right: max(18px, calc((100% - 1180px) / 2));
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-title p {
  color: var(--blue);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
}

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

.about-main {
  padding: 34px;
}

.about-main h3,
.mini-card h3,
.timeline-content h3,
.project-card h3,
.lead-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.about-main p,
.mini-card p,
.timeline-content p,
.project-card p,
.contact-card p,
.lead-card p {
  color: var(--muted);
}

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

.about-cards {
  display: grid;
  gap: 18px;
}

.mini-card,
.lead-card,
.explore-item {
  padding: 26px;
  transition: 0.22s ease;
}

.mini-card:hover,
.project-card:hover,
.lead-card:hover,
.explore-item:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.45);
}

.mini-card span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  color: #06111f;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 26px;
}

.time {
  color: var(--green);
  font-weight: 900;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.project-card {
  padding: 28px;
  transition: 0.22s ease;
  min-height: 270px;
  position: relative;
  overflow: hidden;
}

.project-card.large {
  grid-row: span 2;
  min-height: 562px;
  background:
    radial-gradient(circle at 70% 20%, rgba(56,189,248,0.18), transparent 35%),
    var(--panel);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 210px;
  height: 210px;
  background: rgba(167, 139, 250, 0.11);
  border-radius: 50%;
}

.project-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-meta a {
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.project-meta a:hover {
  color: var(--blue);
}

.project-card h3,
.project-card p,
.tags {
  position: relative;
  z-index: 1;
}

.project-card h3 {
  font-size: 1.6rem;
}

.project-card.large h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.role {
  color: #d8ecff !important;
  font-weight: 800;
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.tags span,
.skill-cloud span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 800;
}

.tags span {
  padding: 7px 11px;
  font-size: 0.78rem;
}

.leadership-grid,
.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

.explore-item {
  color: var(--text);
  font-weight: 850;
}

.skill-cloud {
  padding: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skill-cloud span {
  padding: 13px 17px;
  transition: 0.2s ease;
}

.skill-cloud span:hover {
  transform: translateY(-4px) scale(1.03);
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.45);
}

.contact {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: min(930px, 100%);
  text-align: center;
  padding: 54px;
  background:
    radial-gradient(circle at top, rgba(56,189,248,0.15), transparent 42%),
    var(--panel);
}

.contact-card h2 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  letter-spacing: -0.07em;
  line-height: 1.04;
  margin-bottom: 18px;
}

.contact-card p {
  max-width: 720px;
  margin: 0 auto;
}

.contact-actions {
  justify-content: center;
}

footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.75s ease;
}

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

@media (max-width: 1080px) {
  .leadership-grid,
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .project-card.large {
    grid-row: auto;
    min-height: 340px;
  }

  .system-panel {
    min-height: 480px;
  }
}

@media (max-width: 760px) {
  .navbar {
    border-radius: 24px;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(5, 9, 20, 0.96);
  }

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

  .hero {
    padding-top: 64px;
  }

  .metrics,
  .leadership-grid,
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .contact-card {
    padding: 34px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sweep,
  .pulse,
  .reveal,
  .cursor-glow {
    animation: none;
    transition: none;
  }
}
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container,
  .hero,
  .section,
  main {
    width: 100%;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

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

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

  h1 {
    font-size: 44px;
    line-height: 1.05;
  }

  .hero p {
    font-size: 18px;
  }

  .hero-buttons,
  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons a,
  .buttons a,
  .btn {
    width: 100%;
    text-align: center;
  }

  .stats,
  .cards,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  nav {
    width: calc(100% - 32px);
    margin: 16px auto;
  }
}
