:root {
  --blue: #4a8fe7;
  --darkgray: #403d39;
  --white: #fcfcfc;
  --black: #252422;
}

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

::selection {
  background: rgba(74, 143, 231, 0.5);
}

/* smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Uncut Sans", sans-serif;
  color: var(--darkgray);
  line-height: 1.6;
}

/*---------------------------start nav bar styling---------------------------*/

.nav-bar {
  position: fixed; /* stays fixed at the top */
  top: 0;
  left: 0;
  width: 100%; /* full width */
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  padding: 10px 40px;
  background-color: rgba(252, 252, 252, 0.7); /* semi-transparent white */
  backdrop-filter: blur(10px); /* blur effect */
}

.nav-bar a {
  font-weight: normal;
  font-family: "Uncut Sans", sans-serif;
  text-decoration: none;
  font-size: 17px;
  color: var(--black);
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  transform-origin: center;
}

.nav-bar a:hover {
  transform: scale(1.1); /* slightly scales the text */
}

/* burger burger */
.hamburger {
  display: none;
}

/* for screens smaller than 768px, make the hamburger visible */
@media (max-width: 768px) {
  /* show the burger icon */
  .hamburger {
    font-size: 30px;
    cursor: pointer;
    display: block;
    margin: 0px 9px 0px 5px;
    transition: all 0.4s ease-in-out;
  }

  .nav-bar {
    text-align: center;
    justify-content: center;
    right: 0;
    left: auto;
    width: auto;
    flex-direction: column;
    align-items: flex-end;
    background-color: rgba(252, 252, 252, 0.9);
    padding: 0px;
    border-radius: 15px;
    margin-top: 10px;
    margin-right: 10px;
    height: auto;
    transition: all 0.6s ease-in-out; /* smooth transition */
  }

  .nav-bar.open .hamburger {
    margin-right: 0px;
  }

  .nav-bar.open {
    gap: 10px;
    margin-top: 0px;
    margin-right: 0px;
    padding: 20px;
    width: 30%;
    height: 100%;
    justify-content: center;
    border-radius: 0%;
    transition: all 0.6s ease-in-out; /* apply smooth transition */
  }

  section {
    transition: filter 0.5s ease-in-out;
  }

  .nav-bar.open ~ section {
    filter: brightness(0.6);
  }

  /* hide the navigation links by default */
  .nav-bar a {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out; /* fade effect */
  }

  .nav-bar.open a {
    display: block;
    margin: 10px 0;
    text-align: center;
    height: auto;
    opacity: 1;
  }
}

/*---------------------------end nav bar styling---------------------------*/

section {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/*---------------------------start home styling---------------------------*/
#home {
  background-color: var(--white);
  position: relative;
  height: 100vh;
  text-align: center;
}

#hmni {
  font-size: 17px;
  color: var(--black);
  font-family: "Inconsolata", monospace;
  opacity: 70%;
  font-weight: normal;
}

#daniellehenry {
  font-family: "Uncut Sans", sans-serif;
  white-space: nowrap;
  color: var(--black);
  font-size: 50px;
  font-weight: normal;
}

.ima {
  font-weight: normal;
  font-size: 30px;
}

#role {
  font-weight: normal;
  color: var(--blue);
  display: inline-block;
  border-right: 2px solid var(--black);
  padding-right: 2px;
}

/* caret blinking only when paused */
.blinkingCaret {
  animation: blinkCaret 0.75s step-end infinite;
}

@keyframes blinkCaret {
  0%,
  100% {
    border-color: var(--black);
  }
  50% {
    border-color: transparent;
  }
}

.social-icons {
  display: flex; /* Ensures horizontal layout */
  gap: 18px; /* Adds spacing between the icons */
}

.social-icons a {
  color: var(--white);
  display: inline-flex; /* Ensures the icons are side by side */
  align-items: center; /* Vertically aligns the icons */
}

.social-icons i {
  font-size: 30px;
  color: var(--black);
  background-color: var(--white);
  border-radius: 50%;
  margin-top: 15px;
  transition: color 0.3s ease;
  transition: transform 0.3s ease;
}

.social-icons i:hover {
  color: var(--blue);
  transform: scale(1.1); /* Slightly scales the text */
  transition: transform 0.3s ease, color 0.3s ease;
}

@media (max-width: 768px) {
  .ima {
    font-size: 25px;
  }
}
/*---------------------------end home styling---------------------------*/

