/* GENERAL */

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

* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", sans-serif;
}
html {
  scroll-behavior: smooth;
}
p {
  color: rgb(85, 85, 85);
}
header { 
  margin: 1rem 0;
}

/* TRANSITION */

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

/* DESKTOP NAV */
#desktop-nav {
  display: flex; /*flex*/
  justify-content: space-between; /* Better control of spacing */
  align-items: center;
  padding: 0 5vw;
  height: 17vh;
  margin: auto;
}
@media only screen and (min-width: 1024px) {
  #desktop-nav {
    padding: 0 15vw;
  }
}
.logo {
  font-size: 2rem;
}

#desktop-nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
  padding: 0;
  margin: 0;
}
.menu-icon {
  display: none;
  width: 3rem; /* Adjust to your preferred size */
  height: 3rem;
  cursor: pointer;
  background: url('./assets/icons/menu.svg') no-repeat center;
  background-size: cover;
}
@media only screen and (max-width: 850px) {
  #desktop-nav .nav-links {
    font-size: 2.8vw;
  }
}
@media only screen and (max-width: 775px) {
  #desktop-nav .nav-links-container {
    display: none;
  }
  .menu-icon {
    display: inline-block;
  }
}

#desktop-nav .nav-links a {
  color: black;
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}

#desktop-nav .nav-links a:hover,
#desktop-nav .nav-links a:focus {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(181, 181, 181);
  outline: none; /* Prevents default outline */
}

#desktop-nav .logo:hover {
  cursor: default;
}

/* -------------- HAMBURGER MENU -------------- */

@media only screen and (min-width: 775px) {
  #hamburger-nav {
    display: none !important;
  }
}
/* Initial state: hide hamburger nav */
#hamburger-nav {
  display: none;
}
/* Show when 'open' class is added */
#hamburger-nav.open {
  display: block;
  position: absolute;
  z-index: 1;
  height: 100vh;
  width: 100vw;
  /* background-color: rgba(0, 0, 0, 0.5); */
}
#hamburger-nav-container {
  float: right;
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  background-color: white;
  border: 1px solid rgb(53,53,53);
}
.icon-container {
  display: block;
  height: 3rem;
}
.close-icon {
  display: block;
  float: right;
  width: 3rem; /* Adjust to your preferred size */
  height: 3rem;
  cursor: pointer;
  background: url('./assets/icons/close.svg') no-repeat center;
  background-size: cover;
}
.menu-links {
  position: block;
  top: 100%;
  right: 0;
  width: fit-content;
  overflow: hidden;
  transition: all 0.3 ease-in-out;
}
.menu-links a { /* link-button styling */
  display: block; 
  font-size: 1.5rem;
  width: 13rem;
  color: black;
  text-decoration: none;
  line-height: 3rem;
  transition: all 0.3 ease-in-out;
}
@media only screen and (max-width: 425px) {
  #hamburger-nav-container {
    margin: auto;
  }
  .menu-links a {
    width: 89vw;
  }
}
.menu-links li {
  list-style: none;
}

/* -------------- SECTIONS -------------- */

section {
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 4rem;
  padding: 0 10vw 4rem;
}
.profile__pic-container {
  display: flex;
  flex: 1 1 calc(50% - 20px);
  margin: 2rem auto;
  padding: 0 1rem;
  justify-content: center;
  align-items: top;
}
#about-music-pic, #profile-pic {
  height: 25rem;
  width: auto;
}
@media only screen and (max-width: 480px) {
  #profile-pic {
    height: 20rem;
  }
}
.section__text {
  flex: 1 1 calc(50% - 20px);
  align-self: center;
  text-align: center;
}
.section__text p {
  font-weight: 600;
}
.section__text__p1 {
  text-align: center;
}
.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.title {
  font-size: 3rem;
  text-align: center;
}
#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
}
.arrow {
  position: absolute;
  top: 2rem; 
  right: -5rem; 
  z-index: 1; 
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  /* width: 8rem; */
  border-radius: 2rem;
  text-decoration: none;
}
.btn-color-1,
.btn-color-2 {
  border: rgb(53, 53, 53) 0.1rem solid;
}
.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}
.btn-color-1,
.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: white;
}
.btn-color-1:hover {
  background: rgb(0, 0, 0);
}
.btn-color-2 {
  background: none;
  color: rgb(53, 53, 53);
}
.btn-color-2:hover {
  border: rgb(255, 255, 255) 0.1rem solid;
}
.btn-container {
  gap: 1rem;
}
#btn-band {
  width: 10rem;
}

/* ABOUT SECTION */

