:root {
  --black: #111111;
  --dark: #1d1d1d;
  --white: #ffffff;
  --gray: #d7d7d7;
  --muted: #6b6b6b;
  --line: #000000;
  --soft: #eeeeee;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  margin: 0 auto;
  max-width: 1100px;
  padding: 0 24px;
}

.narrow {
  max-width: 900px;
}

.site-header {
  background: var(--black);
  color: var(--white);
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1400px;
  min-height: 66px;
  padding: 0 48px;
}

.logo {
  align-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 38px;
  list-style: none;
}

.nav-links a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gray);
}

.contact-link {
  background: var(--white);
  border-radius: 24px;
  color: var(--black);
  padding: 12px 24px;
}

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
}

.menu-button span {
  background: var(--white);
  display: block;
  height: 3px;
  margin: 5px 0;
  width: 28px;
}

.hero {
  background: linear-gradient(105deg, var(--gray) 0 52%, var(--black) 52% 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
  padding-top: 66px;
}

.hero-content {
  align-self: center;
  justify-self: center;
  max-width: 520px;
  padding: 80px 32px;
}

.hero-intro {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: "Raleway", Arial, sans-serif;
  font-size: clamp(46px, 6vw, 78px);
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.hero-role {
  color: var(--muted);
  font-family: "Raleway", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin-top: 12px;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 86px;
}

.social-links a {
  align-items: center;
  background: #c4c4c4;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  display: flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.hero-visual {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 80px 32px;
}

.profile-frame {
  height: min(760px, 82vh);
  max-width: 560px;
  overflow: visible;
  position: relative;
  width: min(520px, 80vw);
}

.profile-frame::before {
  border: 6px solid rgba(255, 255, 255, 0.8);
  content: "";
  inset: 28px;
  position: absolute;
  z-index: 1;
}

.profile-frame::after {
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.42), transparent 38%);
  content: "";
  inset: 0;
  position: absolute;
}

.profile-frame img {
  display: block;
  filter: grayscale(18%) contrast(1.05);
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  position: relative;
  z-index: 1;
  width: 100%;
}

.intro-band {
  background: var(--dark);
  color: var(--white);
  padding: 44px 0;
}

.intro-band h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 30px;
  letter-spacing: 5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.intro-band p {
  max-width: 900px;
}

.section {
  background: radial-gradient(circle, rgba(0, 0, 0, 0.08), transparent 35%), var(--white);
  padding: 96px 0;
}

.section-title {
  border: 8px solid var(--line);
  display: table;
  margin: 0 auto 48px;
  padding: 18px 54px;
}

.section-title h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 10px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.center-text {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.line-button {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--line);
  border-right: 3px solid var(--line);
  cursor: pointer;
  display: table;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 34px auto 0;
  padding: 8px 32px;
  text-transform: uppercase;
}

.line-button.light {
  border-color: var(--white);
  margin: 24px 0 0;
}

.services {
  display: grid;
  gap: 38px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 76px;
}

.services article {
  min-height: 180px;
}

.service-icon {
  color: rgba(0, 0, 0, 0.14);
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 64px;
  font-weight: 800;
  height: 48px;
  line-height: 1;
}

.services h3,
.skill-heading {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.services p {
  font-size: 14px;
  text-align: justify;
}

.skill-heading {
  margin: 56px 0 32px;
}

.skill-grid {
  display: grid;
  gap: 42px;
  grid-template-columns: repeat(4, 1fr);
}

.skill-grid.compact {
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
}

.skill-card {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--soft);
  display: flex;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  height: 118px;
  justify-content: center;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
}

.html {
  border-color: #e34f26;
}

.css {
  border-color: #1572b6;
}

.js {
  border-color: #f7df1e;
}

.responsive {
  border-color: #111111;
}

.projects {
  background: var(--dark);
  color: var(--white);
  padding-bottom: 56px;
}

.portfolio-heading {
  align-items: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
    url("https://www.figma.com/api/mcp/asset/ae6f5284-191b-4e31-b4c3-2a33bac1be39") center / cover;
  display: flex;
  min-height: 320px;
  justify-content: center;
}

.portfolio-heading .section-title {
  margin: 0;
}

.project-filter {
  display: flex;
  justify-content: center;
  padding: 28px 24px;
}

.project-filter button {
  background: transparent;
  border: 0;
  color: #777777;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  min-width: 140px;
  padding: 16px;
  text-transform: uppercase;
}

