@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=Source+Sans+Pro:wght@300;400;500;600&display=swap");

:root {
  --coffee-gold: #b3997d;
  --coffee-dark: #192447;
  --coffee-light: #c4a888;
  --coffee-darker: #243251;
}

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

body {
  font-family: "Source Sans Pro", sans-serif;
  background: linear-gradient(
    135deg,
    var(--coffee-dark) 0%,
    var(--coffee-darker) 100%
  );
  min-height: 100vh;
  overflow-x: hidden;
}

.gate {
  position: fixed;
  top: 0;
  width: 50%;
  height: 100vh;
  background: linear-gradient(
    135deg,
    #192447 0%,
    #243251 25%,
    #b3997d 75%,
    #c4a888 100%
  );
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: transform;
}

.gate::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(179, 153, 125, 0.3) 0%,
    rgba(25, 36, 71, 0.8) 50%,
    rgba(179, 153, 125, 0.3) 100%
  );
  animation: gate-shimmer 3s ease-in-out infinite;
}

@keyframes gate-shimmer {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.gate-left {
  left: 0;
  transform-origin: left center;
}

.gate-right {
  right: 0;
  transform-origin: right center;
}

.gate-left.open {
  transform: translateX(-100%);
}

.gate-right.open {
  transform: translateX(100%);
}

.gate-left.closing {
  transform: translateX(0);
}

.gate-right.closing {
  transform: translateX(0);
}

.chocolate-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: url("/assets/images/static/choco.png") repeat-x;
  background-size: auto 100%;
  z-index: 500;
  opacity: 0;
  animation: chocolate-appear 0.5s ease-out 0.5s forwards;
}

@keyframes chocolate-appear {
  to {
    opacity: 1;
  }
}

.main-content {
  padding: 100px 0 40px;
  opacity: 0;
  animation: content-reveal 0.5s ease-out 0.7s forwards;
}

@keyframes content-reveal {
  to {
    opacity: 1;
  }
}

.hero-title {
  font-family: "Crimson Text", serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: var(--coffee-gold);
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.hero-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--coffee-gold),
    transparent
  );
  animation: title-underline 1s ease-out 1s forwards;
  opacity: 0;
}

@keyframes title-underline {
  to {
    opacity: 1;
  }
}

.subtitle {
  text-align: center;
  color: var(--coffee-light);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.menu-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(179, 153, 125, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: card-appear 0.4s ease-out forwards;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  min-height: 200px;
}

.menu-card:nth-child(1) {
  animation-delay: 0.8s;
}
.menu-card:nth-child(2) {
  animation-delay: 0.85s;
}
.menu-card:nth-child(3) {
  animation-delay: 0.9s;
}
.menu-card:nth-child(4) {
  animation-delay: 0.95s;
}
.menu-card:nth-child(5) {
  animation-delay: 1s;
}
.menu-card:nth-child(6) {
  animation-delay: 1.05s;
}
.menu-card:nth-child(7) {
  animation-delay: 1.1s;
}
.menu-card:nth-child(8) {
  animation-delay: 1.15s;
}
.menu-card:nth-child(9) {
  animation-delay: 1.2s;
}
.menu-card:nth-child(10) {
  animation-delay: 1.25s;
}
.menu-card:nth-child(11) {
  animation-delay: 1.3s;
}
.menu-card:nth-child(12) {
  animation-delay: 1.35s;
}
.menu-card:nth-child(13) {
  animation-delay: 1.4s;
}
.menu-card:nth-child(14) {
  animation-delay: 1.45s;
}
.menu-card:nth-child(15) {
  animation-delay: 1.5s;
}
.menu-card:nth-child(16) {
  animation-delay: 1.55s;
}

@keyframes card-appear {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.menu-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(179, 153, 125, 0.25);
  border-color: var(--coffee-gold);
  background: rgba(255, 255, 255, 0.12);
}

.menu-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(179, 153, 125, 0.15),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.menu-card:hover::before {
  left: 100%;
}

.card-image {
  width: 100%;
  height: 70%;
  object-fit: cover;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.menu-card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 1rem;
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.signature-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, var(--coffee-gold), var(--coffee-light));
  color: var(--coffee-dark);
  padding: 6px 12px;
  border-radius: 15px;
  font-family: "Crimson Text", serif;
  font-weight: 700;
  font-size: 0.8rem;
  text-shadow: none;
  box-shadow: 0 4px 12px rgba(179, 153, 125, 0.4);
  z-index: 10;
  letter-spacing: 0.5px;
}

.card-title {
  font-family: "Crimson Text", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--coffee-gold);
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.card-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.copyright-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(25, 36, 71, 0.9);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  text-align: center;
  z-index: 10;
  opacity: 0;
  animation: footer-appear 1s ease-out 2s forwards;
}

@keyframes footer-appear {
  to {
    opacity: 1;
  }
}

.copyright-text {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .chocolate-top {
    height: 70px;
  }
  .main-content {
    padding-top: 90px;
    padding-bottom: 80px;
  }
  .menu-grid {
    max-width: 100%;
    padding: 0 0.75rem;
  }
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }
  .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  .menu-card {
    min-height: 180px;
  }
  .card-content {
    padding: 0.75rem;
  }
  .card-title {
    font-size: 1rem;
  }
  .card-description {
    font-size: 0.8rem;
  }
  .copyright-footer {
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .menu-grid {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .menu-card {
    min-height: 160px;
  }
  .card-title {
    font-size: 0.95rem;
  }
  .card-description {
    font-size: 0.75rem;
  }
  .copyright-text {
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gate,
  .main-content,
  .menu-card,
  .hero-title::after,
  .chocolate-top,
  .copyright-footer {
    animation: none;
    transition: none;
  }
  .main-content {
    opacity: 1;
  }
  .menu-card {
    transform: none;
    opacity: 1;
  }
}
