@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap");

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Outfit", sans-serif;
  list-style: none;
  text-decoration: none;
}

:root {
  --color-Light: #888888;
  --color-secondary: #3e3e3e;
  --color-medium: #ffffff;
}

.nav-bar {
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-bar .home-link {
  font-size: 4vw;
  font-weight: bold;
  color: var(--color-Light);
  letter-spacing: 2px;
  text-align: center;
}

.nav-bar .nav-menu {
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: rem; /* Space between navigation items */
}

.nav-menu .nav-items a {
  padding: 10px;
  font-size: 17px;
  font-weight: 250;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.corousel-box {
  max-width: 60vw; /* Original width */
  position: relative;
  margin: auto;
  overflow: hidden;
}

.corousel-inner {
  display: flex;
  width: 300%;
  animation: scroll 15s linear infinite;
}

.corousel-inner img {
  width: 100%;
  height: auto;
}

.footer {
  margin: 5rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer .social-box {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  color: var(--color-Light);
}

.footer .social-box span {
  /* height: 30px; */
  /* width: 30px; */
  /* border-radius: 50%; */
  /* background-color: var(--color-Light); */
  color: var(--color-Light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: ease-in-out 0.3s;
}

.footer .social-box span:hover {
  color: var(--color-secondary);
}

.footer .foot-note {
  font-size: 16px;
  font-weight: 260;
  color: var(--color-secondary);
  padding: 2px;
}

/* Projects page */
#project {
  border: 2px solid var(--color-Light);
}

.portfolio-cards {
  position: relative;
  margin: auto;
  max-width: 50%; /* Original size for large screens */
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two per row on larger screens */
  gap: 20px;
}

.portfolio-cards img {
  max-width: 100%;
  display: block;
}

/* About page */
#about {
  border: 2px solid var(--color-Light);
}

.middle-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: auto;
  margin-top: 2rem;
}

.middle-content .profile-img {
  width: 55%;
  position: relative;
  margin: auto;
}

.profile-img img {
  max-width: 100%;
  display: block;
  border-radius: 100%;
}

.middle-content .about-info {
  margin-top: 3rem;
}

.middle-content .about-info p {
  text-align: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  padding: 0 1rem;
}

.middle-content .about-info p:nth-child(2),
.middle-content .about-info p:nth-child(3) {
  margin-top: 3rem;
}

/* Contacts page */
#contacts {
  border: 2px solid var(--color-Light);
}

.details-form form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  position: relative;
  margin: auto;
}

.details-form form input {
  padding: 1rem;
  width: 20rem;
  font-size: 16px;
  color: var(--color-Light);
  border: 2px solid var(--color-Light);
  outline: none;
  text-transform: capitalize;
}

.details-form form input[type="submit"] {
  font-size: 1.3rem;
  background-color: var(--color-Light);
  color: var(--color-medium);
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
}

/* Media queries for responsiveness */
@media (min-width: 1400px) {
  .profile-img img {
    max-width: 25%;
    margin: auto;
  }

  .middle-content .about-info p {
    /* text-align: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300; */
    padding: 0 30rem;
  }

  .portfolio-cards {
    max-width: 50%; /* Original size */
  }
}

@media (max-width: 992px) {
  .profile-img img {
    max-width: 60%;
    margin: auto;
  }

  .portfolio-cards {
    grid-template-columns: 1fr; /* One per row on smaller screens */
  }

  .portfolio-cards img {
    padding: 0 1rem;
  }

  .nav-bar .home-link {
    font-size: 6vw;
  }
}

@media (max-width: 768px) {
  .nav-bar .nav-menu {
    flex-direction: row; /* Keeps navigation items in a row */
    margin-top: 1rem;
  }

  .nav-menu .nav-items a {
    padding: 8px;
    font-size: 15px;
  }

  .footer {
    margin: 3rem 0 1rem 0;
  }
}

@media (max-width: 480px) {
  .nav-bar .home-link {
    font-size: 7vw;
  }

  .portfolio-cards {
    max-width: 100%;
    grid-template-columns: 1fr; /* One per row on very small screens */
    gap: 10px;
  }

  .middle-content .about-info p {
    font-size: 16px;
    padding: 0 1rem;
  }

  .corousel-box {
    max-width: 90vw; /* Adjust for small screens */
  }

  .nav-bar .nav-menu {
    flex-direction: row; /* Keeps navigation in row on small screens */
  }
}

/* Animations */
@keyframes scroll {
  0%,
  15.55% {
    transform: translateX(0);
  }
  22.22%,
  48.88% {
    transform: translateX(-33.333%);
  }
  55.55%,
  82.22% {
    transform: translateX(-66.666%);
  }
  100% {
    transform: translateX(0);
  }
}
