/* Loader */

.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-container.fade-out {
  opacity: 0;
  visibility: hidden;
}

.main-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in, visibility 0.5s ease-in;
}

.main-content.show {
  opacity: 1;
  visibility: visible;
}

.logo-container {
  margin-bottom: 40px;
  text-align: center;
}

.logo-container .logo {
  color: var(--secondary-color);
  font-size: 4rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-family: "Cinzel Decorative", cursive;
}

.tagline {
  color: #ffffff;
  font-size: 1rem;
  font-style: italic;
  opacity: 0.8;
}

.dining-scene {
  position: relative;
  width: 200px;
  height: 200px;
  margin-bottom: 30px;
}

.plate {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.2);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: plateRotate 3s linear infinite;
}

.plate::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8f8f8, #e8e8e8);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.utensil {
  position: absolute;
  width: 4px;
  height: 80px;
  background: linear-gradient(180deg, #c0c0c0, #808080);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.fork {
  left: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  animation: utensil1 2s ease-in-out infinite;
}

.fork::before {
  content: "";
  position: absolute;
  top: -8px;
  left: -2px;
  width: 8px;
  height: 12px;
  background: linear-gradient(180deg, #c0c0c0, #808080);
  border-radius: 4px 4px 0 0;
}

.fork::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -1px;
  width: 2px;
  height: 8px;
  background: #808080;
  box-shadow: 2px 0 0 #808080, 4px 0 0 #808080;
}

.knife {
  right: 30px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  animation: utensil2 2s ease-in-out infinite;
}

.knife::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -3px;
  width: 10px;
  height: 20px;
  background: linear-gradient(145deg, #e8e8e8, #d0d0d0);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.glass {
  position: absolute;
  width: 30px;
  height: 60px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.7)
  );
  border-radius: 0 0 15px 15px;
  right: 10px;
  bottom: 20px;
  box-shadow: inset 2px 0 4px rgba(255, 255, 255, 0.8),
    inset -2px 0 4px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: glassShine 2.5s ease-in-out infinite;
}

.glass::before {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 3px;
  right: 3px;
  height: 20px;
  background: linear-gradient(
    180deg,
    rgba(100, 149, 237, 0.6),
    rgba(100, 149, 237, 0.3)
  );
  border-radius: 0 0 10px 10px;
}

.glass::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 15px;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 2px;
}

.wine-glass {
  position: absolute;
  width: 25px;
  height: 50px;
  left: 10px;
  bottom: 20px;
  animation: wineFloat 3s ease-in-out infinite;
}

.wine-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.6)
  );
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 1px 0 2px rgba(255, 255, 255, 0.8),
    0 3px 6px rgba(0, 0, 0, 0.2);
}

.wine-glass::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, #d0d0d0, #a0a0a0);
  border-radius: 2px;
}

.loading-text {
  color: var(--secondary-color);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 20px;
  animation: textPulse 2s ease-in-out infinite;
}

.sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd700;
  border-radius: 50%;
  animation: sparkle 2s linear infinite;
}

.sparkle:nth-child(1) {
  left: 20%;
  top: 30%;
  animation-delay: 0s;
}
.sparkle:nth-child(2) {
  left: 80%;
  top: 20%;
  animation-delay: 0.5s;
}
.sparkle:nth-child(3) {
  left: 15%;
  top: 70%;
  animation-delay: 1s;
}
.sparkle:nth-child(4) {
  left: 85%;
  top: 80%;
  animation-delay: 1.5s;
}
.sparkle:nth-child(5) {
  left: 50%;
  top: 10%;
  animation-delay: 0.3s;
}
.sparkle:nth-child(6) {
  left: 70%;
  top: 60%;
  animation-delay: 0.8s;
}

@keyframes plateRotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes utensil1 {
  0%,
  100% {
    transform: translateY(-50%) rotate(45deg) scale(1);
  }
  50% {
    transform: translateY(-50%) rotate(45deg) scale(1.1);
  }
}

@keyframes utensil2 {
  0%,
  100% {
    transform: translateY(-50%) rotate(-45deg) scale(1);
  }
  50% {
    transform: translateY(-50%) rotate(-45deg) scale(1.1);
  }
}

@keyframes glassShine {
  0%,
  100% {
    opacity: 0.8;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-5px);
  }
}

@keyframes wineFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-3px) rotate(2deg);
  }
  66% {
    transform: translateY(2px) rotate(-1deg);
  }
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.welcome-message {
  color: #333;
  font-size: 2rem;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 2rem;
  }

  .dining-scene {
    width: 150px;
    height: 150px;
  }

  .plate {
    width: 90px;
    height: 90px;
  }

  .loading-text {
    font-size: 1rem;
  }
}
