:root {
  --text-color: #1a1c20;
  --link-color: #4a76ee;
  --background-color: #eeeff1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  max-width: 1400px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: var(--link-color);
}

/* Navbar section */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
  background-color: white;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

nav .left {
  flex: 1;
}

nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 400;
  text-decoration: none;
}

nav .right {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: flex-end;
}

nav .right a {
  display: flex;
  align-items: center;
  color: var(--text-color);
  font-size: 16px;
  text-decoration: none;
}

nav .right a span {
  margin-left: 5px;
}

nav .right a:hover {
  color: var(--link-color);
}

/* Hero section */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 50px;
  margin: 50px 0;
  margin-bottom: 100px;
  gap: 40px;
}

.hero-section .text {
  flex: 5;
}

.hero-section .text h2 {
  font-size: 45px;
}

.hero-section .text p {
  margin-top: 10px;
  line-height: 1.5;
}

.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: 5px;
  margin-right: 10px;
}

.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.hero-section .headshot {
  flex: 3;
  display: flex;
  justify-content: right;
}

.hero-section .headshot img {
  width: 350px;
  border-radius: 50%;
}

/* Skills section */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.skills-section h2 {
  font-size: 35px;
  text-align: center;
}

.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: 2px solid #d3d3d3;
  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;
}

/* Projects section */
.projects-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.projects-section h2 {
  font-size: 35px;
  text-align: center;
  margin-bottom: 20px;
}

.projects-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.project-card {
  width: 300px;
  border: 2px solid #d3d3d3;
  border-radius: 10px;
  overflow: hidden;
  background-color: white;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-info {
  padding: 15px;
}

.project-info h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.project-info p {
  font-size: 14px;
  margin-bottom: 10px;
  color: #555;
}

.project-info .links {
  display: flex;
  justify-content: space-between;
}

.project-info .links a {
  color: var(--link-color);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
}

.project-info .links a:hover {
  background-color: var(--link-color);
  color: white;
}

/* Contact section */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

.contact-section h2 {
  font-size: 35px;
}

.contact-section .group {
  display: flex;
  gap: 50px;
}

.contact-section .group .text {
  flex: 3;
  line-height: 1.5;
}

.contact-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

.contact-section .group form input,
.contact-section .group form textarea {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  background-color: transparent;
  padding: 10px;
  margin-bottom: 10px;
  outline: none;
  border: 2px solid var(--link-color);
  border-radius: 10px;
}

.contact-section .group form button {
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  background-color: var(--link-color);
  padding: 10px;
  margin-bottom: 10px;
  outline: none;
  border: 2px solid var(--link-color);
  border-radius: 10px;
  cursor: pointer;
  color: white;
}

.contact-section .group form button:hover {
  filter: brightness(0.9);
}

/* Footer section */
footer {
  text-align: center;
  padding: 20px;
  background-color: black;
  color: white;
}
