@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

body {
  margin: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #F3F0EA;
  color: #2D1B18;
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  opacity: 0;
  animation: bodyFade 1.2s ease-out forwards;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 1000px;
}

/* Chocolate Image Container & Animation */
.chocolate-image-container {
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(-15px);
  animation: imgEntrance 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.chocolate-img {
  max-height: 200px;
  width: auto;
  display: block;
  animation: float 6s ease-in-out infinite;
}

h1 {
  font-size: 2.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.35;
  margin: 0;
  position: relative;
  opacity: 0;
  transform: translateY(15px);
  animation: textEntrance 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

/* Elegant minimalist underline animation */
h1::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: #2D1B18;
  margin: 1.5rem auto 0 auto;
  opacity: 0.8;
  animation: drawLine 2s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.3s;
}

.subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 2rem;
  letter-spacing: 0.25em;
  opacity: 0;
  transform: translateY(10px);
  animation: subtitleEntrance 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.6s;
}

/* Keyframes */
@keyframes bodyFade {
  to {
    opacity: 1;
  }
}

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

@keyframes textEntrance {
  0% {
    opacity: 0;
    transform: translateY(25px);
    letter-spacing: 0.15em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.08em;
  }
}

@keyframes drawLine {
  to {
    width: 60px;
  }
}

@keyframes subtitleEntrance {
  to {
    opacity: 0.8;
    transform: translateY(0);
  }
}

/* Gentle floating animation */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chocolate-img {
    max-height: 140px;
  }
  
  h1 {
    font-size: 1.85rem;
    letter-spacing: 0.06em;
    line-height: 1.4;
  }

  .subtitle {
    font-size: 0.9rem;
    margin-top: 1.5rem;
    letter-spacing: 0.18em;
  }
  
  @keyframes textEntrance {
    0% {
      opacity: 0;
      transform: translateY(20px);
      letter-spacing: 0.1em;
    }
    100% {
      opacity: 1;
      transform: translateY(0);
      letter-spacing: 0.06em;
    }
  }
}
