.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-color: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

/* Scroll Animation Styles */
section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

section.within-viewport {
  opacity: 1;
  transform: translateY(0);
}

.loader_icon {
  height: 0;
  width: 0;
  padding: 15px;
  border: 6px solid rgba(0, 0, 0, 0.2);
  border-right-color: #000000;
  border-radius: 22px;
  animation: rotate 1s infinite linear;
  /* left, top and position just for the demo! */
  position: absolute;
  left: 50%;
  top: 50%;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

footer a:hover {
  color: #dcf1aa;
  transform: translateY(-2px);
}

footer .icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #ffffff;
  transition: all 0.3s ease;
}

footer .icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

footer .copyrighttext {
  margin-left: auto;
  color: #ffffff;
}

.copyrighttext {
  font-size: 0.75rem;
  margin-left: auto;
}

@media (max-width: 768px) {
  footer {
    padding: 20px 0;
    gap: 15px;
  }

  footer .copyrighttext {
    margin: 10px 0 0;
    margin-left: auto;
  }
}
.fa-solid {
  font-size: 1.563rem;
  color: white;
  background: black;
  width: 2.813rem;
  border-radius: 0.875rem;
  text-align: center;
  height: 2.813rem;
  box-shadow: 0 0.188rem 1.063rem 0 rgba(0, 0, 0, 0.5);
  padding: 0.625rem;
}

.btn-close-menu {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
}

.btn-close-menu:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

.flex-row {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 2em;
}

.btn-close-menu {
  z-index: 100;
  position: absolute;
  right: 0;
  opacity: 1;
  transition: all 0.3s ease-in-out;
  /* animate the values if they change */
}

.theme-toggle {
  background: none;
  border: 2px solid var(--text-color);
  width: 50px;
  height: 25px;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle {
  background: none;
  border: 2px solid var(--text-color);
  width: 50px;
  height: 25px;
  border-radius: 25px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.logo {
  width: 3em;
  display: flex;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--text-color);
  top: 2px;
  left: 2px;
  transition: var(--transition);
  transform: translateX(0);
}

body[data-theme="dark"] .theme-toggle::before {
  transform: translateX(23px);
}

.btn-close-menu:not(.visible) {
  opacity: 0;
  pointer-events: none;
}

.nav-items {
  display: none;
}

body {
  padding: 1em;
  overflow-x: hidden;
}

ul {
  list-style-type: disc;
  padding: 0;
}

/* Make bullet points white in dark mode */
body[data-theme="dark"] ul {
  color: white;
}

body[data-theme="dark"] ul li::marker {
  color: white;
}

.disc {
  list-style-type: disc;
  padding: 1rem;
}

.icon {
  color: white;
}

.icon i {
  font-size: 1.3125rem;
}

/* Goals and User Pain Points Styles */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.problem-item h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.problem-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Bullet point styles are now in theme.css */

/* Responsive adjustments */
@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problem-item {
    padding: 0 0.5rem;
  }

  .problem-item li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
  }
}

.icon {
  transition: all 0.3s ease-in-out;
}

.icon:hover {
  transform: scale(1.5) rotate(36deg);
}

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

.fa-envelope {
  margin-top: -0.625rem;
  width: fit-content;
}

.last {
  font-size: 1.563rem;
  font-weight: 700;
  text-align: left;
  margin-top: 2rem;
}

.copyrighttext {
  font-size: 0.75rem;
  margin-left: auto;
}

.screen {
  width: 2em;
}

.hamburger-menu-content.visible {
  /* display: flex; */
  opacity: 1;
  pointer-events: all;
}

