/* ===== Custom Styles for Starlite Bay Cafe ===== */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1e1b4b;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* Selection color */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fef3c7;
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(12deg); }
  50% { transform: translateY(-16px) rotate(12deg); }
}

@keyframes float-delayed {
  0%, 100% { transform: translateY(0px) rotate(45deg); }
  50% { transform: translateY(-12px) rotate(45deg); }
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float-delayed 6s ease-in-out infinite;
  animation-delay: 1s;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(30, 27, 75, 0.92);
  backdrop-blur-xl;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ===== Menu Cards ===== */
.menu-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
  transform: translateY(-4px);
}

/* ===== Gallery ===== */
.gallery-item {
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Mobile Menu ===== */
#mobileMenu {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-link {
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.2);
}

.mobile-link:last-child {
  border-bottom: none;
}

/* ===== Input Focus Effects ===== */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

/* ===== Button Ripple on Tap ===== */
button:active,
a:active {
  transform: scale(0.97);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
  .font-display {
    line-height: 1.1;
  }
}

/* ===== Print Styles ===== */
@media print {
  #navbar,
  .gallery-item,
  #contactForm {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
}
