:root {
  --dark: #101827;
  --dark-soft: #172235;
  --light: #f5f7fa;
  --text: #263247;
  --muted: #718096;
  --accent: #6ea8fe;
  --white: #ffffff;
  --border: #dce3ec;
}

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

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: var(--light);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.container {
  width: min(1120px, 90%);
  margin: auto;
}

.header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 10;
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: #d9e2ef;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.project-link,
.email {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 0;
  background: none;
  color: white;
  font-size: 1.6rem;
}

.hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  max-width: 650px;
}

.eyebrow,
.project-type {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.hero h1 {
  color: var(--dark);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
}

.hero h2 {
  color: var(--muted);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin: 12px 0 20px;
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn-primary {
  background: var(--dark);
  color: white;
}

.btn-outline {
  border: 1px solid var(--dark);
  color: var(--dark);
}

.hero-card {
  width: 280px;
  height: 330px;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: var(--dark);
  border-radius: 12px;
  transform: rotate(3deg);
}

.avatar {
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 700;
}

.section {
  padding: 100px 0;
}

.section-dark {
  color: white;
  background: var(--dark);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.section-heading span {
  color: var(--accent);
  font-weight: bold;
}

.section-heading h2 {
  font-size: 2rem;
}

.about-grid,
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.about-grid p {
  margin-bottom: 18px;
}

.skills h3,
.contact h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-list span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  overflow: hidden;
  color: var(--text);
  background: white;
  border-radius: 10px;
}

.project-card img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.project-content {
  padding: 24px;
}

.project-content h3 {
  margin: 6px 0;
  font-size: 1.35rem;
}

.project-content p:not(.project-type) {
  color: var(--muted);
  margin-bottom: 18px;
}

.project-link {
  text-decoration: none;
  font-weight: 700;
}

.contact-content {
  align-items: center;
}

.contact h3 {
  font-size: 2rem;
}

.email {
  display: inline-block;
  margin-top: 20px;
  font-size: 1.1rem;
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.social-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
}

.footer {
  padding: 24px;
  color: #b7c3d4;
  background: var(--dark);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    padding: 20px;
    flex-direction: column;
    background: var(--dark);
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 90px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-card {
    width: 100%;
    height: 250px;
  }

  .about-grid,
  .contact-content,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }
}