.project-filter button.active {
  border-bottom: 2px solid var(--white);
  color: var(--white);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.project-card {
  align-items: center;
  background: #2c2c2c;
  display: flex;
  justify-content: center;
  min-height: 310px;
  overflow: hidden;
  padding: 28px;
  position: relative;
  text-align: center;
}

.project-card::before {
  background: rgba(0, 0, 0, 0.52);
  content: "";
  inset: 0;
  position: absolute;
}

.project-card div {
  position: relative;
  z-index: 1;
}

.project-card p {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 1px;
}

.project-card h3 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 24px;
  letter-spacing: 5px;
  margin: 12px 0;
  text-transform: lowercase;
}

.project-card span {
  display: block;
  font-size: 13px;
  margin: 0 auto;
  max-width: 280px;
}

.project-one {
  background: url("https://www.figma.com/api/mcp/asset/025c2e3a-b595-42a0-adac-3acfbd09a87e") center / cover;
}

.project-two {
  background: url("https://www.figma.com/api/mcp/asset/e2476025-d410-466e-a67f-63ce5b22f2e7") center / cover;
}

.project-three {
  background: url("https://www.figma.com/api/mcp/asset/8273bdb7-94e1-4e72-a662-b74b9dca4d27") center / cover;
}

.project-four {
  background: url("https://www.figma.com/api/mcp/asset/e2476025-d410-466e-a67f-63ce5b22f2e7") center / cover;
}

.more-projects {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding-top: 34px;
  text-align: center;
}

.contact {
  background:
    radial-gradient(circle at 52% 0%, rgba(77, 134, 122, 0.36), transparent 34%),
    radial-gradient(circle at 8% 30%, rgba(255, 255, 255, 0.08), transparent 20%),
    #050505;
  color: var(--white);
  overflow: hidden;
  padding: 120px 0;
  position: relative;
}

.contact::before,
.contact::after {
  background: rgba(255, 255, 255, 0.24);
  content: "";
  height: 1px;
  position: absolute;
  top: 160px;
  width: 230px;
}

.contact::before {
  left: -60px;
  transform: rotate(42deg);
}

.contact::after {
  right: -60px;
  transform: rotate(-42deg);
}

.contact-bg-title {
  color: rgba(255, 255, 255, 0.06);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(82px, 14vw, 190px);
  font-weight: 800;
  left: 50%;
  line-height: 1;
  position: absolute;
  text-transform: uppercase;
  top: 82px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.contact-layout {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: 0.9fr 1.1fr;
  position: relative;
  z-index: 1;
}

.contact-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  display: inline-block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 22px;
  padding: 10px 18px;
  text-transform: uppercase;
}

.contact-info h2 {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin-bottom: 16px;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
}

.contact-cards {
  display: grid;
  gap: 16px;
  margin-top: 56px;
}

.contact-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  min-height: 74px;
  padding: 16px;
}

.contact-card strong {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-card span:last-child {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.contact-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  flex: 0 0 44px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  height: 44px;
  justify-content: center;
}

.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  display: grid;
  gap: 12px;
  padding: 10px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  min-height: 64px;
  padding: 18px;
  resize: vertical;
}

.contact-form textarea {
  min-height: 220px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.68);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.contact-form button {
  background: var(--white);
  border: 0;
  border-radius: 8px;
  color: var(--black);
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  min-height: 58px;
}

.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: 54px 24px;
  text-align: center;
}

.back-to-top,
.footer-links a {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 32px 0;
}

.site-footer p {
  font-size: 14px;
}

@media (max-width: 900px) {
  .navbar {
    padding: 0 24px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    background: var(--black);
    display: none;
    flex-direction: column;
    gap: 24px;
    left: 0;
    padding: 28px 24px 34px;
    position: absolute;
    right: 0;
    top: 66px;
  }

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

  .hero {
    background: linear-gradient(180deg, var(--gray) 0 55%, var(--black) 55% 100%);
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 70px 24px 40px;
    text-align: center;
  }

  .social-links {
    justify-content: center;
    margin-top: 42px;
  }

  .hero-visual {
    padding: 50px 24px 80px;
  }

  .services,
  .skill-grid,
  .skill-grid.compact,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .services article {
    text-align: center;
  }

  .services p {
    text-align: center;
  }

  .contact {
    padding: 90px 0;
  }

  .contact-bg-title {
    top: 48px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info p {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .section-title {
    border-width: 6px;
    padding: 16px 24px;
  }

  .section-title h2 {
    font-size: 22px;
    letter-spacing: 5px;
  }

  .hero-intro {
    font-size: 26px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-role {
    font-size: 18px;
  }

  .project-filter {
    flex-direction: column;
  }
}
