/* Root variables for theme colors */
:root {
  /* Primary text color */
  --text-color: #1a1c20;
  /* Link and accent color */
  --link-color: #4a76ee;
  /* Page background color */
  --background-color: #eeeff1;
}

/* Reset default margins, paddings, and ensure box sizing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Base font, background, and text color for the page */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Default link styles */
a {
  color: var(--link-color);
  text-decoration: none;
}

/* NAVBAR container: flex layout for left and right sections */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  height: 80px;
}

/* Left side of navbar (brand/home link) */
nav .left a {
  color: var(--text-color);
  font-size: 22px;
  font-weight: 600;
}

/* Right side navbar links: spacing and alignment */
nav .right a {
  color: var(--text-color);
  margin: 0 10px;
  display: inline-flex;
  align-items: center;
}

/* Space between icon and text in navbar links */
nav .right a span {
  margin-left: 5px;
}

/* HERO SECTION layout and spacing */
.hero-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  margin: 50px 0 100px;
  gap: 40px;
}

/* Text block within hero: grows relative to headshot */
.hero-section .text {
  flex: 5;
}

/* Hero heading size */
.hero-section .text h2 {
  font-size: 45px;
}

/* Hero paragraph spacing and readability */
.hero-section .text p {
  margin-top: 15px;
  line-height: 1.5;
}

/* Link buttons under hero text */
.hero-section .text .links {
  margin-top: 25px;
}

/* Style for each hero link button */
.hero-section .text .links a {
  display: inline-block;
  padding: 5px 10px;
  border: 2px solid var(--link-color);
  border-radius: 5px;
  margin-right: 10px;
  margin-bottom: 10px;
  transition: 0.1s;
}

/* Hover effect for hero link buttons */
.hero-section .text .links a:hover {
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

/* Headshot container alignment */
.hero-section .headshot {
  flex: 2;
  display: flex;
  justify-content: right;
}

/* Headshot image styling */
.hero-section .headshot img {
  width: 350px;
  border-radius: 50%;
}

/* SKILLS SECTION padding and spacing */
.skills-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

/* Section heading style */
.skills-section h2 {
  text-align: center;
  font-size: 35px;
}

/* Skills description spacing */
.skills-section .text {
  text-align: center;
  margin-bottom: 20px;
}

/* Grid of skill cells */
.skills-section .cells {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

/* Each skill cell: border and layout */
.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 #d3d3d3;
  border-radius: 5px;
}

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

/* Skill name font size */
.skills-section .cells .cell span {
  font-size: 18px;
}

/* CONTACT SECTION layout and spacing */
.contact-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

/* Contact heading size */
.contact-section h2 {
  font-size: 35px;
}

/* Container for contact text and form side-by-side */
.contact-section .group {
  display: flex;
  gap: 50px;
}

/* Intro text in contact section */
.contact-section .group .text {
  flex: 3;
  margin-top: 20px;
}

/* Contact form styling */
.contact-section .group form {
  flex: 3;
  display: flex;
  flex-direction: column;
}

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

/* Submit button styling */
.contact-section .group form button {
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background-color: var(--link-color);
  border: none;
  height: 50px;
  cursor: pointer;
  transition: 0.1s;
}

/* Hover effect for submit button */
.contact-section .group form button:hover {
  filter: brightness(0.9);
}

/* PROJECTS SECTION padding and spacing */
.projects-section {
  padding: 0 50px;
  margin-bottom: 100px;
}

/* Centered heading for projects */
.projects-section h2 {
  text-align: center;
  font-size: 35px;
  margin-bottom: 30px;
}

/* List layout for projects */
.project {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

/* Project image styling */
.project img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ccc;
}

/* Project title style */
.project .text h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

/* Project description style */
.project .text p {
  font-size: 16px;
  line-height: 1.4;
}
