:root {
  --text-color: rgb(26, 28, 32);
  --link-color: rgb(74, 118, 238);
  --background-color: rgb(238, 239, 241);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  transition: all 0.7s ease;
  height: 80px;
}

nav .left a {
  color: var(--text-color);
  font-size: 30px;
  font-weight: 900;
}

nav .right a {
  color: var(--text-color);
  margin: 0 10px;
}

nav .right a:last-child {
  color: var(--background-color);
  background-color: var(--text-color);
  padding: 5px 15px;
  border-radius: 8px;
}

nav .right a:last-child:hover {
  box-shadow: 0px 2px 2px rgb(74, 118, 238);
  ;
}

nav .right a span {
  margin-left: 5px;
}

/* SECTION 1: Hero */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
  transition: all 0.3s ease-in-out;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 45px;
}

.hero-section .text .links {
  margin-top: 25px;
}

.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 8px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: .1s;
}

.hero-section .text .links a:hover {
  color: var(--background-color);
  background-color: rgb(26, 28, 32);
  border: 2px solid var(--text-color);
}

.hero-section .text .links a:last-child {
  background-color: rgb(17, 17, 17);
  color: rgb(238, 239, 241);
}

.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
}

/* SECTION 2: Skills */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
  transition: all 0.3s ease-in-out;
}

.skills-section h2 {
  text-align: center;
  font-size: 35px;
}

.skills-section .text {
  text-align: center;
  margin-bottom: 20px;
}

.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.skills-section .cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid rgb(211, 211, 211);
  border-radius: 5px;
}

.skills-section .cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.skills-section .cells .cell span {
  font-size: 18px;
}

/* SECTION 3: projects */
.Projects-section {
  padding: 0 50px;
  margin-bottom: 100px;
  transition: all 0.3s ease-in-out;
}

.Projects-section h2 {
  text-align: center;
  font-size: 35px;
}

.Projects-section .text {
  text-align: center;
  margin-bottom: 20px;
}

.Projects-section .project-cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.Projects-section .project-cells .cell {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  width: 200px;
  padding: 10px 20px;
  margin: 10px;
  border: 1.5px solid rgb(211, 211, 211);
  border-radius: 5px;
}

.Projects-section .project-cells .cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 2px;
}

.Projects-section .project-cells .cell span {
  font-size: 18px;
}


/* SECTION 4: Contact */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
  transition: all 0.3s ease-out;
}

.contact-section h2 {
  text-align: center;
  font-size: 35px;
}

.contact-section .group {
  display: flex;
  gap: 50px;
}

.contact-section .group .text {
  text-align: center;
  flex: 3;
  margin-top: 20px;
}

.contact-section .group form {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-family: 'Poppins', sans-serif;
  border: 2px solid var(--link-color);
  border-radius: 8px;
  background-color: transparent;
  padding: 10px;
  margin-bottom: 10px;
  outline: none;
  resize: vertical;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: rgb(255, 255, 255);
  background-color: var(--link-color);
  border: none;
  border-radius: 8px;
  height: 50px;
  cursor: pointer;
  transition: .1s;
}

.contact-section .group form button:hover {
  background-color: rgb(60, 60, 216);
}

footer {
  background-color: rgb(17, 17, 17);
  color: rgb(255, 255, 255);
  padding: 20px 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: rgb(255, 255, 255);
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: rgb(2, 110, 160);
}


@media (max-width: 850px) {

  /* SECTION 1: Hero */
  .hero-section .text h2 {
    font-size: 35px;
  }
}

@media (max-width: 740px) {

  /* SECTION 1: Hero */
  .hero-section {
    flex-direction: column-reverse;
  }

  .hero-section .headshot img {
    width: 300px;
  }

  /* SECTION 3: Project */
  .Projects-section {
    text-align: center;
  }

  .Projects-section .group {
    flex-direction: column;
  }

  /* SECTION 4: Contact */
  .contact-section .group {
    flex-direction: column;
  }
}

@media (max-width: 600px) {

  /* NAVBAR */
  nav {
    padding: 0 20px;
  }

  nav .right a {
    font-size: 22px;
  }

  nav .right a:last-child {
    color: var(--text-color);
    background-color: transparent;
    padding: 0;
  }

  nav .right a span {
    display: none;
  }

  /* SECTION 1: Hero */
  .hero-section {
    padding: 0 20px;
  }

  .hero-section .text h2 {
    font-size: 30px;
  }

  /* SECTION 2: Skills */
  .skills-section {
    padding: 0 20px;
  }

  .skills-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 3: projects */
  .Projects-section {
    padding: 0 20px;
  }

  .Projects-section .cells .cell span {
    font-size: 16px;
  }

  /* SECTION 4: Contact */
  .contact-section {
    padding: 0 20px;
  }
}