:root {
  --max-width: 1100px;
  --page-bg: #f5f6f8;
  --muted: #6b7280;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--page-bg);
  color: #111;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

header.banner {
  background: url('../img/bg.jpg') center/cover no-repeat;
  height: 250px;
  position: relative;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

.profile {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 10px;
  padding: 12px 16px;
}

.profile-pic {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15,23,42,0.15);
  background: #fff;
  flex-shrink: 0;
}

.profile-text {
  display: flex;
  flex-direction: column;
}

.name {
  font-family: 'Kaushan Script', cursive;
  font-size: 36px;
  margin: 0;
  color: #0b2548;
  line-height: 1;
}

.job {
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 16px;
}

.about {
  margin-top: 12px;
  color: #333;
  max-width: 70ch;
  font-size: 15px;
}

.social {
  display: flex;
  gap: 12px;
  margin: 22px 0 8px;
  flex-wrap: wrap;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none;
}

.social a img {
  width: 24px;
  height: 24px;
  display: block;
  filter: saturate(100) hue-rotate(120deg) brightness(0.7);
}

.social a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  background: #f0f0f0;
}

section h2 {
  margin: 6px 0 12px 0;
  font-size: 20px;
  color: #0b2548;
}

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

.card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
  transition: transform .14s ease, box-shadow .14s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 140px;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(15,23,42,0.12);
}

.card .thumb {
  height: 86px;
  flex: 0 0 86px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px;
}

.card .title {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin: 0;
}

.card .meta {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card .desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

footer {
  text-align: center;
  padding: 18px 8px;
  color: #8b8f98;
  font-size: 14px;
}

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

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

@media (max-width: 640px) {
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text {
    margin-top: 12px;
  }
}
