:root {
  --main-bg-color: #FFFEF0;
  --main-text-color: #6A8E7F;
  --transition-duration: 0.4s;
  --navbar-height: 60px;
  --footer-height: 60px;
}

@font-face {
  font-family: 'BaseNeueTrial-SuperExpBlack';
  src: url('/src/fonts/BaseNeueTrial-SuperExpBlack.woff2') format('woff2'),
       url('/src/fonts/BaseNeueTrial-SuperExpBlack.woff') format('woff'),
       url('/src/fonts/BaseNeueTrial-SuperExpBlack.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'BaseNeueTrial-SuperExpBlack';
  src: url('fonts/BaseNeueTrial-SuperExpBlack.woff2') format('woff2'),
       url('fonts/BaseNeueTrial-SuperExpBlack.woff') format('woff'),
       url('fonts/BaseNeueTrial-SuperExpBlack.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  color: var(--main-text-color);
  background-color: var(--main-bg-color);
  text-transform: uppercase;
  transition: color var(--transition-duration) ease, background-color var(--transition-duration) ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body:not(.theme-initialized) {
  opacity: 0;
}

body.theme-initialized {
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
}

.h1 {
  font-size: 2.5rem;
}

.navbar {
  color: white;
  padding: 1rem;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar-content {
  max-width: 100%;
  margin: 0;
}

.mood-desktop {
  display: none !important;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  color: var(--main-text-color);
  text-decoration: none;
  padding: 0.9rem;
}

.burger-menu {
  display: none;
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 100;
  color: var(--main-text-color);
}

.burger-menu div {
  width: 25px;
  height: 2px;
  margin: 5px;
  background-color: var(--main-text-color);
  transition: all 0.3s ease;
}

.burger-menu.active div {
  background-color: var(--main-bg-color);
}

.burger-menu.active .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .line2 {
  opacity: 0;
}

.burger-menu.active .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1rem;
}

.name {
  font-family: 'BaseNeueTrial-SuperExpBlack', sans-serif;
  font-size: 2rem;
  text-align: center;
}

.main-content.main-menu {
  gap: 1.75rem;
  padding: 2rem;
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.main-content.main-menu::-webkit-scrollbar {
  display: none;
}

/* MENU PAGE */
.project {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 0.75rem 0;
}

.project-menu {
  height: 2rem;
  font-family: 'Questrial', sans-serif;
  font-size: 2.5rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--main-text-color);
  transition: all 0.3s ease-in-out;
  margin: 0 20px;
  position: relative;
}

.project-menu:hover {
  font-family: 'BaseNeueTrial-SuperExpBlack', sans-serif;
  font-size: 2.25rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--main-text-color);
}

/* Carmen registered mark styles */
.project-menu[href="project-carmen.html"]::after {
  content: "®";
  font-family: 'Questrial', sans-serif !important;
  font-size: 0.8rem;
  position: absolute;
  top: -0.5em;
  right: -0.8em;
}

.project-menu[href="project-carmen.html"]:hover::after {
  font-family: 'Questrial', sans-serif !important;
  font-size: 0.8rem;
  top: -0.5em;
  right: -0.8em;
}

.carmen-mark-r {
  font-family: 'Questrial', sans-serif !important;
  font-size: 1.2rem;
  vertical-align: top;
  
}

.project span {
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--main-text-color);
  margin-top: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-span {
  order: 0;
}

.project-menu {
  order: 1;
}

.project-year {
  order: 2;
}

.paragraph,
.paragraph-desktop,
.paragraph-mobile {
  text-align: center;
}

.paragraph-mobile {
  text-align: center;
  max-width: 90%;
}

.paragraph-mobile {
  display: none;
}

/* PROJECT PAGE */
.project-container {
  min-height: 100vh;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
}

.header-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  scroll-snap-align: start;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.project-header h1 {
  font-family: 'BaseNeueTrial-SuperExpBlack';
  font-size: 4.5rem;
  text-align: center;
  margin: 0;
  position: relative;
}

/* Carmen project page registered mark */
.project-header h1:contains("CARMEN")::after {
  content: "®";
  font-family: 'Questrial', sans-serif !important;
  font-size: 1.5rem;
  position: absolute;
  top: -0.5em;
  right: -0.8em;
}

.project-header p {
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--main-text-color);
}

.project-description {
  max-width: 600px;
  text-align: center;
  margin: 15px auto;
}

.project-description p {
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--main-text-color);
  padding: 15px 0;
}

