@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #3b3a42;
  color: #d6d6e0;
}

html {
  scroll-behavior: smooth;
}

p {
  color: #b0b0b8;
}

a,
.btn {
  transition: all 300ms ease;
}

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  background-color: #2e2e36;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: #f0f0f5;
  text-decoration: none;
  text-decoration-color: #2e2e36;
}

a:hover {
  color: #c4c4cc;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #5d5d68;
}

.logo {
  font-size: 2rem;
  color: #f0f0f5;
}

.logo:hover {
  cursor: default;
}

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: #f5f0f1;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #2e2e36;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 0.5rem;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: #f0f0f5;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links a:hover {
  background-color: #4a4a55;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

section {
  padding-top: 4vh;
  margin: 0 10rem;
  min-height: fit-content;
}

.section-container {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

/* PROFILE SECTION */
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
}

/* Profile picture container - circular and perfect aspect ratio */
.section__pic-container {
  width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  border: 4px solid #6d6d75;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  background-color: #362e2f;
}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
  color: #c4c4cc;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  text-align: center;
  color: #f0f0f5;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.icon {
  cursor: pointer;
  height: 2.3rem;
  filter: invert(90%);
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-weight: 600;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  border: 1px solid #6d6d75;
}

.btn-color-1,
.btn-color-2 {
  background: none;
  color: #f0f0f5;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
  background: #4a4a55;
  color: #fff;
}

/* ABOUT SECTION */
#about {
  position: relative;
}



#about .about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: center;
}

#about .details-container {
  flex: 1 1 250px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2e2e36;
  padding: 1.5rem;
  border-radius: 2rem;
  border: 1px solid #6d6d75;
  text-align: center;
  color: #d6d6e0;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
  filter: invert(90%);
}

/* EXPERIENCE SECTION */
#experience {
  position: relative;
}

#experience .about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

#experience .details-container {
  flex: 1 1 300px;
  max-width: 350px;
  background: #2e2e36;
  padding: 1.5rem;
  border-radius: 2rem;
  border: 1px solid #6d6d75;
  text-align: center;
  color: #d6d6e0;
}

.experience-sub-title {
  color: #c4c4cc;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
  color: #d6d6e0;
}

article .icon {
  cursor: default;
  filter: invert(90%);
}

/* PROJECTS SECTION */
#projects {
  position: relative;
}

#projects .about-containers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* Reduced gap for tighter layout */
  justify-content: center;
}

#projects .details-container {
  flex: 1 1 300px;
  max-width: 320px;
  background: #2e2e36;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid #6d6d75;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 1.5rem;
}

.project-title {
  margin: 1rem;
  color: #f0f0f5;
}

.project-btn {
  color: #f0f0f5;
  border-color: #6d6d75;
}

.project-btn:hover {
  background-color: #4a4a55;
}

/* CONTACT SECTION */
#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: 1px solid #6d6d75;
  background: #2e2e36;
  margin: 2rem auto;
  padding: 0.5rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
  color: #d6d6e0;
}

.contact-icon {
  cursor: default;
  filter: invert(90%);
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER */
footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
  color: #a0a0a8;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  section {
    margin: 0 3rem;
  }
}

@media (max-width: 768px) {
  section {
    margin: 0 2rem;
  }

  #profile {
    gap: 2rem;
  }

  #about .about-containers,
  #experience .about-containers,
  #projects .about-containers {
    gap: 1rem;
  }

  #experience .details-container,
  #about .details-container,
  #projects .details-container {
    max-width: 100%;
    flex: 1 1 100%;
  }

  nav#desktop-nav {
    display: none;
  }

  #hamburger-nav {
    display: block;
  }
}
