:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-strong: #eef4f4;
  --ink: #17202a;
  --muted: #5b6772;
  --line: #dce3e6;
  --primary: #087f8c;
  --primary-dark: #055d66;
  --accent: #f2a65a;
  --dark: #101820;
  --dark-soft: #172633;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

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

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 227, 230, 0.9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1;
}

.brand img,
.footer-brand img {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.18);
}

.brand strong {
  color: var(--primary);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-menu a {
  transition: color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.language-btn {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.language-btn:hover,
.language-btn:focus-visible,
.language-btn.is-active {
  background: var(--dark);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(16, 24, 32, 0.93) 0%, rgba(16, 24, 32, 0.78) 44%, rgba(16, 24, 32, 0.18) 100%),
    url("assets/hero-fullstack-portfolio.png") center / cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.72), rgba(16, 24, 32, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 88px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.section-dark .eyebrow,
.contact-section .eyebrow {
  color: #7dd3dc;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.35rem, 5.2vw, 4.65rem);
  line-height: 1.04;
}

h2 {
  max-width: 760px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text {
  max-width: 720px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.social-row,
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-row {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 740px;
  margin: 36px 0 0;
}

.hero-highlights div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.hero-highlights dt {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-highlights dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 800;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-dark);
}

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

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding-block: 96px;
}

.section-muted {
  background: var(--surface-strong);
}

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

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.section-copy {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 1.06rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 36px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.06);
}

.card:nth-child(1),
.card:nth-child(2),
.card:nth-child(3) {
  grid-column: span 2;
}

.card:nth-child(4),
.card:nth-child(5) {
  grid-column: span 3;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--white);
  font-weight: 800;
}

.card p,
.project p,
.steps p,
.contact-box p {
  margin-top: 14px;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 24px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-label {
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.project-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: center;
  border-radius: var(--radius);
  background: var(--dark-soft);
  padding: 24px;
}

.project-panel span {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 800;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tech-list li {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding-top: 20px;
  border-top: 3px solid var(--primary);
}

.steps span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--primary-dark);
  font-weight: 800;
}

.contact-section {
  background: linear-gradient(135deg, var(--dark) 0%, #183844 100%);
  color: var(--white);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
}

.contact-box p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  margin-top: 0;
}

.site-footer {
  padding-block: 28px;
  background: #0d141a;
  color: rgba(255, 255, 255, 0.76);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.95rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-content a:not(.social-link) {
  color: var(--white);
  font-weight: 800;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-socials .social-link {
  width: 38px;
  height: 38px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
    order: 4;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px;
  }

  .language-switcher {
    margin-left: auto;
  }

  .hero {
    min-height: 680px;
    background:
      linear-gradient(90deg, rgba(16, 24, 32, 0.94) 0%, rgba(16, 24, 32, 0.75) 100%),
      url("assets/hero-fullstack-portfolio.png") center / cover;
  }

  .two-column,
  .project,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

  .card:nth-child(1),
  .card:nth-child(2),
  .card:nth-child(3),
  .card:nth-child(4),
  .card:nth-child(5) {
    grid-column: auto;
  }

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

@media (max-width: 640px) {
  .container,
  .nav {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding-block: 72px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    padding-block: 64px;
  }

  .hero-actions,
  .contact-actions,
  .hero-highlights {
    flex-direction: column;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .card-grid,
  .steps,
  .tech-list,
  .project-panel {
    grid-template-columns: 1fr;
  }

  .project {
    padding: 24px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
}
