* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 151, 0.767), rgba(56, 56, 56, 0.568));
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-color: #7f8c8d;
  height: 100vh;
}

header {
  padding: 30px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

header nav ul {
  display: flex;
  gap: 5rem;
}

header nav ul li {
  list-style-type: none;
}

header nav ul li a {
  text-decoration: none;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  position: relative;
  padding: 10px 0;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.5s ease;
  transform: translateX(-50%);
}

header nav ul li a:hover::after {
  width: 100%;
  left: 0;
  transform: translateX(0);
}

.main-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
}

.main-text {
  width: 60%;
  color: #fff;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
}

.main-text h1 {
  font-size: 60px;
  text-shadow: 1px 1px 2px #000000;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.main-text h2 {
  font-size: 20px;
  font-weight: 500;
  text-shadow: 1px 1px 2px #000000;
  opacity: 0;
  animation: fadeIn 1.5s ease-out forwards;
  animation-delay: 0.3s;
}

.gallery {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  opacity: 0;
  animation: fadeIn 3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.photo {
  max-width: 50px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.photo:hover {
  transform: scale(1.2);
}

.container-contact a {
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0px 0px 3px #ffffff8f;
  display: inline-block;
  margin-top: 20px;
  transition: color 0.3s ease;
}

.container-contact a:hover {
  color: #00ff0d80;
  text-shadow: none;
}

.language-menu {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.language-button {
  background: none;
  border: 1px solid #ffffff;
  color: #ffffff;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-button:hover {
  background-color: #ffffff;
  color: #333;
}

.language-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: #ffffff;
  color: #333;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
}

.language-dropdown li {
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.language-dropdown li:hover {
  background-color: #f4f4f4;
}

.language-menu.show .language-dropdown {
  display: block;
}

@media (max-width: 900px) {
  .language-menu {
    top: calc(100% + 50px);
    right: 15px;
  }
  .language-button {
    font-size: 16px;
    padding: 8px 12px;
  }
}


#Cryptex {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  padding: 60px 40px;
}

#Cryptex.visible {
  opacity: 1;
  transform: translateY(0);
}

.Cryptex-text {
  max-width: 60%;
  color: #ffffff;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
}

.Cryptex-text h1 {
  font-size: 30px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px #000000;
  color: #c4c4ff;
}

.Cryptex-text h2 {
  font-size: 18px;
  line-height: 1.7;
  text-align: justify;
  font-weight: 400;
  text-shadow: 1px 1px 2px #000000;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #8888ff;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1.2s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.img-Cryptex {
  width: 30%;
  max-width: 350px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




@media (max-width: 960px) {
  #Cryptex {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
  }

  .Cryptex-text {
    max-width: 100%;
    padding: 20px;
  }

  .img-Cryptex {
    width: 70%;
    margin-top: 20px;
  }
}












@media (min-width: 1024px) and (max-width: 1400px) {
  .main-container {
    padding: 20px;
  }
  .main-text {
    width: 80%;
  }
  .main-text h1 {
    font-size: 50px;
  }
  .main-text h2 {
    font-size: 18px;
  }
  .gallery {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
  }
  .photo {
    max-width: 50px;
  }
  .contact {
    margin-top: 30px;
  }
  .container-contact a {
    font-size: 18px;
  }
  #Cryptex {
    flex-direction: column;
    gap: 2rem;
    margin-top: 20rem;
  }
  .Cryptex-text {
    max-width: 60%;
  }
  .img-Cryptex {
    width: 80%;
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .main-container {
    padding: 20px;
  }
  .main-text {
    width: 80%;
  }
  .main-text h1 {
    font-size: 50px;
  }
  .main-text h2 {
    font-size: 18px;
  }
  .gallery {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 10px;
  }
  .photo {
    max-width: 50px;
  }
}

@media (max-width: 768px) {
  body {
    height: auto;
  }
  header {
    padding: 15px 0;
    background-color: #5252529c;
  }
  header nav ul {
    gap: 2rem;
  }
  header nav ul li a {
    font-size: 20px;
  }
  main {
    flex-direction: column;
    text-align: center;
    height: auto;
    margin-top: 8rem;
  }
  .main-text {
    width: 100%;
    text-shadow: none;
  }
  .main-text h1 {
    font-size: 30px;
  }
  .main-text h2 {
    font-size: 15px;
  }
}

@media (max-width: 320px) {
  body {
    height: auto;
  }
  header {
    padding: 5px 0;
    background-color: #5252529c;
  }
  header nav ul li a {
    font-size: 15px;
  }
  main {
    flex-direction: column;
    text-align: center;
    height: auto;
    margin-top: 8rem;
  }
  .main-text {
    width: 100%;
    text-shadow: none;
  }
  .main-text h1 {
    font-size: 30px;
  }
  .main-text h2 {
    font-size: 13px;
  }
  }
