/* GENERAL */
@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: #333333;
}

html {
  scroll-behavior: smooth;
}

.logo {
  color: #dddddd;
}

p {
  color: #dddddd;
}

a,
.btn {
  transition: all 300ms ease;
  cursor: pointer;
}

a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: #b5b5b5;
}

/* NAVIGATION */
nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.logo {
  font-size: 2rem;
  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: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100vw;
  padding: 3rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  z-index: 1000;
}

.menu-links a {
  font-size: 1.25rem;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.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);
}

/* SECTIONS */
section {
  padding-top: 4vh;
  height: fit-content;
  margin: 0 10rem;
  min-height: fit-content;
}

.section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* PROFILE */
#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: 80vh;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  color: #999999;
}

.section__text__p2 {
  font-size: 1.75rem;
  color: #cccccc;
  margin-bottom: 1rem;
}

.title {
  font-size: 3rem;
  color: #ffffff;
  text-align: center;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.icon {
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.icon:hover {
  transform: scale(1.1);
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.btn {
  font-weight: 600;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  transition: all 300ms ease;
}

.btn-color-1 {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #333333;
}

.btn-color-1:hover {
  background-color: #333333;
  color: #ffffff;
}

.btn-color-2 {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.btn-color-2:hover {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #333333;
}

/* ABOUT section*/

#about {
  background-color: #333333;
  color: #ffffff;
  padding: 4rem 5%;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.about-pic {
  border-radius: 2rem;
  width: 100%;
  max-width: 350px;
  border: 2px solid #555;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.details-container {
  background-color: #444;
  border: 1px solid #666;
  color: #ffffff;
  padding: 1.5rem;
  border-radius: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  width: 300px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.about-containers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.about-details-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-container p {
  color: #cccccc;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* EXPERIENCE */
#experience {
  background-color: #333333;
  color: #ffffff;
  padding: 4rem 5%;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.experience-sub-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-container article h3,
.article-container article p {
  color: #dddddd;
}

/* PROJECTS */
#projects {
  background-color: #333333;
  color: #ffffff;
  padding: 4rem 5%;
  border-top: 1px solid #444;
  border-bottom: 1px solid #444;
}

.color-container {
  background-color: #444;
  border: 1px solid #666;
}

.project-title {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 1rem 0;
}

.project-img {
  border-radius: 1rem;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-btn {
  color: #ffffff;
  border: 1px solid #ffffff;
  background: transparent;
}

.project-btn:hover {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #333333;
}

/* CONTACT */
#contact {
  padding: 4rem 5%;
  background-color: #333;
  border-top: 1px solid #444;
}

.contact-info-upper-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 1rem;
  width: fit-content;
}

.contact-info-container {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1.5rem 2rem;
}

.contact-info-container p {
  margin: 0;
  font-size: 1rem;
}

.contact-info-container a {
  color: #ccc;
  text-decoration: none;
}

.contact-info-container a:hover {
  color: #fff;
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .contact-info-upper-container {
    width: 100%;
    padding: 1rem 2rem;
  }

  .contact-info-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}

/* FOOTER */
footer {
  background-color: #222222;
  color: #cccccc;
  padding: 2rem 5%;
  border-top: 1px solid #444;
}

footer nav {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.nav-links-container {
  display: flex;
  justify-content: center;
}

footer .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

footer .nav-links a {
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .nav-links a:hover {
  color: #aaaaaa;
}

footer p {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
  color: #888888;
}
