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

:root {
  --primary-color: rgb(53, 53, 53);
  --secondary-color: rgb(85, 85, 85);
  --background-color: rgb(250, 250, 250);
  --border-color: rgb(163, 163, 163);
  --hover-color: rgb(181, 181, 181);
}

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

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--primary-color);
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.nav-links {
  gap: 1.2rem;
  list-style: none;
  font-size: 1.4rem;
}

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

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 0.75rem;
  text-decoration-color: var(--hover-color);
}


.logo {
  font-size: 1.8rem;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */
#hamburger-nav {
  display: none;
}



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

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

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

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
}

.menu-links a {
  display: block;
  padding: 8px;
  text-align: center;
  font-size: 1.4rem;
  color: var(--primary-color);
  text-decoration: none;
}

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

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

.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: 3vh;
  margin: 0 6rem;
  min-height: fit-content;
  box-sizing: border-box;
  padding-bottom: 2rem;
}

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

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

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



.section__text {
  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: 1.8rem;
}

/* BUTTONS */
.btn-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 0.85rem;
  width: 7rem;
  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(53, 53, 53);
  color: white;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
}

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

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

.btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
/* ABOUT SECTION */
#about {
  padding: 2rem 0;
}

.section__text__p1 {
  font-size: 1.2rem;
  color: rgb(85, 85, 85);
  text-align: center;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

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

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

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

.details-container {
  padding: 1.2rem;
  flex: 1;
  background: white;
  border-radius: 2rem;
  border: 0.1rem solid rgb(163, 163, 163);
  text-align: center;
  max-width: 100%;
  width: 100%;
}

.text-container {
  display: flex;
  justify-content: center;
  text-align: center;
  margin-top: 1.5rem;
  max-width: 800px;
  padding: 0 1rem;
}

.text-container p {
  max-width: 800px;
}

.arrow {
  position: absolute;
  right: -4rem;
  bottom: 2rem;
}
/* EXPERIENCE SECTION
#experience {
  position: relative;
}

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

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

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 9rem;
  justify-content: space-around;
  gap: 0.4rem;
}

article .icon {
  cursor: default;
}
   */

/* PROJECTS SECTION */
#projects {
  padding: 1.5rem 0 0.5rem 0;
  position: relative;
  text-align: center;
}

#projects .section__text__p1 {
  font-size: 1.2rem;
  color: rgb(85, 85, 85);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#projects .title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

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

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  width: 100%;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.details-container.color-container {
  background-color: rgb(250, 250, 250);
  border: 1px solid rgb(163, 163, 163);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.article-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 1rem;
}

.project-title {
  margin: 0.5rem 0 1rem;
  font-size: 1.4rem;
  color: black;
}

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

.project-btn {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgb(163, 163, 163);
  background-color: white;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 300ms ease;
}

.project-btn:hover {
  background-color: rgb(53, 53, 53);
  color: white;
}

#show-more-btn {
  margin-top: 2rem;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: white;
  border: 1px solid rgb(163, 163, 163);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 300ms ease;
}

#show-more-btn:hover {
  background-color: rgb(53, 53, 53);
  color: white;
}

.additional-projects {
  display: none;
  margin-top: 2rem;
  width: 100%;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.additional-category {
  margin-bottom: 2rem;
}

.additional-category h3 {
  margin-bottom: 1rem;
  color: rgb(53, 53, 53);
  font-size: 1.3rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

.additional-category .project-grid {
  gap: 1.5rem;
}

#projects .arrow {
  margin-top: 2rem;
  height: 1.8rem;
  cursor: pointer;
}
/* JS Controlled Classes */
.additional-projects.show {
  display: block;
}

/* SKILLS SECTION */

#skills {
  position: relative;
  padding: 2rem 0;
  margin: 0 5rem;
  text-align: center;
}

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

.skill-category {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: rgb(53, 53, 53);
}

.skill-category ul {
  list-style: none;
  padding-left: 0;
}

.skill-category li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: rgb(85, 85, 85);
}

#skills .arrow {
  margin-top: 2rem;
  height: 2rem;
  cursor: pointer;
}


/* CONTACT */

#contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
}

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

.contact-info-container p {
  font-size: larger;
}

.contact-icon {
  cursor: default;
}

.email-icon {
  height: 2.5rem;
}

/* FOOTER SECTION */

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer p {
  text-align: center;
}

#chatbot-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 300px;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  overflow: hidden;
  z-index: 1000;
}

#chatbot-header {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  text-align: center;
}

#chatbot-body {
  display: none;
  flex-direction: column;
  background: white;
  height: 350px;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
}

#chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  max-height: 270px;
}

.bot-message,
.user-message {
  background: var(--hover-color);
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  width: fit-content;
  max-width: 90%;
}

.user-message {
  background: rgb(53, 53, 53);
  color: white;
  align-self: flex-end;
}

#chatbot-input {
  border: none;
  border-top: 1px solid var(--border-color);
  padding: 0.6rem;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
}

#gracie-intro {
  position: absolute;
  bottom: 105%;
  right: 0;
  background: var(--background-color); /* Updated to use the variable for consistency */
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideIn 1.2s ease-out;
  max-width: 250px;
  text-align: left;
  z-index: 1001;
}

/* Little triangle tail for the speech bubble */
#gracie-intro::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 1rem;
  border-width: 8px;
  border-style: solid;
  border-color: var(--background-color) transparent transparent transparent; /* Updated to use the variable */
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* SKILLS SECTION */

#coursework {
  position: relative;
  padding: 2rem 0;
  margin: 0 5rem;
  text-align: center;
}

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

.coursework-category {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgb(163, 163, 163);
  width: 250px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.coursework-category h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: rgb(53, 53, 53);
}

.coursework-category ul {
  list-style: none;
  padding-left: 0;
}

.coursework-category li {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: rgb(85, 85, 85);
}

#coursework .arrow {
  margin-top: 2rem;
  height: 2rem;
  cursor: pointer;
}

/* Contact Section Updates */
.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-container {
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  background: var(--background-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: -1px;
}

#contact-form button {
  align-self: center;
  margin-top: 1rem;
  background: rgb(0, 0, 0);
  color: white;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: all 300ms ease;
}

#contact-form button:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Update existing contact section styles */
#contact {
  height: auto;
  min-height: 80vh;
  padding: 3rem 0;
}