.gallery-section {
  min-height: 100vh;
  scroll-snap-align: start;
  overflow: hidden;
  position: relative;
  padding-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  gap: 2rem;
  padding: 2rem;
  height: 80vh;
  max-width: 80vw;
  margin: 0 auto;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: 80vw;
  height: 80vh;
  scroll-snap-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.gallery-nav-prev,
.gallery-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: solid 1px var(--main-text-color);
  border-radius: 50%;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--main-text-color);
  font-size: 1.5rem;
  line-height: 0;
}

.gallery-nav-prev:hover,
.gallery-nav-next:hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
}

.gallery-nav-prev {
  left: 1.9rem;
}

.gallery-nav-next {
  right: 1.9rem;
}

.buttons {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 2rem;
}

.buttons a {
  min-width: 100px;
  border: solid 1px var(--main-text-color);
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--main-text-color);
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.buttons a:hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
}

.scroll-down-btn {
  width: 50px;
  height: 50px;
  border: solid 1px var(--main-text-color);
  border-radius: 50%;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--main-text-color);
  font-size: 1.5rem;
  line-height: 0;
  margin-top: 2rem;
  animation: floatButton 4s ease-in-out infinite;
}

.scroll-down-btn:hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
}

@keyframes floatButton {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-10px);
  }
  75% {
    transform: translateY(10px);
  }
}

/* FOOTER */
.footer {
  margin-top: auto;
}

.footer-desktop {
  position: fixed;
  bottom: 0;
}

.footer-desktop,
.footer-mobile {
  padding: 1rem 1.9rem;
  width: 100%;
}

.footer-content {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mood-button {
  width: 50px;
  height: 50px;
  border: 1px solid var(--main-text-color);
  border-radius: 50%;
  background: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.6rem;
  line-height: 1;
  color: var(--main-text-color);
  cursor: pointer;
  transition: border-color var(--transition-duration) ease, color var(--transition-duration) ease;
}

.social-links {
  width: 300px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links a {
  color: var(--main-text-color);
  text-decoration: none;
  transition: color var(--transition-duration) ease;
}

.footer-mobile {
  display: none;
}

a.project-menu:hover ~ span {
  font-style: italic;
}

/* ABOUT */
.about-page {
  flex: 1 !important;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  margin-bottom: 90px;
  padding: 0;
}

.about-wrapper {
  flex: 1;
  display: flex;
  gap: 2rem;
  height: calc(100vh - 140px);
  padding: 2rem;
  overflow: hidden;
}

.about-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-sidebar {
  flex: 0 0 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sidebar-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.sidebar-image img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.about-content-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-title {
  font-family: 'BaseNeueTrial-SuperExpBlack', sans-serif;
  font-size: 5rem;
}

.about-paragraphs {
  display: flex;
  gap: 2rem;
}

.about-paragraphs p {
  text-align: left;
  font-size: 0.7rem;
}

.about-boxes {
  display: flex;
  gap: 15rem;
  margin-top: auto;
}

.box-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.box {
  margin-top: 30px;
}

.box h4 {
  font-family: 'BaseNeueTrial-SuperExpBlack', sans-serif;
  font-size: 1rem;
  margin-bottom: 5px;
  text-align: left;
}

.box p {
  text-align: left;
}

.box-wrapper a {
  min-width: 100px;
  border: solid 1px var(--main-text-color);
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--main-text-color);
  padding: 6px 12px;
  transition: all 0.3s ease;
}

.box-wrapper a:hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
}

/* Desktop and Mobile Boxes */
.desktop-boxes {
  display: flex;
  gap: 15rem;
  margin-top: auto;
}

.mobile-boxes {
  display: none;
}

.boxes-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}

.boxes-mobile .box {
  margin: 0;
  width: 100%;
  opacity: 1;
  transform: none;
}

.boxes-mobile .box h4 {
  text-align: center;
}

.boxes-mobile .box p {
  text-align: center;
}

.boxes-mobile .button-download,
.boxes-mobile .box .button-download {
  min-width: 100px;
  border: solid 1px var(--main-text-color);
  border-radius: 50px;
  text-align: center;
  text-decoration: none;
  font-family: 'Questrial', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--main-text-color);
  padding: 6px 12px;
  transition: all 0.3s ease;
  margin-top: 2rem;
  width: auto;
  display: inline-block;
  opacity: 1;
  transform: none;
}

