*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: 400;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden; /* Prevent horizontal scrolling */
  font-weight: 400;
}

.header {
  position: fixed;
  /* width: 100%; */
  /* height: 70px; */
  top: 0;
  left: 0;
  right: 0;

  padding: 16px 10%;

  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav a {
  padding: 8px;
  border: 4px solid none;
  border-radius: 2px;

  text-decoration: none;
  font-size: 1.25rem;
  margin-left: 28px;
  color: black;
  position: relative; /* To position the pseudo-elements */
  transition: color 0.3s ease; /* Smooth transition for color change */
}

.nav a::before,
.nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #ffc300;
  /* transition: width 0.3s ease; */
  transition: width 0.4s ease, left 0.4s ease; /* Add transition for left property */
}

.nav a::before {
  top: 0; /* Position at the top of the anchor */
  left: 50%; /* Start from the middle */
  transform: translateY(-50%); /* Adjust to center from the middle */
}

.nav a::after {
  bottom: 0; /* Position at the bottom of the anchor */
  left: 50%; /* Start from the middle */
  transform: translateY(-50%); /* Adjust to center from the middle */
}

.nav a:hover {
  color: #ffc300; /* Change text color to blue */
}

.nav a:hover::before,
.nav a:hover::after {
  width: 100%; /* Expand underline to full width */
  left: 0; /* Move to start from the beginning of the element */
  transform: none; /* Remove transform to extend underline */
}

.logo {
  font-size: 1.5rem;
  color: black;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #ee5a50;
}

/* MAIN PICTURE */
/* MAIN PICTURE */

.main {
  background: top/cover url(Pictures/sub_page2.png) no-repeat;
  width: 100%;
  height: 45.88vh;
  padding: 67.6px 10%;
  /* margin-bottom: 50px; */

  box-shadow: none;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
}

.main h1 {
  font-size: 2.5rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}

.main p {
  font-size: 1.5rem;
  text-align: center;
}

/**/

.experience {
  padding: 20px;
  margin: 30px 10%;
  background-color: #f1f1f1;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.exp {
  background-color: #cbb2b2;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.exp:hover {
  transform: translateY(-5px);
}

.exp img {
  width: 50px;
  height: 50px;
  border-radius: 25%;
  margin-right: 20px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.exp p {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin: 0;
  margin-bottom: 10px;
}

.exp ul {
  margin: 0;
  padding-left: 20px;
}

.exp ul li {
  font-size: 1em;
  color: #273e55;
  margin-bottom: 5px;
  list-style-type: disc;
}

@media (max-width: 768px) {
  .experience {
    margin: 30px 5%;
  }

  .exp {
    flex-direction: column;
    text-align: center;
  }

  .exp img {
    margin-bottom: 10px;
  }
}

/* FOOTER STARTS HERE */

.footer {
  background-color: rgb(186, 184, 197);
  width: 100%;
  padding: 20px 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer h1,
.footer p {
  margin: 5px;
  padding: 5px 0;
}

.footer .social-links {
  display: flex;
  gap: 15px;
}

.footer a img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.footer a img:hover {
  transform: translateY(-10px); /* Move icon upward on hover */
}
