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

:root {
  font-family: Inter, system-ui, sans-serif;
  color: #111827;
  background: #f8fafc;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

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

.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 3.5rem 1.5rem 4rem;
}

.site-nav {
  max-width: 1100px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  font-weight: 700;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.95);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #f8fafc;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 4px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw, 4rem);
  margin-bottom: 0.75rem;
}

.hero p {
  max-width: 42rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  opacity: 0.95;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  background: white;
  color: #1d4ed8;
  font-weight: 700;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.16);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.container {
  max-width: 1100px;
  margin: -3rem auto 3rem;
  padding: 0 1.5rem;
}

.card {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
  margin-bottom: 1.75rem;
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.card p {
  margin-top: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.skill-item,
.project {
  background: #eef2ff;
  border-radius: 18px;
  padding: 1rem 1.25rem;
  font-weight: 600;
}

.project h3 {
  margin-bottom: 0.5rem;
}

.contact-card ul {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}

.contact-card li {
  background: #f8fafc;
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

footer {
  text-align: center;
  padding: 1.5rem;
  color: #475569;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .site-nav {
    justify-content: center;
    margin-bottom: 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 1rem;
  }

  .container {
    margin-top: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}