.boxes-mobile .button-download:hover,
.boxes-mobile .box .button-download:hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
}

.profile-picture-mobile {
  display: none;
  width: 75%;
  height: 75%;
  margin: 0 auto 2rem;
  overflow: hidden;
}

.profile-picture-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.margin-top-40 {
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  .scroll-down-btn {
    display: none;
  }

  .name {
    font-size: 1.5rem;
  }

  .main-content {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: 100vh;
    justify-content: center;
  }

  .main-content.main-menu {
    padding-top: 150px;
    padding-bottom: 120px;
  }

  .mood-desktop {
    display: flex !important;
  }

  .burger-menu {
    display: block;
  }

  .navbar {
    background-color: var(--main-bg-color);
  }

  .nav-links {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 100%;
    background-color: var(--main-text-color);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 90;
  }

  .nav-links.active {
    transform: translateY(0);
    display: flex;
  }

  .nav-links a {
    color: var(--main-bg-color);
    font-size: 2rem;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-duration) ease;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--main-bg-color);
    transition: width var(--transition-duration) ease;
  }

  .nav-links a:hover::after {
    width: 100%;
  }

  .paragraph-desktop {
    display: none;
  }

  .paragraph-mobile {
    display: block !important;
  }

  .project {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    text-align: center;
  }

  .project-menu {
    font-size: 1.8rem;
    height: auto;
    margin: 0;
    transition: all 0.3s ease;
  }

  .project span {
    margin: 5px 0;
    transition: font-style 0.3s ease;
  }

  .project-header {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
  }

  .project-header h1 {
    font-size: 2.5rem;
  }

  .project-description {
    margin: 0 auto 20px;
  }

  .gallery-section {
    min-height: auto;
    overflow: visible;
    padding-bottom: 120px;
  }

  .gallery {
    flex-direction: column;
    height: auto;
    gap: 1rem;
    padding: 1rem;
  }

  .gallery-item {
    width: 100%;
    height: auto;
    scroll-snap-align: start;
    overflow: hidden;
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
  }

  .gallery-nav-prev,
  .gallery-nav-next {
    display: none;
  }

  .footer-desktop {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-mobile {
    display: block;
    position: fixed;
    bottom: 0;
    background-color: var(--main-bg-color);
    z-index: 100;
  }

  .circular-text {
    display: none;
  }

  /* About page mobile styles */
  .about-page {
    margin-bottom: 120px;
  }

  .about-wrapper {
    padding: 1rem;
    height: auto;
    overflow: visible;
  }

  .about-content-top {
    padding: 1rem;
    text-align: center;
  }

  .profile-picture-mobile {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .about-title {
    font-size: 3rem;
    margin-bottom: 2rem;
  }

  .about-paragraphs {
    flex-direction: column;
    gap: 1rem;
  }

  .about-paragraphs p {
    text-align: center;
    font-size: 0.7rem;
  }

  .about-sidebar {
    display: none;
  }

  .about-main {
    width: 100%;
  }

  .desktop-boxes {
    display: none;
  }

  .mobile-boxes {
    display: block;
  }

  .boxes-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0 1rem;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .boxes-mobile .box {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .boxes-mobile .box h4 {
    text-align: center;
  }

  .boxes-mobile .box p {
    text-align: center;
  }

  .boxes-mobile .button-download {
    display: inline-block;
    min-width: 120px;
    margin-top: 2rem;
    padding: 8px 16px;
    border: 1px solid var(--main-text-color);
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Questrial', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--main-text-color);
    text-align: center;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
  }

  .boxes-mobile .button-download:hover {
    background-color: var(--main-text-color);
    color: var(--main-bg-color);
  }

  /* Mobile Carmen registered mark adjustments */
  .project-menu[href="project-carmen.html"]::after {
    font-size: 0.6rem;
    top: -0.3em;
    right: -0.6em;
  }

  .project-menu[href="project-carmen.html"]:hover::after {
    font-size: 0.6rem;
    top: -0.3em;
    right: -0.6em;
  }

  /* Mobile Carmen project page registered mark */
  .project-header h1:contains("CARMEN")::after {
    font-size: 0.8rem;
    top: -0.3em;
    right: -0.6em;
  }
}