:root {
    --black: #231f20;
    --grey: #474545;
    --white: #f5f2ee;
    --light_blue: #add1e9;
    --dark_blue: #266a97;
    --light_orange: #fdd089;
    --dark_orange: #fb7c3b;
    --red: rgb(202, 59, 59);
    --box_glow: rgba(236, 232, 226, 0.5);
    --box_shadow: rgba(14, 13, 13, 0.5);
}

@font-face {
  font-family: Gazpacho-Black;
  src: url(../../back/fonts/Gazpacho-Font-Family/Gazpacho-Font-Family/Gazpacho-Black.otf);
}

@font-face {
  font-family: Gazpacho-Light;
  src: url(../../back/fonts/Gazpacho-Font-Family/Gazpacho-Font-Family/Gazpacho-Medium.otf);
}

html {
  scroll-behavior: smooth;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden; 
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: "Cantora One", sans-serif;
  font-size: 1.5rem;
  min-height: 100vh;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}

section {
  display: flex;
  width: 100%;
  height: 90vh;
  justify-content: center;
  text-align: center;

}

h1 {
  font-family: "IM FELL English", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: 5rem;
  font-variant: small-caps;
}

p {
  font-family: "Cantora One", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 1rem;
}

.section_content {
  width: 80vh;
  height: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.whitebox {
  border-color: white;
  border-radius: 2px;
  border: 2px;
  box-shadow: 0px 0px 3px 3px var(--box_glow);
  padding: 5px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 1rem;
}

.blackbox {
  border-color: black;
  border-radius: 2px;
  border: 2px;
  box-shadow: 0px 0px 3px 3px var(--box_shadow);
  padding: 5px;
  font-family: "Fira Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
  font-size: 1rem;
}

.inverse_color {
  color: var(--black);
  text-shadow: 0px 0px 2px var(--white);
  font-style: italic;
}

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 60vh;
  min-width: fit-content;
  background-color: color-mix(in srgb, var(--white) 90%, transparent);
  color: var(--black);
  padding: 1rem;
  margin: 1rem auto 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
}

#nav_toggle {
  display: none;
}

#nav_logo {
  height: 40px;
  margin-right: 1rem;
  float: left;
}

#nav_logo:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

#nav > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-evenly;
  gap: 1rem;
  width: 100%;
}

#nav > ul > li > a {
  color: var(--black);
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  text-transform: uppercase;
  text-decoration: none;
}

#nav > ul > li > a:hover {
  color: var(--dark_blue);
}

#nav > ul > li > a:active {
  color: var(--dark_orange);
}

#footer {
  padding-bottom: 50px;
  padding-top: 50px;
  background-color: var(--grey);
  text-align: center;
  width: 100%;
  height: 50vh;
  font-family: 'Fira Sans', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#footer_content {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: top;
  text-align: center;
}

.footer_column > h4 {
  font-family: "Fira Sans", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--white);
}

.footer_column > ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: center;
  gap: 1rem;
}

.footer_column ul > li > a {
  color: var(--white);
  font-family: "Fira Sans", sans-serif;
  font-weight: 200;
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
}

.footer_column ul > li > a:hover {
  color: var(--dark_blue);
}

.footer_column ul > li > a:active {
  color: var(--dark_orange);
}

#footer_bottom {
  border-top: 1px solid var(--white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1rem;
  font-family: "Fira Sans", sans-serif;
  font-weight: 100;
}

#footer_bottom > p {
  font-family: "Fira Sans", sans-serif;
  font-weight: 100;
  font-size: 0.8rem;
  color: var(--white);
}

/* ANIMATIONS */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial hidden state */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
}

.fade-in-element.is-visible {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 2s ease-out 1 both;
}

@media (prefers-reduced-motion: reduce) {
  

  .fade-in-element,
  .fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
    animation: none;
  }
}

@media (max-width: 768px) {
  #nav {
    width: 90%;
    padding: 0.5rem;
    margin-top: 0.5rem;
  }

  #nav > ul {
    flex-direction: row;
    gap: 0.5rem;
  }

  #nav > ul > li > a {
    font-size: .8rem;
  }

  h1 {
    font-size: 3rem;
  }

  .quote p {
    width: 80%;
    font-size: 0.9rem;
  }
}

@media (max-width: 800px) {
  #nav {
    position: fixed;
    top: auto;
    bottom: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90px;
    padding: 0.35rem;
    border-radius: 2px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: width 0.28s ease, padding 0.28s ease, border-radius 0.28s ease;
  }

  #nav_home_link {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  #nav_logo {
    display: block;
    width: 22px;
    height: 22px;
    margin-right: 0;
    border-radius: 50%;
    object-fit: cover;
  }

  #nav_toggle {
    display: block;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    color: var(--black);
    padding: 0.2rem;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #nav_toggle_icon {
    width: 18px;
    height: 18px;
    display: block;
    transition: transform 0.25s ease, opacity 0.2s ease;
  }

  #nav > ul {
    width: 0;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.25s ease;
  }

  #nav:not(.is-open) #nav_toggle {
    margin: 0;
  }

  #nav.is-open {
    width: min(94vw, 320px);
    padding: 0.6rem;
    border-radius: 2px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #nav.is-open #nav_home_link {
    width: 32px;
    height: 32px;
  }

  #nav.is-open #nav_logo {
    width: 24px;
    height: 24px;
  }

  #nav.is-open #nav_toggle {
    margin-left: auto;
    margin-right: 0;
  }

  #nav.is-open #nav_toggle_icon {
    transform: rotate(90deg) scale(1.05);
  }

  #nav.is-open > ul {
    width: 100%;
    max-height: 220px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 0.55rem;
    transform: translateY(0);
  }

  #nav > ul > li > a {
    display: block;
    font-size: 0.85rem;
    text-align: center;
    margin: 1rem;
  }

  .footer_column > h4 {
    font-size: 1rem;
  }

  .footer_column > ul > li > a {
    font-size: 0.7rem;
    
  }
}

@media (prefers-reduced-motion: reduce) {
  #nav > ul,
  #nav_toggle_icon {
    transition: none;
    transform: none;
  }
}