.hamburger-menu-content {
  position: fixed;
  z-index: 10;
  height: 100%;
  width: 100vw;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: white;
  color: black;
  /* display: none; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4em;
  transition: all 0.3s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.s-icon {
  margin-right: auto;
  transition: all 0.3s linear;
}

.s-icon:hover {
  transform: scale(1.23) translateX(20px);
}

.images-wrapper {
  display: flex;
  gap: 2em;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.copyrighttext {
  font-size: 0.75rem;
  margin-left: auto;
}

.screen-opening {
  background: #b2fd8fff;
  width: 100%;
  height: 10em;
}

@media (min-width: 768px) {
  div.nav-items {
    display: inline-block;
  }

  i.btn-hamburger-menu {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  div.nav-items {
    display: flex;
    gap: 3em;
  }

  .nav-bar {
    margin-top: 2em;
  }

  .screen {
    width: 7em;
  }

  .screen-opening {
    height: 23em;
  }

  .flex-row {
    gap: 2em;
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
  }

  .one {
    display: flex;
    flex-direction: row;
  }

  .nav-item {
    transition: all 0.3s ease-in-out;
  }

  a.nav-item:hover {
    transform: rotate(30deg);
  }

  .deux {
    display: flex;
    flex-direction: row-reverse;
  }

  .three {
    display: flex;
    flex-direction: row;
  }

  .three-box {
    padding: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
  }

  .three-items {
    display: flex;
    flex-direction: row;
    padding: 1px;
    justify-content: unset;
    margin-right: 2rem;
  }

  i.fa-arrow-up {
    margin-left: 42rem;
    margin-top: 4rem;
    font-size: 1.563rem;
    color: white;
    background: black;
    width: 2.813rem;
    border-radius: 2.875rem;
    text-align: center;
    height: 2.813rem;
    box-shadow: 0 0.188rem 1.063rem 0 rgba(0, 0, 0, 0.3);
    padding: 0.625rem;
  }

  .images-wrapper {
    height: 100%;
  }
}

@media screen and (min-width: 1440px) {
  .padder {
    padding: 2.8rem;
  }

  .flex-row {
    gap: 2em;
    margin-top: 2em;
    display: flex;
    justify-content: space-between;
  }

  body {
    padding: 0;
  }

  footer {
    position: absolute;
    left: 0;
    transform: translateY(0.5rem);
    background-color: var(--footer-bg);
    width: 100%;
    height: auto;
    margin: auto;
    display: flex;
    gap: 1.25rem;
    padding: 0.7rem 1rem;
    margin-top: 7rem;
    color: var(--footer-text);
  }
  .logo {
    width: 5em;
    margin-left: 2em;
  }

  .screen {
    width: 12em;
  }

  .screen-opening {
    height: 29em;
  }

  .nav-items {
    display: flex;
    gap: 3em;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    margin-right: 2em;
  }

  /* Hero Section */
  .nav-bar {
    display: flex;
    align-items: center;
    padding: 1rem 5rem;
    transition: all 0.3s ease-in-out;
    width: 100%;
  }

  .images-wrapper {
    display: flex;
    gap: 5em;
    align-items: center;
    justify-content: center;
    /* starting position of the images */
    transform: translateY(130px);
    opacity: 0.1;
    transition: all 0.3s ease-out;
    height: 100%;
  }

  /* when the animation is finished we've faded in */
  .images-wrapper.fade-in {
    transform: translateY(0px);
    opacity: 1;
  }

  .mini {
    margin-left: 2em;
  }

  .img {
    height: 437px;
  }

  .sum-add {
    display: flex;
    flex-direction: column;
    margin-top: -2rem;
  }

  .padder {
    display: flex;
    flex-direction: column;
    gap: 2em;
    margin-top: -4rem;
  }

  .summary {
    font-size: 2.563rem;
  }

  .together {
    margin-top: 4rem;
  }

  .mini {
    gap: 18px;
  }

  p {
    line-height: 52px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
  }

  .headline {
    font-size: 2.563rem;
    margin-right: 13em;
  }

  .stack {
    margin-top: 2rem;
  }

  footer {
    position: absolute;
    left: 0;
    transform: translateY(0.5rem);
    background-color: black;
    width: 100vw;
    height: auto;
    margin: auto;
    display: flex;
    gap: 1.25rem;
    padding: 0.7rem 1rem;
    margin-top: 7rem;
    color: white;
  }

  .screen-opening {
    position: relative;
    top: 5px;
  }
}

/* Case Study Navigation Buttons */
.case-study-navigation {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 4rem auto 2rem;
  padding: 0 2rem;
  gap: 2rem;
  position: relative;
}

.nav-button {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #2d3748;
  border: none;
  width: 100%;
  max-width: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Sleep Tracker button */
.nav-button.sleep {
  background-color: #e5ecf1;
  box-shadow: 0 4px 15px -3px rgba(101, 144, 173, 0.3),
    0 4px 6px -4px rgba(101, 144, 173, 0.3);
}

/* Recipe Sharing button */
.nav-button.recipe {
  background-color: #dcf1aa;
  box-shadow: 0 4px 18px -3px rgba(177, 199, 136, 0.4),
    0 4px 8px -4px rgba(177, 199, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  justify-content: center;
}

/* Thesis Project button */
.nav-button.thesis {
  background-color: #e9e2ff;
  box-shadow: 0 4px 15px -3px rgba(158, 133, 224, 0.3),
    0 4px 6px -4px rgba(158, 133, 224, 0.3);
}

.research-findings h3 {
  margin-left: 1.5rem;
}

.nav-button-content {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}

.nav-button-label {
  font-size: 0.8rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 2px;
  transition: all 0.3s ease;
}

.nav-button-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.nav-button.sleep {
  text-align: left;
  padding-left: 1rem;
}

.nav-button.recipe {
  text-align: left;
  padding-left: 1rem;
}

.nav-button i {
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--accent-color);
  position: relative;
  z-index: 1;
}

.nav-button {
  font-weight: 600;
}

.nav-button.sleep i {
  margin-right: 1rem;
  margin-left: 0;
}

.nav-button.recipe i {
  margin-right: 1rem;
  margin-left: 0;
}

.nav-button.thesis i {
  margin-left: 1rem;
  margin-right: 0;
  order: 1;
}

.nav-button:hover {
  background: var(--bg-color);
  border-color: var(--accent-color);
}

.nav-button:hover .nav-button-title {
  color: var(--accent-color);
}

.nav-button:hover i {
  transform: translateX(5px);
}

.nav-button i.fa-arrow-left {
  transition: transform 0.3s ease;
}

.nav-button:hover i.fa-arrow-left {
  transform: translateX(-5px);
}

@media (max-width: 768px) {
  .case-study-navigation {
    flex-direction: column;
    gap: 1rem;
    padding: 0 1.5rem;
    margin: 3rem auto 2rem;
  }

  .nav-button {
    max-width: 100%;
    justify-content: space-between;
    padding: 1rem;
  }

  .nav-button.sleep,
  .nav-button.recipe,
  .nav-button.thesis {
    margin: 0;
    text-align: left;
  }

  .nav-button.next {
    flex-direction: row-reverse;
  }

  .nav-button.next i {
    order: 0;
  }
}
