/* ============================================
   Restaurant Marisco El Diamante
   Custom Styles — Midnight Blue + Mint
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

::selection {
  background: rgba(20, 184, 166, 0.3);
  color: #f0fdfa;
}

/* --- Tag Pills --- */
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.menu-card:hover .tag {
  border-color: rgba(20, 184, 166, 0.3);
  color: rgba(94, 234, 212, 0.7);
  background: rgba(20, 184, 166, 0.08);
}

/* --- Hero Shapes --- */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shape-1 {
  top: 10%;
  left: 5%;
  width: 120px;
  height: 120px;
  background: rgba(20, 184, 166, 0.08);
  animation: floatShape 8s ease-in-out infinite;
}

.shape-2 {
  top: 60%;
  left: 15%;
  width: 60px;
  height: 60px;
  background: rgba(254, 230, 138, 0.06);
  animation: floatShape 6s ease-in-out infinite reverse;
  border-radius: 16px;
  transform: rotate(45deg);
}

.shape-3 {
  top: 30%;
  right: 38%;
  width: 200px;
  height: 200px;
  background: rgba(20, 184, 166, 0.04);
  animation: floatShape 10s ease-in-out infinite;
}

.shape-4 {
  bottom: 15%;
  right: 5%;
  width: 80px;
  height: 80px;
  background: rgba(254, 230, 138, 0.05);
  animation: floatShape 7s ease-in-out infinite reverse;
  border-radius: 20px;
  transform: rotate(30deg);
}

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* --- Hero Image Grid --- */
.hero-image-grid {
  position: relative;
  width: 100%;
  height: 620px;
}

.img-card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.img-card:hover {
  transform: translateY(-8px) !important;
}

.img-card-1 {
  top: 0;
  left: 0;
  width: 260px;
  height: 340px;
  z-index: 3;
}

.img-card-2 {
  top: 60px;
  right: 0;
  width: 220px;
  height: 170px;
  z-index: 2;
}

.img-card-3 {
  bottom: 20px;
  right: 30px;
  width: 200px;
  height: 160px;
  z-index: 4;
}

.img-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 30, 0.3) 0%, transparent 50%);
  border-radius: 20px;
}

/* --- Floating Badge --- */
.floating-badge {
  position: absolute;
  bottom: 100px;
  left: -10px;
  z-index: 5;
  background: rgba(13, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: floatBadge 4s ease-in-out infinite;
}

.floating-badge span {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Scroll Indicator --- */
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(94, 234, 212, 0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

/* --- Marquee --- */
.marquee-track {
  animation: marqueeScroll 30s linear infinite;
}

.marquee-item {
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Menu Cards --- */
.menu-card {
  transform: translateY(0);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Gallery --- */
.gallery-item {
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* --- Scroll Reveal --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }

/* --- Hero Animations --- */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-anim:nth-child(1) { animation-delay: 0.2s; }
.hero-anim:nth-child(2) { animation-delay: 0.4s; }
.hero-anim:nth-child(3) { animation-delay: 0.6s; }
.hero-anim:nth-child(4) { animation-delay: 0.8s; }

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

.hero-image-grid {
  opacity: 0;
  animation: heroImageReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
}

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

/* --- Navbar --- */
#navbar.scrolled {
  background: rgba(10, 15, 30, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0;
  padding-bottom: 0;
}

#navbar.scrolled .max-w-7xl {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* --- Mobile Menu --- */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#mobile-menu.open .mobile-nav-link {
  animation: mobileLinkIn 0.4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

#mobile-menu.open .mobile-nav-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-nav-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-nav-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-nav-link:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.open .mobile-nav-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes mobileLinkIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mobile Menu Button --- */
.menu-line {
  transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 24px;
  margin-left: 0;
}

/* --- Input Focus --- */
input:focus, textarea:focus {
  outline: none;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-image-grid {
    height: 480px;
  }

  .img-card-1 {
    width: 200px;
    height: 260px;
  }

  .img-card-2 {
    width: 170px;
    height: 130px;
  }

  .img-card-3 {
    width: 160px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  .hero-image-grid {
    display: none;
  }

  h1 .block {
    font-size: 3.5rem !important;
  }

  .floating-badge {
    display: none;
  }

  .menu-card {
    padding: 1.5rem;
  }

  .grid .col-span-2 {
    col-span: 1;
  }

  .gallery-item {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

@media (max-width: 480px) {
  h1 .block {
    font-size: 2.75rem !important;
  }

  .hero-anim {
    font-size: 0.9rem;
  }
}
