/* General Styling */

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

* {
  margin: 0;
  padding: 0;

}

body {
  font-family: "Poppins", sans-serif;
  padding-top: 10vh;
}

html { /* smooth scrolling in the website */
  scroll-behavior: smooth;
}


p { /* Paragraph element */
  color: rgb(85,85,85,);
}


/* Transition */

a, 
.btn {
  transition:  300ms ease
}

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

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 Menue */

#hamburger-nav {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

/* Hide the hamburger icon button */
.hamburger-icon {
  display: none;
}

/* Permanent Floating Bar */
.menu-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  background-color: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  list-style: none;
  
  /* Reset dropdown properties */
  position: static;
  max-height: none;
  opacity: 1;
  pointer-events: auto;
  overflow: visible;
}

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

.menu-links a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4a5568;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.2s ease-in-out;
}

.menu-links a:hover,
.menu-links a.active {
  background-color: #f1f3f5;
  color: #000000;
}

/* Sections */

section {
  padding-top: 4vh;
  padding-bottom: 4vh;
  margin: 0 10rem;
  box-sizing: border-box;
}

.section-container {
  display: flex;
}

/* Profile */
#profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  min-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: 500;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rep;
}

.title {
  font-size: 3rem;
  text-align: center;
  font-weight: 600;
}

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


/* Icon */
.icon {
  cursor: pointer;
  height: 2rem;
}

/* Buttons */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.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(0,0,0);
  color: white;
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  border: rgb(255,255,255) 0.1rem solid;
}

.btn-container {
  gap: 1rem;
}

/* About */
#about {
  position: relative;

}

.about-containers {
  gap: 1rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

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

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

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

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: rgb(53,53,53) 0.1rem solid;
  border-color: rgb(163,163,163);
  text-align: center;
}

.details-text {
  font-weight: 500;
  color: rgb(85,85,85);
}

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

/* Skills */
#skills {
  height: auto;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 750px;
  margin: 3rem auto 0;
}

.skills-card {
  background: white;
  border: rgb(163,163,163) 0.1rem solid;
  border-radius: 2rem;
  padding: 1.5rem;
  min-width: 220px;
}

.skills-card--full {
  grid-column: 1 / -1;
  max-width: 260px;
  margin: 0 auto;
}

.skills-card h3 {
  text-align: center;
  margin-bottom: 1rem;
}

.skill-list {
  list-style: none;
}

.skill-list img {
  width: 1.3rem;
  height: 1.3rem;
  vertical-align: middle;
}

.skill-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 1rem;
}

.skill-list i {
  font-size: 1.3rem;
  width: 1.5rem;
  text-align: center;
}

.coursework {
  text-align: center;
  margin-top: 2.5rem;
}

/* Projects */
#projects {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  margin-top: 4rem;
  height: auto;
  min-height: 0;
}

.projects-heading {
  width: 100%;
  text-align: center;
}

.experience-details-container {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.details-container.color-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 300px;
  padding: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 2rem;
  background: rgb(250, 250, 250);
}

.article-container {
  border-radius: 1.5rem;
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(250, 250, 250);
}

.project-img {
  border-radius: 1rem;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0rem;
  box-sizing: border-box;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}

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

#projects::-webkit-scrollbar {
  height: 8px;
}
#projects::-webkit-scrollbar-thumb {
  background: rgb(200, 200, 200);
  border-radius: 4px;
}

/* Contact */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
}

.contact-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact-form {
  width: 100%;
  max-width: 650px;
  margin: 0 auto;
}

.form-card {
  background: rgb(250, 250, 250);
  border: 1px solid rgb(163, 163, 163);
  border-radius: 2rem;
  padding: 2.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: flex;
  gap: 1.25rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: rgb(53, 53, 53);
  letter-spacing: 0.02em;
}

.required {
  color: #e0684f;
}

.form-group input,
.form-group textarea {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid rgb(200, 200, 200);
  border-radius: 999px;
  background: #ffffff;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group textarea {
  border-radius: 1.5rem;
  resize: vertical;
  min-height: 150px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #bcd4fb;
  box-shadow: 0 0 0 4px rgba(188, 212, 251, 0.35);
}

.submit-btn {
  align-self: center;
  width: 100%;
  text-align: center;
  padding: 1rem;
}

@media screen and (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .form-card {
    padding: 1.5rem;
  }
}

/* Footer */
#footer {
  margin: 4rem 10rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgb(220, 220, 220);
  text-align: center;
}

@media screen and (max-width: 1200px) {
  #footer {
    margin: 4rem 5rem 2rem;
  }
}

@media screen and (max-width: 768px) {
  #footer {
    margin: 3rem 2rem 2rem;
  }
}

@media screen and (max-width: 600px) {
  #footer {
    margin: 2rem 1.25rem 1.5rem;
  }
}

/* mediaqueries.css for good interface on phone */
@media screen and (max-width: 1200px) {
  section {
    margin: 0 5rem;
  }
}

@media screen and (max-width: 768px) {
  section {
    margin: 0 2rem;
    height: auto;
  }

  .skills-container {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .about-containers {
    flex-direction: column;
  }

  .arrow {
    display: none; 
  }
}

@media screen and (max-width: 600px) {
  section {
    margin: 0 1.25rem;
  }

  .details-container.color-container {
    flex: 0 0 85%; 
  }

  .menu-links a {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  #hamburger-nav {
    width: 90%;
  }

  .menu-links {
    width: 100%;
    justify-content: space-between;
  }
}

@media screen and (max-width: 600px) {
  #hamburger-nav {
    width: 92%;
  }

  .menu-links {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    padding: 0.4rem 0.5rem;
  }

  .menu-links a {
    padding: 0.4rem 0.5rem;
    font-size: 0.75rem;
  }
}