/* GENERAL */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

:root {
  --primary-color: #4a6fdc;
  --secondary-color: #6c757d;
  --background-color: #ffffff;
  --text-color: #333333;
  --accent-color: #5d5fef;
  --light-gray: #f8f9fa;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

p {
  color: var(--secondary-color);
}

/* TRANSITION */

a,
.btn,
.details-container,
.color-container,
.social-icon,
.hamburger-icon {
  transition: var(--transition);
}

/* DESKTOP NAV */

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

a {
  color: black;
  text-decoration: none;
  text-decoration-color: white;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: var(--background-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger-icon:hover {
  color: var(--primary-color);
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  margin-top: 0.5rem;
  z-index: 1000;
}

.menu-links a {
  display: block;
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--light-gray);
}

.menu-links a:hover {
  background-color: var(--light-gray);
  color: var(--primary-color);
  text-decoration: none;
}

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

.menu-links li:last-child a {
  border-bottom: none;
}

.menu-links.open {
  max-height: 300px;
  padding: 0.5rem 0;
}

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

.hamburger-icon span:first-child {
  transform: none;
}

.hamburger-icon span:first-child {
  opacity: 1;
}

.hamburger-icon span:first-child {
  transform: none;
}

/* SECTIONS */

section {
  padding: 3rem 5%;
  margin: 0 auto;
  box-sizing: border-box;
  max-width: 1400px;
  width: 100%;
}

.section-container {
  display: flex;
  flex-wrap: wrap;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  min-height: 80vh;
  padding-top: 2rem;
  padding-bottom: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__pic-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 350px;
  width: 100%;
  margin: 0 auto;
}

.section__pic-container img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--box-shadow);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.section__pic-container img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.section__text {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 700;
}

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

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}

.social-icon {
  color: var(--secondary-color);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--primary-color);
  transform: translateY(-5px);
}

/* BUTTONS */

.btn-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.details-container {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.details-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: transform 0.5s ease;
}

.color-container:hover .project-img {
  transform: scale(1.03);
}

.project-title {
  margin: 1rem 0;
  color: var(--text-color);
  font-weight: 600;
}

.project-btn {
  margin-bottom: 0.5rem;
}

.btn {
  font-weight: 600;
  transition: var(--transition);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: var(--box-shadow);
}

.btn-color-1 {
  background-color: var(--primary-color);
  color: white;
}

.btn-color-1:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.btn-color-2 {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--secondary-color);
}

.btn-color-2:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
}

.color-container {
  background-color: white;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  padding: 20px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.color-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.color-container .article-container {
  margin-bottom: 1rem;
  flex: 0 0 auto;
  text-align: center;
}

.color-container p {
  flex: 1 0 auto;
  margin-bottom: 1rem;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-details-container {
  justify-content: center;
  flex-direction: column;
}

.about-containers,
.about-details-container {
  display: flex;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

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

/* EXPERIENCE SECTION */

#experience {
  position: relative;
  margin-bottom: 2rem;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: flex-start;
}

article {
  display: flex;
  align-items: center;
  min-width: 150px;
  max-width: 200px;
  gap: 0.5rem;
  flex: 1;
}

article .icon {
  cursor: default;
}

/* PROJECTS SECTION */

#projects {
  position: relative;
  margin-top: 0;
  padding-top: 2vh;
}

#projects .about-containers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-title {
  margin: 1rem 0;
  color: black;
}

.project-btn {
  color: black;
  border-color: rgb(163, 163, 163);
}

/* CONTACT */

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 5rem;
}

.contact-info-upper-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  border-radius: 1rem;
  box-shadow: var(--box-shadow);
  background-color: white;
  margin: 2rem 0;
  padding: 1rem;
  width: 100%;
  max-width: 600px;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  flex: 1;
  min-width: 200px;
  justify-content: center;
}

.contact-info-container a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-container a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER */

footer {
  height: fit-content;
  padding: 3rem 0;
  background-color: var(--light-gray);
  text-align: center;
}

footer nav {
  height: fit-content;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-social .social-icon {
  font-size: 1.5rem;
}

.copyright {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background-color: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  transition: var(--transition);
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: var(--accent-color);
}

.loading {
  text-align: center;
  color: var(--secondary-color);
  padding: 2rem;
  font-style: italic;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}
