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

/* Background */
body {
  font-family: 'Nunito', sans-serif;
  background-color: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Background container */
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: #e1e1e1;
}

/* Gradient overlay (PC only) */
.background-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    to right,
    #e1e1e1 0%,
    #e1e1e1 10%,
    rgba(215, 215, 215, 0.12) 25%,
    rgba(215, 215, 215, 0.06) 40%,
    rgba(215, 215, 215, 0.02) 50%,
    rgba(215, 215, 215, 0.06) 60%,
    rgba(215, 215, 215, 0.12) 75%,
    #e1e1e1 90%,
    #e1e1e1 100%
  );
  pointer-events: none;
}

/* Background image */
.bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2s ease;
  z-index: 0;
  background-color: #e1e1e1;
  filter: brightness(1.015);

  -webkit-mask-image: linear-gradient(
    to right,
    rgba(222, 222, 222, 0) 0%,
    black 30%,
    black 70%,
    rgba(222, 222, 222, 0) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(222, 222, 222, 0) 0%,
    black 30%,
    black 70%,
    rgba(222, 222, 222, 0) 100%
  );
}

.bg-img.active {
  opacity: 1;
}

/* Content container */
.content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  padding: 0 1rem;
}

/* Logo image */
.title-logo {
  width: 588px;
  height: auto;
}

/* Language buttons */
.language-buttons {
  margin-top:8px;
  display: flex;
  justify-content: center;
  gap: 16px;
}



.language-buttons button {
  width:100px;
  height: 36px;
  font-size: 16px;
  padding: 0;
  display: flex;
  align-items:center;
  justify-content: center;
  color: #fff;
  background-color: transparent;
  border: 1px solid #fff;
  border-radius: 4px;
  margin: 4px;
  font-family:inherit;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.language-buttons button:hover {
  background-color: #f0f0f0;
  color:#000;
  cursor: pointer;
}



/* Credit (footer) */
.credit {
  font-size: 0.7em;
  color: #333;
  text-align: center;
  padding: 1rem 0;
  position: absolute;
  bottom: 1rem;
  width: 100%;
}


.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


.slide-up {
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 1.2s ease-out 0.3s forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* ========== Smartphone styles ========== */
@media (max-width: 768px) {
  .bg-img {
    height: 100vh;
    width: auto;
    max-height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    -webkit-mask-image: none;
    mask-image: none;
  }

    .title-logo {
    width: 85vw;       
    max-width: 400px;     
    height: auto;
    margin-bottom: 1.5rem;  
  }

  .content {
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0 1rem;
    text-align: center;
  }

  .language-buttons{
    margin-top:2px;
  }

  .language-buttons button {
    width: 70%;
    max-width: 200px;
    font-size: 0.9em;
    margin:2px;
  }

  .background-gradient {
    display: none;
  }

  .social-icons {
    display: none;
  }


  .credit {
  bottom: 0.5rem;
}

}