/* ============================================
   Cafe Caruso — Custom Styles
   ============================================ */

/* Base & Typography */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #F5F0E8;
}
::-webkit-scrollbar-thumb {
  background: #1B4332;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #2d6534;
}

/* Selection */
::selection {
  background: #1B4332;
  color: #F5F0E8;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes floatDelay {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(-2deg); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

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

.animate-float-delay {
  animation: floatDelay 7s ease-in-out infinite;
}

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

#navbar.scrolled {
  background: rgba(245, 240, 232, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(27, 67, 50, 0.08);
}

.nav-logo-text {
  transition: color 0.3s ease;
}

#navbar:not(.scrolled) .nav-logo-text {
  color: #FDFCF9;
}

#navbar.scrolled .nav-logo-text {
  color: #1B4332;
}

#navbar:not(.scrolled) .nav-link {
  color: rgba(253, 252, 249, 0.85);
}

#navbar:not(.scrolled) .nav-link:hover {
  color: #FDFCF9;
}

#navbar:not(.scrolled) #menu-toggle {
  color: #FDFCF9;
}

/* ============================================
   Menu Tabs
   ============================================ */
.menu-tab {
  background: transparent;
  color: #1B4332;
  border: none;
  cursor: pointer;
}

.menu-tab.active {
  background: #1B4332;
  color: #F5F0E8;
  box-shadow: 0 4px 15px rgba(27, 67, 50, 0.3);
}

.menu-tab:not(.active):hover {
  background: rgba(27, 67, 50, 0.08);
}

/* Menu Items */
.menu-item {
  border-bottom: 1px solid rgba(27, 67, 50, 0.1);
  padding-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 0.5s ease-out forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.1s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.2s; }

.menu-item:last-child {
  border-bottom: none;
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.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
   ============================================ */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

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

/* Hamburger Animation */
#hamburger.active #bar1 {
  transform: rotate(45deg) translate(5px, 5px);
}
#hamburger.active #bar2 {
  opacity: 0;
}
#hamburger.active #bar3 {
  transform: rotate(-45deg) translate(7px, -6px);
  width: 1.5rem;
}

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

/* ============================================
   Utility
   ============================================ */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
