:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: rgba(15, 23, 42, 0.7);
  --panel-strong: #1e293b;
  --card: #111827;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --secondary: #f59e0b;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0%, var(--bg) 38%, #020817 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6rem 0;
}

.section-alt {
  background: rgba(15, 23, 42, 0.38);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-accent {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(245, 158, 11, 0.14));
  border-top: 1px solid var(--border);
}

.section-inner {
  display: grid;
  gap: 2rem;
}

.section-heading {
  display: grid;
  gap: 0.55rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  color: var(--secondary);
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 6vw, 3rem);
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(2, 8, 23, 0.5);
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
}

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

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.tagline {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.25);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
}

.hero-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  min-height: 340px;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: -10% 10% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.7), transparent 62%);
  filter: blur(20px);
  opacity: 0.7;
}

.profile-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.card-content {
  position: relative;
  display: grid;
  gap: 1rem;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.09);
  color: #fbbf24;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-content ul {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  color: var(--muted);
}

.card-content li::before {
  content: "•";
  color: var(--secondary);
  margin-right: 0.7rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skills-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.56);
  color: var(--text);
  font-weight: 500;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.project-image {
  height: 210px;
  background-size: cover;
  background-position: center;
}

.project-one {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.8), rgba(59, 130, 246, 0.45));
}

.project-two {
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.8), rgba(251, 146, 60, 0.5));
}

.project-three {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.8), rgba(45, 212, 191, 0.6));
}

.project-body {
  padding: 1.5rem;
  color: var(--muted);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.site-footer {
  padding: 1.8rem 0 2.5rem;
  color: var(--muted);
}

.footer-wrap {
  display: flex;
  justify-content: center;
}

@media (max-width: 820px) {
  .hero-grid,
  .about-grid,
  .projects-grid,
  .contact-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .contact-box {
    justify-content: stretch;
    align-items: flex-start;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(2, 8, 23, 0.94);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 4rem;
  }

  .section {
    padding: 5rem 0;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
