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

html {
  scroll-behavior: smooth;
}

p {
  color: #333;
}

/* COLORS */

:root {
  --primary-color: #007BFF; /* Professional blue color */
  --secondary-color: #0056b3; /* Darker blue for hover states */
  --light-gray: #f9f9f9;
  --dark-gray: #333;
  --border-color: #ccc;
}

/* TRANSITION */

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

/* DESKTOP NAV */

nav,
.nav-links {
  display: flex;
}

nav {
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 10vh;
  background-color: var(--light-gray);
}

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

a {
  color: var(--dark-gray);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

@media screen and (max-width: 768px) {
  #desktop-nav {
    display: none;
  }
  #hamburger-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 10vh;
    background-color: var(--light-gray);
  }
}

/* Hamburger Menu Styles */
.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 25px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--dark-gray);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--light-gray);
  width: 150px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
  z-index: 1;
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: left;
  font-size: 1rem;
  color: var(--dark-gray);
  text-decoration: none;
  transition: background-color 0.3s ease-in-out;
}

.menu-links a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* SECTIONS */

section {
  padding: 4vh 10vw;
  box-sizing: border-box;
}

.section-container {
  display: flex;
  gap: 2rem;
}

.title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.section__pic-container {
  flex: 1;
  max-width: 400px;
}

.section__pic-container img {
  border: 5px solid var(--primary-color);
  width: 100%;
  border-radius: 50%;
}

.section__text {
  flex: 1;
  text-align: center; 
}

.section__text__p1 {
  font-size: 1.2rem;
  color: var(--dark-gray);
}

.section__text__p2 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

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

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

.icon:hover {
  filter: brightness(0.8);
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  border: 1px solid var(--primary-color);
  background-color: transparent;
  color: var(--primary-color);
  cursor: pointer;
}

.btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* ABOUT SECTION */
#about {
  position: relative;
}

.section-container {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.about-pic-container {
  flex: 0 0 300px; /* Do not allow the container to grow or shrink */
  min-width: 300px; /* Minimum width to prevent it from getting too small */
}

.about-pic-container img {
  width: 100%;
  border-radius: 1rem; /* Adjusts the image corners */
}
 
.about-details-container {
  flex: 1; /* Allow the text container to grow */
  display: flex;
  flex-direction: column;
}

.about-containers {
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem; 
} 

@media screen and (max-width: 900px) { 
  .section-container {
    flex-direction: column;
    align-items: center;
  }

  .about-pic-container, .about-details-container {
    flex: unset;
    width: 100%;
    min-width: unset;
  }
}

/* SKILLS SECTION */

#skills .skills-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.skills-column {
  flex: 1;
  min-width: 250px;
  padding: 1rem;
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skills-column:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.skills-sub-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skills-list article {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-list h3 {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.skills-list p {
  font-size: 0.9rem;
  color: var(--dark-gray);
}

/* EXPERIENCE SECTION */

#experience .experience-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-item:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-left {
  display: flex;
  align-items: center;
}

.company-logo {
  width: 50px;
  height: 50px;
  margin-right: 1rem;
}

.position-info h2 {
  font-size: 1.2rem;
  color: var(--primary-color);
}

.position-info p {
  font-size: 1rem;
  color: var(--dark-gray);
}

.experience-right p {
  font-size: 1rem;
  color: var(--dark-gray);
}

.experience-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.experience-item.active .experience-details {
  max-height: 200px;
}

.experience-details ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.experience-details li {
  color: var(--dark-gray);
  margin-bottom: 0.5rem;
}

/* PROJECTS SECTION */

#projects .experience-details-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.details-container {
  background-color: var(--light-gray);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  width: 300px;
  text-align: center;
}

.project-img {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.project-title {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.project-btn {
  margin: 0.5rem;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.project-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* CONTACT SECTION */

#contact {
  text-align: center;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info-container p {
  font-size: 1rem;
  color: var(--dark-gray);
}

.contact-icon {
  height: 2rem;
}

/* FOOTER SECTION */

footer {
  background-color: var(--light-gray);
  padding: 1rem;
  text-align: center;
}

footer p {
  color: var(--dark-gray);
}

footer a {
  color: var(--dark-gray);
}

footer a:hover {
  color: var(--primary-color);
}

/* RESPONSIVE DESIGN */

@media screen and (max-width: 768px) {
  .section-container {
    flex-direction: column;
    align-items: center;
  }

  .about-containers {
    flex-direction: column;
    align-items: center;
  }

  .details-container {
    margin: 1rem 0;
  }

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

  .skills-column {
    width: 100%;
  }

  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-right {
    margin-top: 0.5rem;
  }

  .experience-details {
    max-height: none;
  }

  .experience-item {
    padding: 1rem 0;
  }

  .btn-container {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media screen and (max-width: 480px) {
  nav {
    padding: 0 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .title {
    font-size: 2rem;
  }

  .section__pic-container {
    max-width: 300px;
  }

  .section__text__p2 {
    font-size: 0.9rem;
  }

  .skills-sub-title {
    font-size: 1.2rem;
  }

  .position-info h2 {
    font-size: 1rem;
  }

  .position-info p {
    font-size: 0.9rem;
  }
}