﻿:root {
  --bg: #f3f5f9;
  --surface: #ffffff;
  --text: #152238;
  --muted: #5b6579;
  --accent: #0e5fff;
  --accent-soft: #e8efff;
  --border: #dce2ee;
  --shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  background: radial-gradient(circle at top left, #eaf1ff 0%, var(--bg) 35%, #eef2f8 100%);
  color: var(--text);
}

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #0f1728;
  color: #f5f7fc;
  padding: 2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #00b7ff);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.profile h1 {
  margin: 0.9rem 0 0.2rem;
  font-size: 1.4rem;
}

.profile p {
  margin: 0;
  color: #bcc7e0;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.menu a {
  color: #d7dff1;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  transition: 0.2s;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.84rem;
  color: #9caccc;
}

.sidebar-footer p {
  margin: 0.25rem 0;
}

.content {
  padding: 2.3rem;
}

.section {
  scroll-margin-top: 18px;
}

.hero {
  position: relative;
  padding: 2rem;
  margin-bottom: 1rem;
}

.kicker {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  max-width: 700px;
}

.hero p {
  color: var(--muted);
  max-width: 720px;
}

.hero-cta {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.btn {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  font-weight: 500;
}

.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin: 1.2rem 0;
}

h3 {
  margin-top: 0;
}

.stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.stats article {
  background: #f7f9ff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem;
}

.stats strong {
  display: block;
  font-size: 1.2rem;
}

.stats span,
.date {
  color: var(--muted);
}

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

.timeline article {
  border-left: 4px solid var(--accent-soft);
  padding-left: 0.9rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips span {
  background: #f2f6ff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
}

.grid {
  display: grid;
  gap: 0.75rem;
}

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

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

.mini-card,
.project {
  background: #fafcff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
}

.mini-card h4,
.project h4 {
  margin: 0 0 0.4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.menu-btn {
  display: none;
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -100%;
    width: 280px;
    transition: left 0.25s ease;
    z-index: 10;
  }

  .sidebar.open {
    left: 0;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .content {
    padding: 1rem;
  }

  .grid.two,
  .grid.three,
  .stats,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
