* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  overflow-x: hidden;
  background: #2858e3;
}

html {
  scroll-behavior: smooth;
}



.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}



header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
}

.logo-img {
  height: 100px;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #cceff5;
  font-size: 18px;
}

nav a:hover {
  color: white;
}



.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -40px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
  color: #002b36;
}

.figures-carousel-controls {
  display: none;
}

.figure-arrow {
  display: none;
}


.figures {
  position: absolute;
  bottom: 0;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 80px;

  padding: 0 5%;
}

.figure-item {
  height: 80vh;
  max-height: 120000px;
  width: auto;
  object-fit: contain;
  display: block;
}

.figures img {
  display: block;
}



@keyframes slideUpFade {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  60% {
    opacity: 0.9;
    transform: translateY(-6px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.65s ease var(--delay, 0s), transform 0.65s ease var(--delay, 0s);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer {
  width: 100%;
  height: calc(100vw * 0.303);

  background: url("bottom.png") no-repeat center;
  background-size: contain;

  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}


@media (max-width: 768px) {

  body {
    background: #2858e3;
  }

  header {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  .logo-img {
    height: 70px;
    max-width: 90%;
    object-fit: contain;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  nav a {
    margin: 0;
    font-size: 14px;
    padding: 4px 8px;
    min-width: 65px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
  }

  .hero-text {
    margin-top: -8px;
    width: 92%;
    font-size: 12px;
    line-height: 1.4;
    padding: 0 6px;
  }

  .figures {
    position: absolute;
    bottom: 0;
    max-height: 100vh;
    gap: 0;
    padding: 0;
    justify-content: flex-start;
    overflow: visible;
    width: 100%;
    display: flex;
    transition: transform 0.3s ease;
  }

  .figures-carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    pointer-events: none;
  }

  .figure-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    font-size: 24px;
    line-height: 1;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
    pointer-events: auto;
  }

  .figure-arrow:active {
    transform: scale(0.96);
  }

  .figure-item {
    height: 100vh;
    max-height: 460px;
    width: 100%;
    flex-shrink: 0;
    object-fit: contain;
  }

  .figure-item.reveal,
  .figure-item.reveal.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .footer {
    height: calc(100vw * 0.35);
  }
}

@media (min-width: 769px) {
  .figures {
    overflow: visible !important;
    max-height: none !important;
    gap: 80px !important;
    padding: 0 5% !important;
    justify-content: center !important;
    transform: none !important;
  }
  .figure-item {
    width: auto !important;
    height: 80vh !important;
    max-height: 120000px !important;
    flex-shrink: 1 !important;
  }

  .figures-carousel-controls,
  .figure-arrow {
    display: none !important;
  }
}
