@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

header {
  height: 80px;
  /* Adjust height */
  background-color: #2c2c2c;
  /* Set background color */
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

header nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
}

header nav a.active {
  background-color: #d1d1d1;
  /* Highlight active link */
  padding: 5px 10px;
}

/* Navbar styles */
.navbar {
  display: flex;
  /* Show navbar by default */
  gap: 20px;
  background-color: #2c2c2c;
  padding: 15px;
}

.navbar a {
  color: white;
  text-decoration: none;
}

/* Hide the hamburger menu icon by default */
.hamburger-icon {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1000;
}

.hamburger-icon .bar {
  width: 30px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
}

/* Responsive Styles */
@media (max-width: 768px) {

  /* Hide navbar and show hamburger icon */
  .navbar {
    display: none;
    /* Hide navbar links on smaller screens */
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 200px;
    background-color: #2c2c2c;
    padding: 30px 10px;
  }

  .navbar a {
    margin: 10px 0;
  }

  /* Show the hamburger icon on smaller screens */
  .hamburger-icon {
    display: flex;
  }

  /* Display navbar when .active class is added */
  .navbar.active {
    display: flex;
    /* Show menu when active */
  }
}

.hero {
  background: url("https://images.unsplash.com/photo-1483982258113-b72862e6cff6?q=80&w=2670&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") no-repeat center center/cover;
  height: 400px;
  /* Adjust height */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  font-family: "Montserrat", serif;
}

.description {
  padding-bottom: 20px;
}

.devicon-html5-plain,
.devicon-css3-plain-wordmark,
.devicon-javascript-plain,
.devicon-react-original-wordmark {
  font-size: 25px;
  padding-top: 40px;
}

.skills {
  text-shadow: 1px 2px 2px rgba(76, 58, 58, 1);
  font-family: "Montserrat", serif;
}

.about {
  display: flex;
  align-items: center;
  padding: 40px 20px;
  background-color: #A9A9A9;
}

.about img {
  width: 200px;
  height: 200px;
  margin-right: 20px;
  border-radius: 50%;
}

.about p {
  max-width: 600px;
}

.portfolio {
  padding: 40px 20px;
  background-color: #f0f0f0;
  text-align: center;
}

.portfolio h2 {
  margin-bottom: 20px;
}

.portfolio .grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.portfolio .project {
  padding: 20px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
}

/* Styles for project images */
.project {
  width: 100%;
  /* Make the container take full width of its parent */
  max-width: 300px;
  /* Optional: set a maximum width for the project */
  margin: 10px auto;
  /* Center-align and add space around each project */
  overflow: hidden;
  /* Hide any overflow if the image doesn't perfectly fit */
  border-radius: 8px;
  /* Add rounded corners (optional) */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Optional shadow for a polished look */
}

.project img {
  width: 100%;
  /* Make the image fill the width of the .project container */
  height: auto;
  /* Keep the image’s aspect ratio */
  display: block;
  /* Remove any bottom whitespace */
  border-radius: 8px;
  /* Match the border radius to container */
}

.contacts {
  padding: 40px 20px;
  text-align: center;
}

.contacts a {
  color: #007bff;
  text-decoration: none;
}

.contacts>p {
  margin-bottom: 10px;
}

/* .contacts .icons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.contacts .icons i {
  font-size: 24px;
  margin: 0 10px;
} */

footer {
  height: 50px;
  background-color: #2c2c2c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.svg-inline--fa {
  vertical-align: -0.2em;
}

.rounded-social-buttons {
  text-align: center;
}

.rounded-social-buttons .social-button {
  display: inline-block;
  position: relative;
  cursor: pointer;
  width: 3.125rem;
  height: 3.125rem;
  border: 0.125rem solid transparent;
  padding: 0;
  text-decoration: none;
  text-align: center;
  color: #fefefe;
  font-size: 1.5625rem;
  font-weight: normal;
  line-height: 2em;
  border-radius: 1.6875rem;
  transition: all 0.5s ease;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
}

.rounded-social-buttons .social-button:hover,
.rounded-social-buttons .social-button:focus {
  -webkit-transform: rotate(360deg);
  -ms-transform: rotate(360deg);
  transform: rotate(360deg);
}

.rounded-social-buttons .fa-twitter,
.fa-facebook-f,
.fa-linkedin,
.fa-tiktok,
.fa-youtube,
.fa-instagram {
  font-size: 25px;
}

.rounded-social-buttons .social-button.facebook {
  background: #3b5998;
}

.rounded-social-buttons .social-button.facebook:hover,
.rounded-social-buttons .social-button.facebook:focus {
  color: #3b5998;
  background: #fefefe;
  border-color: #3b5998;
}

.rounded-social-buttons .social-button.twitter {
  background: #55acee;
}

.rounded-social-buttons .social-button.twitter:hover,
.rounded-social-buttons .social-button.twitter:focus {
  color: #55acee;
  background: #fefefe;
  border-color: #55acee;
}

.rounded-social-buttons .social-button.linkedin {
  background: #007bb5;
}

.rounded-social-buttons .social-button.linkedin:hover,
.rounded-social-buttons .social-button.linkedin:focus {
  color: #007bb5;
  background: #fefefe;
  border-color: #007bb5;
}

.rounded-social-buttons .social-button.tiktok {
  background: #000000;
}

.rounded-social-buttons .social-button.tiktok:hover,
.rounded-social-buttons .social-button.tiktok:focus {
  color: #000000;
  background: #fefefe;
  border-color: #000000;
}

.rounded-social-buttons .social-button.youtube {
  background: #bb0000;
}

.rounded-social-buttons .social-button.youtube:hover,
.rounded-social-buttons .social-button.youtube:focus {
  color: #bb0000;
  background: #fefefe;
  border-color: #bb0000;
}

.rounded-social-buttons .social-button.instagram {
  background: #125688;
}

.rounded-social-buttons .social-button.instagram:hover,
.rounded-social-buttons .social-button.instagram:focus {
  color: #125688;
  background: #fefefe;
  border-color: #125688;
}

/*modal */
button.open-window {
  background-color: #4c3a3a;
  color: #fff;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

button.open-window:hover {
  background-color: #3b2d2d;
}

/* Pop-up modal styles */
.window {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.window-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button.close-window {
  background-color: #4c3a3a;
  color: #fff;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  margin-top: 20px;
}

button.close-window:hover {
  background-color: #3b2d2d;
}