/* ---------- Base Styles ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.6;
}

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

/* ---------- Navigation ---------- */

header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav > a {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

nav div {
  display: flex;
  gap: 30px;
}

nav div a {
  font-weight: 500;
  color: #4b5563;
}

nav div a:hover {
  color: #2563eb;
}

/* ---------- Hero ---------- */

#hero {
  min-height: 600px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;

  padding: 80px max(30px, calc((100% - 1200px) / 2));

  background: #f8fafc;
}

#hero h1 {
  max-width: 750px;

  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -2px;

  color: #111827;
}

#hero p {
  max-width: 650px;

  margin-top: 25px;

  font-size: 1.25rem;
  color: #4b5563;
}

#hero > a {
  display: inline-block;

  margin-top: 35px;
  padding: 14px 24px;

  background: #2563eb;
  color: white;

  border-radius: 6px;

  font-weight: 600;
}

#hero > a:hover {
  background: #1d4ed8;
}

/* ---------- Main Sections ---------- */

main section:not(#hero) {
  max-width: 1200px;

  margin: 0 auto;
  padding: 90px 30px;
}

section h2 {
  margin-bottom: 35px;

  font-size: 2.2rem;
  color: #111827;
}

/* ---------- Services ---------- */

#services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

#services h2 {
  grid-column: 1 / -1;
}

#services article {
  padding: 30px;

  border: 1px solid #e5e7eb;
  border-radius: 10px;

  background: white;
}

#services article h3 {
  margin-bottom: 12px;

  font-size: 1.25rem;
  color: #111827;
}

#services article p {
  color: #6b7280;
}

/* ---------- Portfolio / About ---------- */

#portfolio,
#about {
  border-top: 1px solid #e5e7eb;
}

#portfolio p,
#about p {
  max-width: 750px;

  font-size: 1.1rem;
  color: #4b5563;
}

/* ---------- Contact ---------- */

#contact {
  text-align: center;
}

#contact p {
  max-width: 650px;

  margin: 0 auto 30px;

  color: #4b5563;
}

#contact > a {
  display: inline-block;

  padding: 14px 26px;

  background: #2563eb;
  color: white;

  border-radius: 6px;

  font-weight: 600;
}

/* ---------- Footer ---------- */

footer {
  padding: 30px;

  text-align: center;

  background: #111827;
  color: #9ca3af;
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  nav {
    padding: 18px 20px;
  }

  nav div {
    display: none;
  }

  #hero {
    min-height: 520px;
    padding: 60px 20px;
  }

  #hero h1 {
    font-size: 3rem;
  }

  main section:not(#hero) {
    padding: 65px 20px;
  }

  #services {
    grid-template-columns: 1fr;
  }
}
