@font-face {
  font-family: 'IBMPlexSansCondensed-Regular';
  src: url('./fonts/IBMPlexSansCondensed-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 160px;
  -webkit-overflow-scrolling: touch;
}

body,
html {
  font-family: 'IBMPlexSansCondensed-Regular', Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: #ccc;
}

/* ********************** */
/*     BACKGROUND CSS     */
/* ********************** */
#background-video {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: rgba(0, 0, 0, 0.25);
}

/* ********************** */
/*       NAVBAR CSS       */
/* ********************** */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 111px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

#navbar-bottom {
  position: fixed;
  top: 110px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 90;
  transition:
    padding 0.5s ease-in,
    height 0.5s ease-in,
    opacity 0.5s ease-in;
}

#navbar-bottom:not(.navbar-bottom-hide) {
  padding: 10px 0;
  height: 60px;
  opacity: 1;
}

.navbar-bottom-hide {
  padding: 0;
  height: 0;
  opacity: 0;
}

#navbar-bottom:is(.navbar-bottom-hide)>.navbar-content>a {
  display: none;
}

.navbar-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  width: 100%;
}

#nav-espana, #nav-suiza {
  font-size: 1rem;
  line-height: 1.25rem;
  text-decoration: none;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  cursor: pointer;
  display: inline-block;
  transition:
    background-color 0.5s ease-in,
    color 0.5s ease-in,
    display 0.5s ease-in;
}

/* ********************** */
/* LANGUAGE DROPDOWN CSS  */
/* ********************** */
#selected-language, #languages-dropdown {
  position: fixed;
  top: 2rem;
  right: 2rem;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
}

#selected-language {
  display: flex;
  padding: 10px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.language-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 10px;
}

#selected-language>span, .language-option>span {
  display: none;
}

#selected-language, #languages-dropdown, .language-option {
  width: max-content;
}

/* ********************** */
/*  COMMON SECTIONS CSS   */
/* ********************** */
.section {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.glass-filter {
  backdrop-filter: blur(25px);
  border-radius: 4px;
}

/* ********************** */
/*      SECTION 1 CSS     */
/* ********************** */
#main-logo {
  position: fixed;
  transition: 
    opacity 0.5s ease-in,
    filter 0.5s ease-in,
    width 0.5s ease-in,
    left 0.5s ease-in,
    top 0.5s ease-in;
}

/* ********************** */
/*    ANIMATION CLASSES   */
/* ********************** */
#main-logo:not(.fade) {
  opacity: 1;
}

#main-logo:not(.goUp) {
  width: 450px;
  left: calc(50% - 225px); 
  z-index: 10;
  top: 37.5%;
}

.fade:not(.goUp) {
  opacity: 0.1;
}

.goUp {
  top: -10px;
  width: 125px;
  left: calc(50% - 62.5px);
  z-index: 110;
}

/* ********************** */
/*      SECTION 2 CSS     */
/* ********************** */
#section2, #section3 {
  padding-bottom: 300px;
}

.content-section2 {
  margin: 1rem;
  padding: 2rem;
  min-height: 500px;
  width: 80%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

article section h1 {
  margin-block: 0rem;
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: bold;
  width: 100%;
}

#section2-text1, #section2-text2, #section2-text3 {
  font-size: 1rem;
  line-height: 1.25rem;
}

/* ********************** */
/*      SECTION 3 CSS     */
/* ********************** */
#section3-container {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.section3-box {
  text-decoration: none;
  width: 90%;
  max-width: 500px;
  max-height: calc(100vh - 110px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  transition:
    transform 0.25s ease-in,
    box-shadow 0.25s ease-in;
}

.section3-box:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.7);
}

.section3-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.7)
}

article section h2 {
  margin-block: 0rem;
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: bold;
}

/* ********************** */
/*  Mobile media queries  */
/* ********************** */
@media (min-width: 576px) {
  html {
    scroll-padding-top: 130px;
  }

  .section {
    align-items: center;
  }

  
  #section2, #section3 {
    padding-bottom: unset;
  }
  
  #selected-language>span, .language-option>span {
    display: block;
  }

  #selected-language, #languages-dropdown {
    width: 160px;
  }

  .language-option {
    width: 80%;
  }
}

@media (min-width: 1024px) {
  #selected-language>span, .language-option>span, #nav-espana, #nav-suiza {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  article section h1, article section h2 {
    font-size: 1.75rem;
    line-height: 2rem;
  }
  
  #section2-text1, #section2-text2, #section2-text3 {
    font-size: 1rem;
    line-height: 1.25rem;
  }

  #section3-container {
    gap: 3rem;
  }
  
  .section3-box {
    gap: 3rem;
    padding: 3rem;
  }
}

@media (min-width: 1920px) {
  #selected-language>span, .language-option>span, #nav-espana, #nav-suiza {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }

  article section h1, article section h2 {
    font-size: 2rem;
    line-height: 2.25rem;
  }
  
  #section2-text1, #section2-text2, #section2-text3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
  }
}