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

:root {
  --bg: #0f172a;
  --panel: #111827;
  --panel-light: #1f2937;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero {
  width: min(1120px, 92%);
  min-height: 86vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
  padding: 5rem 0;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.075em;
  max-width: 850px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.hero-text,
.section-heading p,
.split p,
.contact-section p,
.timeline-item p,
.project-card p,
.skill-box p {
  color: var(--muted);
}

.hero-text {
  max-width: 720px;
  margin: 1.5rem 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.primary {
  background: var(--accent);
  color: #082f49;
}

.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-card,
.project-card,
.skill-box,
.timeline-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

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

.hero-card li::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 900;
  margin-right: 0.55rem;
}

.section {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.project-card {
  padding: 1.2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover,
.skill-box:hover,
.timeline-item:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.tag {
  display: inline-block;
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.24);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.tech-list span {
  color: var(--text);
  font-size: 0.76rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
}

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.skill-box {
  padding: 1.1rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  padding: 1.25rem;
}

.contact-section {
  text-align: center;
  max-width: 860px;
}

.contact-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.contact-links a {
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.contact-links a:hover {
  color: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 1.4rem;
}

@media (max-width: 900px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .project-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }
}
