*,
*::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;
}

/* Project Body Start here */
/* Project Body Start here */

.projects {
  /* padding: 0px 20px;
  border: 0px;
  margin: 0px 8%;
  margin-bottom: 40px; */

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

.holding {
  /* padding-top: 80px;
  padding-bottom: 10px; */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  grid-template-rows: repeat(3, 1fr); /* 3 rows */
  gap: 16px; /* Space between boxes */
  width: 100%;
  /* height: calc(100vh - 80px); Subtracting padding-top from viewport height */
}

.holding figure {
  border: 3px solid #cbb2b2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* padding: 10px; */
  border-radius: 20px;

  background-color: #cbb2b2;
  transition: all 0.3s ease;
}

.holding figure:hover {
  border-color: #ff7b00;
}

.information {
  padding: 18px 20px 10px;
  /* display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center; */
}

.information h1,
.information p,
.information div {
  margin: 5px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .holding {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    grid-template-rows: repeat(5, auto); /* Adjust rows */
  }
}

@media (max-width: 480px) {
  .holding {
    grid-template-columns: 1fr; /* 1 column on small screens */
    grid-template-rows: repeat(9, auto); /* Adjust rows */
  }
}

/**/

figure img {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
}

.information span {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #007bff;
  background-color: #ffffff;

  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 1px 3px;

  transition: all 0.3s ease-in-out;
  margin-bottom: 4px;
}

.information span:hover {
  color: #ffffff;
  background-color: #ff7b00;
  border-color: #ff7b00;
  cursor: pointer;
}

#space-for-span {
  margin-top: 8px;
}

#statement {
  margin: 10px 0;
  font-size: 1rem;
}

.links a {
  padding: 2px 8px;
  border: 3px solid white;
  border-radius: 16px;

  color: black;
  text-decoration: none;

  transition: all 0.2s ease;
}

.links a:hover {
  color: white;
  background-color: rgb(79, 109, 241);
  border-color: rgb(79, 109, 241);
}

/* 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 */
}