#about article {
  display: flex;
  /* flex-wrap: wrap; */
  width: 85vw;
  margin: 2rem auto;
  border: 0.5px solid black;
  border-radius: 2rem;
  padding: 2rem;
  max-height: 50vh;
}
article.odd { /*flip alternate articles*/
  flex-direction: row-reverse;
}
article.even div { /*alternate articles*/
  padding-left: 2rem;
}
article.about-section figure { /*picture container*/
  flex: 1 1 calc(23.33% - 20px); /* Start with 3 columns */
  overflow: hidden;
}
.about-pic {
  width: 100%;     /* Fills the container width */
  height: auto;    /* Maintains aspect ratio */
  max-width: 100%; /* Ensures it doesn't exceed container boundaries */
  max-height: 100%;
  object-fit: contain;
}
article.about-section div {
  display: flex;
  flex-direction: column;
  flex: 2;
  text-align: center;
  padding: 1rem;
  align-items: center;
}
article.about-section div h2 {
  padding-bottom: 1rem;
}
article.about-section div button {
  margin: 2rem;
}

/* -----------SKILLS SECTION----------- */

#skills {
  padding: 2em;
  text-align: center;
}

.section__text__p1 {
  font-size: 1.2em;
  color: #555;
}

.title {
  font-size: 2em;
  margin-bottom: 1em;
}

.skills-grid {
  display: grid;
  gap: 1.5em;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.skills-category {
  background-color: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skills-category h2 {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 0.5em;
}

.skills-category p {
  font-size: 1em;
  color: #666;
}

#skills ul.skills {
  text-align: left;
  list-style-type: none;
}

#skills ul.skills li {
  position: relative;
  background-color: #e4e7ea;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #333;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#skills ul.skills li::before {
  position: absolute;
  left: -1.5rem; 
  color: #0077ff; 
  font-size: 1.2rem; 
  line-height: 1;
  transition: transform 0.3s ease-in-out;
}

#skills ul.skills li:hover {
  color: #0077ff; 
  transform: translateX(5px);
}

#skills ul.skills li:hover::before {
  transform: scale(1.2); 
}



/* -----------PROJECTS SECTION----------- */

/* Projects Container as a Responsive Flexbox */
.projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 95vw;
  margin: auto;
}
.project {
  display: flex;
  flex: 1 1 calc(33.33% - 20px); /* Start with 3 columns */
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}
@media screen and (min-width: 700px) {
  .project {
    max-width: 31%;
  }
}
.project-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.project-title {
  padding: 10px;
  font-size: 1.25em;
  text-align: center;
}
.btn-container {
  display: flex;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 10px;
}
.project-btn {
  padding: 8px 16px;
  border-radius: 2rem;
  font-size: 1em;
  max-height: 3rem;
}
footer.btn-container {
  display: flex;
  margin-bottom: 2em;
}
/* Skills Overview */
#projects .expandable-section {
  max-width: 99%;
  min-width: 99%;
  margin: auto; 
  background-color: #fff; 
  border-radius: 8px; 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); 
  align-content: top;
}
#projects .header:hover {
  background-color:rgba(85, 85, 85, 1);
  color: white;
}
#projects .header {
  display: flex;
  align-items: center;
  cursor: pointer; 
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
}
#projects .arrow {
  width: 1rem; 
  height: 1rem; 
  background-image: url("assets/icons/chevron-right.svg");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s;
  margin-right: 10px;
}

.expanded .arrow {
  transform: rotate(90deg); /* Rotate right */
}
#projects .grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px; 
  padding: 20px; 
}
#projects .grid-item {
  padding: 5px; 
  border-bottom: 1px solid #eee; 
}
#projects .grid-item:last-child {
  border-bottom: none; 
}
.left {
  font-weight: bold;
}

/* -----------CONTACT----------- */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-top: 2rem;
}
.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: rgb(163, 163, 163);
  background: (250, 250, 250);
  margin: 2rem auto;
  padding: 0.5rem;
}
.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
  font-size: larger;
}
@media only screen and (max-width: 600px) {
  .contact-info-container p {
    font-size: 1rem;
    margin: 0;
  }
}
.contact-icon {
  cursor: default;
}
.email-icon {
  height: 2.5rem;
}
#contact a {
  text-decoration: none;
  color: black;
}
#contact a:hover, .page-footer a:hover {
  text-decoration: underline;
  color: grey;
}
@media only screen and (max-width: 600px) {
  .contact-info-upper-container {
    flex-wrap: wrap;
    margin: auto;
  }
}

/* FOOTER SECTION */

.page-footer { /* footer*/
  height: 16vh;
  margin: 1rem 1rem;
}
footer .nav-links-container { /* list container */
}
footer .nav-links { /* unordered list */
  list-style-type: none;
  display: flex;
  justify-content: space-around;
}
@media only screen and (max-width: 425px) {
  footer .nav-links {
    display: block;
  }
  footer .nav-links li {
    text-align: center;
  }
}
footer .nav-links a {
  text-decoration: none;
  font-size: larger;
  color: black;
}