/* =========================
   BASE / RESET
========================= */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

ul {
  list-style: none;
}


/* =========================
   PAGE WIDTH
========================= */

header,
main,
footer {
  width: 100%;
}

nav,
section,
footer > * {
  width: min(1200px, 90%);
  margin: 0 auto;
}


/* =========================
   NAVBAR
========================= */

header {
  border-bottom: 1px solid;
}

nav {
  min-height: 72px;

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

nav > a {
  font-size: 1.1rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul a {
  font-size: 0.95rem;
}


/* =========================
   HERO
========================= */

#hero {
  min-height: calc(100vh - 72px);

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;

  padding-top: 4rem;
  padding-bottom: 4rem;
}


/* HERO LEFT SIDE */

.hero-content {
  max-width: 650px;
}

.hero-status {
  display: inline-block;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;

  border: 1px solid;
  border-radius: 0.5rem;
}

.hero-content > p:first-of-type {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.hero-description {
  max-width: 600px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}


/* HERO BUTTONS */

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

  margin-bottom: 2rem;
}

.hero-actions a {
  min-width: 170px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 1.4rem;

  border: 1px solid;
  border-radius: 0.5rem;

  font-weight: 600;
}


/* SOCIAL LINKS */

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-socials a {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid;
  border-radius: 50%;
}


/* =========================
   HERO IMAGE
========================= */

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-wrapper {
  width: min(430px, 90%);
  aspect-ratio: 1 / 1;

  overflow: hidden;

  border: 1px solid;
  border-radius: 50%;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   GENERAL SECTIONS
========================= */

section:not(#hero) {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-intro {
  max-width: 700px;
  margin-bottom: 3rem;
}


/* =========================
   ABOUT
========================= */

#about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p + p {
  margin-top: 1rem;
}

.about-image {
  min-height: 300px;
  border: 1px solid;
}


/* =========================
   SKILLS
========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  border: 1px solid;
  border-radius: 0.75rem;
}

.skill-card h3 {
  margin-bottom: 1rem;
}


/* =========================
   EXPERIENCE
========================= */

.experience-list {
  display: grid;
  gap: 1.5rem;
}

.experience-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;

  padding: 2rem 0;

  border-bottom: 1px solid;
}

.experience-card h3 {
  margin-bottom: 0.5rem;
}


/* =========================
   PROJECTS
========================= */

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

.project-card {
  border: 1px solid;
  border-radius: 0.75rem;
  overflow: hidden;
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;

  border-bottom: 1px solid;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-content p {
  margin-bottom: 1rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}


/* =========================
   CONTACT
========================= */

#contact {
  text-align: center;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-links {
  margin-top: 2rem;

  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-links a {
  padding: 0.9rem 1.5rem;
  border: 1px solid;
  border-radius: 0.5rem;
}


/* =========================
   FOOTER
========================= */

footer {
  padding: 2rem 0;
  border-top: 1px solid;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  nav ul {
    gap: 1rem;
  }

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

  .hero-content {
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image {
    grid-row: 1;
  }

  .hero-image-wrapper {
    width: min(320px, 75%);
  }

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

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

  nav {
    min-height: auto;
    padding: 1.25rem 0;
  }

  nav ul {
    display: none;
  }

  #hero {
    min-height: auto;
    gap: 2.5rem;

    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  section:not(#hero) {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}