/*---------------------------start about styling---------------------------*/
#about {
  background-color: var(--white);
  color: var(--black);
  min-height: 80vh;
  display: flex;
  align-items: center; /* vertically center */
  justify-content: center; /* horizontally center */
  padding: 10px;
}

.about-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-content {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%; /* limit the width */
  gap: 50px; /* add space between the text and image */
}
.highlight {
  background-color: rgba(74, 143, 231, 0.5);
  padding: 2px 0px;
}

.about-text {
  margin-right: 50px;
  width: 490px;
  font-size: 20px;
}

.fa-circle-user {
  font-size: 100px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--black);
  font-weight: thin;
  font-size: 20px;
  text-align: left;
  margin-bottom: 10px; /* add space between paragraphs */
  min-width: 375px;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-circle {
  width: 25vw; /* make the circle width responsive (based on viewport width) */
  height: 25vw;
  max-width: 350px;
  max-height: 350px;
  min-width: 275px; 
  min-height: 275px; 
  border-radius: 50%;
  background-color: lightgray;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* ensure image doesn't overflow the circle */
}

.image-circle img {
  width: 100%;
  height: 100%;
  object-position: bottom;
  object-fit: cover; 
  border-radius: 50%; /* keep the image rounded */
}

@media (max-width: 768px) {
  #about {
    flex-direction: column; /* stack content vertically */
    text-align: center; /* center text */
    padding: 20px;
  }

  .about-content {
    flex-direction: column-reverse; /* stack text below image */
    align-items: center; /* center center center */
    gap: 30px; /* reduce spacing for better fit */
    width: 100%; /* ensure it spans full width */
  }

  .about-text {
    width: 90%; /* adjust text width for smaller screens */
    margin: 0; /* remove right margin */
    text-align: center; /* center center center pt. 2 */
  }

  .about-text p {
    min-width: auto;
    font-size: 18px; 
    margin-bottom: 20px; /* add space between paragraphs */
    text-align: center;
  }

  .image-circle {
    width: 50vw;
    height: 50vw;
    max-width: 300px; /* limit max size */
    max-height: 300px;
  }
}
/*---------------------------end about styling---------------------------*/

/*---------------------------start portfolio styling---------------------------*/
.top-transition-circle {
  width: 100%;
  height: 100px;
  background-color: var(--white);
  border-bottom-left-radius: 60%;
  border-bottom-right-radius: 60%;
  position: relative;
  margin-bottom: 50px;
  box-shadow: 0px 30px 20px rgba(0, 0, 0, 0.1);
}

#portfolio {
  background-color: var(--black);
  color: var(--white);
  text-align: left; 
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  min-height: 60vh;
  padding-top: 0px;
  padding-left: 0px;
  padding-right: 0px;
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#portfolio-title {
  font-weight: normal;
  font-size: 2rem;
  color: var(--white);
  text-align: left;
  margin-top: 0;
  margin-left: 25px;
  margin-bottom: 30px;
  display: inline-block;
  border-right: 2px solid var(--white);
  padding-right: 4px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0s 0.5s; 
}

/* caret blinking only when paused */
.blinkingPortfolioCaret {
  animation: blinkPortfolioCaret 0.75s step-end infinite;
}

@keyframes blinkPortfolioCaret {
  0%,
  100% {
    border-color: var(--white);
  }
  50% {
    border-color: transparent;
  }
}

.projects {
  display: flex;
  max-width: 900px; /* static width */
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  margin-left: auto;
  margin-right: auto; 
  border-radius: 12px;
  background: var(--black);
}

/* container for each individual project */
.project-container {
  width: auto;
  max-width: 750px; /* allow resizing */
  display: flex;
  flex-direction: row; 
  align-items: center;
  justify-content: center;
  padding: 25px;
  gap: 15px;
  margin-left: auto;
  margin-right: auto;
  transition: all 0.5s ease-in-out;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.project-container.visible {
  opacity: 1;
  transform: translateY(0);
}

/* remove underline from links inside .project-container */
.project-container a {
  text-decoration: none;
  color: inherit;
  display: flex;
  width: 100%;
}

.project-container:hover {
  background-color: var(--darkgray);
  box-shadow: 0 0 10px rgba(55, 55, 55, 0.1);
  transition: filter 0.3s ease-in-out;
  animation-play-state: paused;
}

.project-container:hover img {
  filter: grayscale(0%);
  transition: filter 0.3s ease-in-out;
}

.project-container:hover .material-symbols-outlined {
  transform: translateY(-6px);
  transition: transform 0.3s ease-in-out;
}

.project-container:hover .project-title {
  transition: filter 0.3s ease-in-out;
  color: var(--blue);
  filter: brightness(1.2);
}
.project-container:hover .project-description {
  transition: opacity 0.3s ease-in-out;
  opacity: 100%;
}
.project-container:hover b {
  filter: brightness(1.2);

  color: var(--blue);
  transition: color 0.3s ease-in-out;
}

.project-container:hover #chatbot-title {
  color: #f4b52e;
}

