:root {
  --text-color: #111111;
  --link-color: #e00707;
  --background-color: #f1f1f3;
  --border-color: #d6d6d8;
}

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

html {
  scroll-behavior: smooth;
}

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

  /* Simple gradient background */
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(224, 7, 7, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(224, 7, 7, 0.08),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #f8f8fa,
      #ededf0,
      #f5f5f7
    );

  background-attachment: fixed;
}

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

/* NAVBAR */

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

  padding: 0 50px;
  height: 80px;
}

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

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: 6px 15px;
  border-radius: 5px;
}

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

/* HERO SECTION */

.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 50px;
  margin: 50px 0 100px;
  gap: 40px;
}

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

.hero-section .text h2 {
  font-size: 45px;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-section .text p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.hero-section .text .links a {
  display: inline-block;

  padding: 7px 14px;
  border: 2px solid var(--link-color);
  border-radius: 5px;

  margin-right: 10px;
  margin-bottom: 10px;

  transition: 0.2s ease;
}

.hero-section .text .links a:hover {
  color: white;
  background-color: var(--link-color);
}

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

.hero-section .headshot img {
  width: 350px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;

  border: 5px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* SKILLS SECTION */

.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

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

.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 var(--border-color);
  border-radius: 7px;

  background-color: rgba(255, 255, 255, 0.55);

  transition: 0.2s ease;
}

.skills-section .cells .cell:hover {
  transform: translateY(-3px);
  border-color: var(--link-color);
}

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

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

/* TESTIMONY SECTION */

.testimony-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.testimony-section h2 {
  font-size: 35px;
  margin-bottom: 30px;
}

.testimony-section .group {
  display: flex;
  align-items: center;
  gap: 50px;
}

.testimony-section .group .person-details {
  text-align: center;
  flex: 2;
}

.testimony-section .group .person-details img {
  width: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  border-radius: 50%;
  margin-bottom: 10px;
}

.testimony-section .group .person-details p {
  font-weight: 600;
}

.testimony-section .group .person-details p:last-child {
  font-weight: normal;
}

.testimony-section .group .text {
  flex: 8;
  line-height: 1.7;
}

/* CONTACT SECTION */

.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact-section h2 {
  font-size: 35px;
  margin-bottom: 20px;
}

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

.contact-section .group .text {
  flex: 3;
  margin-top: 20px;
  line-height: 1.7;
}

.contact-section .group form {
  flex: 3;
  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);
  background-color: rgba(255, 255, 255, 0.5);

  padding: 10px;
  margin-bottom: 15px;

  outline: none;
  resize: none;

  border-radius: 4px;
}

.contact-section .group form input:focus,
.contact-section .group form textarea:focus {
  background-color: white;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;

  color: white;
  background-color: var(--link-color);

  border: none;
  border-radius: 4px;

  height: 50px;
  cursor: pointer;

  transition: 0.2s ease;
}

.contact-section .group form button:hover {
  filter: brightness(0.9);
}

/* TABLET */

@media (max-width: 850px) {

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

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

/* MOBILE */

@media (max-width: 740px) {

  /* HERO */

  .hero-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-section .headshot {
    justify-content: center;
  }

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

  .hero-section .text .links {
    justify-content: center;
  }

  /* TESTIMONY */

  .testimony-section {
    text-align: center;
  }

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

  /* CONTACT */

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

/* SMALL MOBILE */

@media (max-width: 600px) {

  /* NAVBAR */

  nav {
    padding: 0 20px;
  }

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

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

  nav .right a span {
    display: none;
  }

  /* HERO */

  .hero-section {
    padding: 0 20px;
  }

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

  .hero-section .text p {
    font-size: 15px;
  }

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

  /* SKILLS */

  .skills-section {
    padding: 0 20px;
  }

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

  .skills-section .cells .cell {
    width: 170px;
  }

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

  /* TESTIMONY */

  .testimony-section {
    padding: 0 20px;
  }

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

  /* CONTACT */

  .contact-section {
    padding: 0 20px;
  }

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