:root {
  --clr-primary: #5193b3;
  --clr-dark: #333333;
  --clr-light: #efefef;
}

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

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  object-fit: cover;
}

body {
  background-color: #f0f0f0;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  background-color: var(--clr-dark);
  color: var(--clr-light);
  padding: 10px;
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

header .logo {
  cursor: pointer;
}

header .logo::first-letter {
  color: var(--clr-primary);
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline;
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
}

.containers {
  max-width: 1140px;
  margin: 0 auto;
  padding-inline: 1rem;
}

#home {
  background-image: url("images/banner\ image.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  position: relative;
  z-index: 0;
}

#home::before {
  position: absolute;
  content: "";
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: -1;
  background: #33333399;
}

/* Style the CV button */
.cv-button {
  background-color: var(--clr-primary);
  color: #fff;
  font-weight: bold;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  margin-top: 20px;
  transition: 0.3s ease-in-out;
}

.cv-button:hover {
  background-color: #ab8178;
}

#branding {
  padding: 4rem 1rem;
}

#branding p {
  font-size: 15px;
}

#branding h1 {
  font-size: 36px;
  margin-top: 20px;
}

#branding .paragraph {
  margin-block: 1rem;
  font-size: 20px;
}

/* Style the "About Me" section */
#about {
  background-color: var(--clr-light);
  padding-block: 5rem;
  color: var(--clr-dark);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  height: 400px;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
}

.about-text {
  width: 100%;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  line-height: 1.7;
}

/* Style the "Skills" section */
#skills {
  background-color: #ddd;
  padding: 20px;
}

.skills-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.skills-grid img {
  height: 120px;
}

/* Style the "Projects" section */
.heading {
  font-size: 60px;
  text-align: center;
}

#projects {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.project {
  width: 48%;
  height: 100%;
  border: 1px solid #ccc;
  background-color: #ffffffe4;
  padding: 20px;
  margin: 10px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.project img {
  max-width: 100%;
  border: 1px solid #ddd;
  flex-grow: 1;
}

.project:hover {
  transform: scale(1.05);
}

.project p {
  font-size: 1rem;
  color: #555;
}

.project h2 {
  margin: 10px 0;
}

.project a {
  display: block;
  text-decoration: none;
  color: #007bff;
  margin-top: 10px;
  font-weight: bold;
  transition: color 0.2s;
}

.project a:hover {
  color: #0056b3;
}

/* Style the contact section */
#contact {
  background-color: #f7f7f7;
  padding-block: 2rem;
  text-align: center;
}

.contact-form {
  margin: 3rem auto;
  max-width: 450px;
  width: 80%;
  padding: 2rem;
  border: 0.3rem solid var(--clr-primary);
  border-radius: 2rem;
}

.form-label {
  display: block;
  width: 100%;
  cursor: pointer;
}

.form-block {
  width: 100%;
  text-align: left;
  margin-bottom: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  margin-top: 1rem;
  padding-block: 0.5rem;
  display: block;
  background: transparent;
  border: none;
  border-bottom: 0.1rem solid var(--clr-primary);
}

.form-textarea {
  height: 5rem;
  resize: none;
}

.form-input:focus {
  outline: none;
}

.form-button {
  width: 50%;
  padding: 1rem;
  background-color: var(--clr-primary);
  border: none;
  border-radius: 1rem;
  color: var(--clr-light);
  display: inline-block;
  margin: 0 auto;
  cursor: pointer;
}

.form-center {
  text-align: center;
}

.form-button:hover {
  background: var(--clr-dark);
}

/* Style the footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Add hover effect to navigation links */
nav ul li a:hover {
  text-decoration: underline;
  color: dodgerblue;
}

/* styling footer */
footer {
  justify-content: space-between;
  display: flex;
  align-items: center;
  font-size: 30px;
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.social-links a {
  color: var(--clr-light);
  text-decoration: none;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #0077b5;
}

/* Styles for screens up to 480px wide (e.g., mobile phones) */
@media (max-width: 567px) {
  header {
    background-color: var(--clr-dark);
    color: var(--clr-light);
    padding: 2rem 10px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
  }

  .hamburger {
    display: flex;
    cursor: pointer;
    font-size: 25px;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .Navstyle {
    position: fixed;
    flex: 1;
    right: -700px;
    z-index: 999;
    transition: 1s;
    opacity: 1;
    color: white;
    height: 100vh;
    background-color: var(--clr-dark);
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
  }

  .containers {
    width: 90%;
  }

  .about-content {
    display: block;
  }

  img {
    max-width: 100%;
  }

  .about-image {
    margin-top: 10px;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .last-image {
    grid-column: span 2;
  }

  .heading {
    text-align: center;
    font-size: 30px;
    margin-bottom: 1rem;
  }

  #projects {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .project {
    width: 90%;
    height: 100%;
    border: 1px solid #ccc;
    background-color: #ffffffe4;
    padding: 20px;
    margin: 10px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
  }

  .project img {
    max-width: 100%;
    border: 1px solid #ddd;
    flex-grow: 1;
  }

  .project:hover {
    transform: scale(1.05);
  }

  .project p {
    font-size: 1rem;
    color: #555;
  }

  .project h2 {
    margin: 10px 0;
  }

  .project a {
    display: block;
    text-decoration: none;
    color: #007bff;
    margin-top: 12px;
    font-weight: bold;
    transition: color 0.2s;
  }

  .project a:hover {
    color: #0056b3;
  }

  footer {
    flex-direction: column;
    font-size: 15px;
  }

  .social-links {
    display: flex;
    justify-content: center;
  }

  .social-links i {
    margin: 0 10px;
  }
}