:root {
  --bg: #06111f;
  --panel: rgba(255, 255, 255, 0.07);
  --text: #f5f9ff;
  --muted: #a9b7c9;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #22d3ee;
  --blue: #2563eb;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(
      circle at top left,
      rgba(34, 211, 238, 0.16),
      transparent 34rem
    ),
    radial-gradient(
      circle at 80% 10%,
      rgba(37, 99, 235, 0.22),
      transparent 35rem
    ),
    linear-gradient(135deg, #040916, var(--bg) 48%, #07172a);
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.section {
  padding: 96px 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 9, 22, 0.74);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
}
.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding-top: 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  max-width: 820px;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.hero-text {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 30px;
}
.hero-actions,
.contact-actions,
.project-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.7);
}
.btn.primary {
  color: #04111f;
  background: linear-gradient(135deg, var(--cyan), #60a5fa);
}
.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
  max-width: 580px;
}
.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}
.hero-stats strong {
  display: block;
  font-size: 1.15rem;
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}
.hero-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.12),
    rgba(255, 255, 255, 0.04)
  );
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.profile-wrap {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(
    135deg,
    rgba(8, 15, 28, 0.92),
    rgba(14, 28, 48, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.terminal-card {
  margin-top: 18px;
  border-radius: 18px;
  background: #050914;
  border: 1px solid var(--line);
  overflow: hidden;
}
.terminal-bar {
  height: 34px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-bar span:nth-child(1) {
  background: #ef4444;
}
.terminal-bar span:nth-child(2) {
  background: #f59e0b;
}
.terminal-bar span:nth-child(3) {
  background: #22c55e;
}
pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #b7f7d0;
  font-size: 0.88rem;
}
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.intro p:last-child,
.brand-panel p,
.contact-card p,
.muted {
  color: var(--muted);
}
.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}
.cards.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card,
.project-card,
.skill-box,
.timeline-item,
.contact-card,
.brand-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card {
  padding: 26px;
}
.card p,
.project-card p,
.skill-box p,
.timeline-item p {
  color: var(--muted);
}
.icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}
.project-card {
  padding: 26px;
  min-height: 240px;
}
.project-card.featured {
  grid-row: span 3;
  min-height: 100%;
  display: flex;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(6, 17, 31, 0.45), rgba(6, 17, 31, 0.95)),
    radial-gradient(
      circle at 30% 20%,
      rgba(34, 211, 238, 0.2),
      transparent 22rem
    );
}
.tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.project-card ul {
  padding-left: 18px;
  color: var(--muted);
}
.stack {
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 800;
  font-size: 0.9rem;
}
.project-links a {
  color: var(--cyan);
  font-weight: 800;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.skill-box,
.timeline-item {
  padding: 24px;
}
.timeline {
  display: grid;
  gap: 16px;
}
.timeline-item span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 0.82rem;
}
.brand-panel {
  padding: 44px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(37, 99, 235, 0.12)),
    var(--panel);
}
.contact-card {
  padding: 36px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer p {
  margin: 0;
}
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(4, 9, 22, 0.96);
  }
  .nav-links.open {
    display: flex;
  }
  .hero-grid,
  .split,
  .project-grid,
  .skills-grid,
  .cards.three {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .contact-card,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .project-card.featured {
    min-height: 360px;
  }
}
@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1120px);
  }
  .section {
    padding: 72px 0;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 3rem;
  }
  .hero-card {
    padding: 14px;
  }
}
