@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text: #111111;
  --muted: #6d6d6d;
  --border: #deded9;
  --accent: #111111;
  --accent-text: #ffffff;
  --shadow: 0 20px 60px rgba(0,0,0,.08);
}

body.dark {
  --bg: #101010;
  --surface: #181818;
  --text: #f5f5f5;
  --muted: #a6a6a6;
  --border: #2c2c2c;
  --accent: #ffffff;
  --accent-text: #111111;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background .3s ease, color .3s ease;
}

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

.navbar {
  width: min(1120px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: sticky;
  top: 18px;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  margin-right: auto;
}

.logo span {
  opacity: .45;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  transition: color .2s ease;
}

nav a:hover {
  color: var(--text);
}

.theme-btn,
.menu-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.menu-btn {
  display: none;
}

.hero {
  min-height: 82vh;
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 70px;
  padding: 80px 0;
}

.eyebrow {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  line-height: .98;
  letter-spacing: -.065em;
  max-width: 850px;
}

.hero h1 span {
  opacity: .38;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  margin-top: 28px;
  font-size: 1.05rem;
}

.buttons {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  padding: 13px 21px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .2s ease;
}

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

.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.secondary {
  border: 1px solid var(--border);
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 35px;
  border-radius: 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.avatar {
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 2rem;
  font-weight: 800;
}

.profile-card h2 {
  font-size: 1.4rem;
}

.profile-card p {
  color: var(--muted);
  margin-top: 5px;
  font-size: .85rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 110px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.section-text {
  max-width: 720px;
  color: var(--muted);
  margin-top: 25px;
  font-size: 1rem;
}

.cards,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 55px;
}

.card,
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
}

.card .icon {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.card h3,
.project-card h3 {
  margin-bottom: 9px;
}

.card p,
.project-card p {
  color: var(--muted);
  font-size: .9rem;
}

.project-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.project-card > span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: auto;
}

.project-link {
  margin-top: 25px;
  font-size: .85rem;
  font-weight: 700;
}

.contact {
  text-align: center;
}

.contact .section-text {
  margin-left: auto;
  margin-right: auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 35px;
}

.contact-links a {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .88rem;
}

footer {
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  padding: 30px 0 45px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

@media (max-width: 800px) {
  .navbar {
    width: calc(100% - 24px);
  }

  .menu-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    padding: 18px;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
  }

  nav.open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 65px;
  }

  .profile-card {
    max-width: 340px;
    margin: auto;
  }

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

  .section {
    padding: 80px 0;
  }
}