/* darken other projects when one is hovered */
.projects:has(.project-container:hover) .project-container:not(:hover) {
  filter: brightness(0.6);
  transition: filter 0.3s ease-in-out;
}

.project-title {
  font-weight: normal;
  white-space: nowrap;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 10px;
}

.material-symbols-outlined {
  font-size: 20px;
  vertical-align: middle;
  transition: transform 0.3s ease-in-out;
  margin-left: 5px;
  transform: translateY(-3px);
}

.project-description {
  color: var(--white);
  font-size: 19px;
  opacity: 75%;
  width: 80%;
}
.project-container b {
  font-weight: normal;
}

.project-container img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 10px;
  object-fit: contain; /* keeps the image's aspect ratio intact */
  filter: grayscale(100%);
  align-self: center;
  margin-left: auto;
}

@media (max-width: 768px) {
.project-container b {
  filter: brightness(1.2);
  color: var(--blue);
  transition: color 0.3s ease-in-out;
}

  .project-container a {
    display: flex;
    flex-direction: column-reverse; /* puts the image on top */
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .projects {
    flex-direction: column;
    max-width: 100%;
    padding: 15px 0px;
  }

  .project-container {
    padding: 0px;
    gap: 0px;
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 10px;
    width: 90%;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    text-align: center;
    gap: 30px;
    padding: 20px;
  }

  .project-container img {
    filter: grayscale(0%);
  transition: filter 0.3s ease-in-out;
    max-width: 100%;
    height: auto;
    max-height: 250px;
    margin: 0 auto;
    display: block; 
    margin-left: 0px;
    margin-right: 0px;
  }

  .project-title {
    transition: filter 0.3s ease-in-out;
  color: var(--blue);
  filter: brightness(1.2);
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 28px;
    text-align: center;
  }

  .project-description {
    transition: opacity 0.3s ease-in-out;
  opacity: 100%;
    margin: 0 auto;
    font-size: 18px;
    width: 100%;
    text-align: center;
    opacity: 75%;
  }
}
.bottom-transition-circle {
  width: 100%;
  height: 100px; 
  background-color: var(--white); 
  border-top-left-radius: 60%;
  border-top-right-radius: 60%;
  position: relative;
  margin-top: 50px;
  box-shadow: 30px 0px 0px rgba(0, 0, 0, 0.1);
}
/*---------------------------end portfolio styling---------------------------*/

/*---------------------------start contact styling---------------------------*/
#contact {
  background-color: var(--white);
  color: var(--black);
  height: 70vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#contact h1 {
  font-size: 50px;
  margin-bottom: 15px;
  font-weight: normal;
  position: relative; 
  padding-right: 2px;
}

#greeting-text {
  color: var(--blue);
}

.contactBlinkingCaret {
  visibility: visible; 
  border-right: 3px solid var(--black); 
  animation: none; 
}

@keyframes contactBlinkCaret {
  0%,
  100% {
    border-color: var(--black);
  }
  50% {
    border-color: transparent;
  }
}

#contact p {
  color: var(--black);
  font-weight: thin;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
  width: 40%;
}

.contact-button {
  display: inline-block;
  padding: 4px 18px;
  margin-top: 10px;
  background-color: var(--darkgray);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 30px;
  transition: background 0.3s ease;
}

.contact-button:hover {
  background-color: var(--blue);
}

@media (max-width: 768px) {
  #contact h1 {
    width: 80%;
    line-height: 1.2; 
  }
  .contact-button i {
    font-size: 30px;
  }
  #contact p {
    width: 80%;
  }
}

/*---------------------------end contact styling---------------------------*/

/*---------------------------start license styling---------------------------*/
#license {
  background-color: var(--white);
  color: var(--black);
  height: auto;
  padding: 5px;
  opacity: 70%;
}

.license-text i {
  opacity: 80%;
  font-size: 14px;
}
@media (max-width: 768px) {
  .license-text i {
    font-size: 12px;
  }
}
/*---------------------------end license styling---------------------------*/
