@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary: #9B5E3C; /* Warm Coffee brown */
  --primary-hover: #7E4A2E;
  --secondary: #CBA07B; /* Soft Caramel */
  --secondary-hover: #B88E69;
  --accent: #D4AF37; /* Elegant Gold */
  --bg-color: #FAF6F0; /* Soft Warm Cream background */
  
  /* Frosted Glass tokens */
  --card-bg: rgba(255, 255, 255, 0.45); 
  --text-color: #2B1B12; /* Coffee charcoal text */
  --text-muted: #6C5E53;
  --border-color: rgba(255, 255, 255, 0.6); 
  
  --shadow: 0 8px 32px 0 rgba(155, 94, 60, 0.05);
  --shadow-lg: 0 8px 32px 0 rgba(155, 94, 60, 0.12);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  /* Soft background aesthetic gradient */
  background-image: radial-gradient(at 0% 0%, rgba(203, 160, 123, 0.1) 0, transparent 50%),
                    radial-gradient(at 50% 0%, rgba(212, 175, 55, 0.08) 0, transparent 50%);
}

h1, .h1 { font-size: 2.2rem; font-family: var(--font-heading); font-weight: 700; color: var(--text-color); }
h2, .h2 { font-size: 1.8rem; font-family: var(--font-heading); font-weight: 700; color: var(--text-color); }
h3, .h3 { font-size: 1.4rem; font-family: var(--font-heading); font-weight: 600; color: var(--text-color); }
h4, .h4 { font-size: 1.2rem; font-family: var(--font-heading); font-weight: 600; color: var(--text-color); }
h5, .h5 { font-size: 1.05rem; font-family: var(--font-heading); font-weight: 600; }
h6, .h6 { font-size: 0.9rem; font-family: var(--font-heading); font-weight: 600; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Buttons with dynamic glow animations */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 500;
  padding: 0.6rem 1.7rem;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(155, 94, 60, 0.2);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(155, 94, 60, 0.4);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 200%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}
.btn-primary:hover::after {
  left: 125%;
  opacity: 1;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 500;
  padding: 0.6rem 1.7rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(155, 94, 60, 0.05);
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(155, 94, 60, 0.3);
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  border-radius: 16px;
  transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}
.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary) !important;
}
.nav-link {
  color: var(--text-color) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: none;
  padding: 180px 0 140px 0;
  color: #000;
  clip-path: ellipse(110% 100% at 50% 0%);
  overflow: hidden;
} 

/* Hero background animation */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}
.hero-bg i {
    animation: rotateCup 30s linear infinite;
}
@keyframes rotateCup {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.hero-title {
  font-size: 4rem;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 110px 0 70px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

.menu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(155, 94, 60, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.menu-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px rgba(155, 94, 60, 0.2);
  border-color: rgba(155, 94, 60, 0.4);
}
.menu-card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 220px;
}
.menu-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.menu-card:hover .menu-card-img {
  transform: scale(1.1);
}
.badge-discount {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.menu-card-body {
  padding: 1.5rem;
}
.menu-card-price {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
}
.menu-card-original-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

/* Category Slider/Grid */
.category-btn {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text-color);
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  white-space: nowrap;
}
.category-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(155, 94, 60, 0.12);
}
.category-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(155, 94, 60, 0.25);
}

/* Category Scroll Container */
.category-scroll-container {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  width: max-content;
}

.marquee-content {
  animation: scrollMarquee 35s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 6px)); }
}

/* Fading edges for marquee */
.marquee-fade-left, .marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 2;
  pointer-events: none;
}
.marquee-fade-left {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}
.marquee-fade-right {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

/* Animated entrance for menu filters */
@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.menu-item-card-wrapper {
  animation: cardAppear 0.55s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Visual Tables Layout */
.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}
.table-box {
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.table-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.table-box.status-available {
  border-color: #2ec4b6;
}
.table-box.status-available .table-icon {
  color: #2ec4b6;
}
.table-box.status-reserved {
  border-color: #ff9f1c;
}
.table-box.status-reserved .table-icon {
  color: #ff9f1c;
}
.table-box.status-occupied {
  border-color: #e71d36;
}
.table-box.status-occupied .table-icon {
  color: #e71d36;
}
.table-box.status-cleaning {
  border-color: #011627;
}
.table-box.status-cleaning .table-icon {
  color: #011627;
}
.table-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

/* Cart Float Counter */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50%;
  padding: 3px 6px;
  line-height: 1;
}

/* Footer styling */
.footer {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-color);
  padding: 80px 0 30px 0;
  border-top: 5px solid var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer h5, 
.footer h5.text-white, 
.footer .font-heading {
  color: var(--primary) !important;
  margin-bottom: 25px;
}

.footer p, 
.footer span:not(.bg-success):not(.bg-danger) {
  color: var(--text-color) !important;
}

.footer-link {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--primary) !important;
  padding-left: 5px;
}

.footer-social-icon {
  font-size: 1.25rem;
  color: var(--text-muted) !important;
  margin-right: 15px;
  transition: var(--transition);
}

.footer-social-icon:hover {
  color: var(--primary) !important;
  transform: translateY(-3px);
}

.footer .text-secondary {
  color: var(--text-muted) !important;
}

.footer .text-secondary:hover {
  color: var(--primary) !important;
}

.footer hr {
  border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Toast Notifications styling */
.toast-container {
  z-index: 1060;
}
.custom-toast {
  background: var(--card-bg) !important;
  color: var(--text-color) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-lg) !important;
}

/* General Utilities */
.section-padding {
  padding: 80px 0;
}
.bg-cream {
  background-color: #F8F5F0;
}
.text-gold {
  color: var(--accent);
}
.font-serif {
  font-family: var(--font-heading);
}
.text-muted-custom {
  color: var(--text-muted);
}
.border-custom {
  border-color: var(--border-color) !important;
}
.card-custom {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.card-custom:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(155, 94, 60, 0.15);
  border-color: var(--secondary) !important;
  background: rgba(255, 255, 255, 0.65);
}

/* Loading Spinner Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(253, 251, 247, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
}
.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Premium Animations System */

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

/* Fade In Up Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating movement keyframes */
@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* Spin Slow keyframes */
@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Pulse Glow keyframes */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    border-color: var(--accent);
  }
}

/* Scroll Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered Entrance Delays */
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }
.animate-delay-4 { animation-delay: 0.6s; }

/* Instagram Follow CTA Banner */
.insta-cta-banner {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow);
}
.insta-cta-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--secondary) !important;
}
.insta-cta-banner .btn-primary {
  transition: var(--transition);
}
.insta-cta-banner:hover .btn-primary {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(155, 94, 60, 0.3);
}
.insta-cta-banner i.fab.fa-instagram {
  transition: transform 0.4s ease;
}
.insta-cta-banner:hover i.fab.fa-instagram {
  transform: scale(1.2) rotate(15deg);
}

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

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

.animate-pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Enhanced Hover Interactions */
.navbar-brand:hover i {
  transform: rotate(15deg) scale(1.1);
  color: var(--accent) !important;
}

.navbar-brand i {
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.menu-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.menu-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--secondary) !important;
}

.table-box {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}

.table-box:hover {
  transform: scale(1.04);
}

.table-box:hover .table-icon {
  transform: scale(1.15) rotate(-5deg);
}

.table-icon {
  transition: var(--transition);
}

/* Global Logo styling */
img[alt="Cafe Beats Logo"] {
  border-radius: 50% !important;
  border: 2px solid var(--primary) !important;
  background: #000000 !important;
  object-fit: cover !important;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 991px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    z-index: 1030;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    transition: var(--transition);
    width: 20%;
    padding: 5px 0;
  }
  
  .mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
  }
  
  .mobile-nav-item:hover, .mobile-nav-item.active {
    color: var(--primary);
  }
  
  /* Center Raised Button */
  .mobile-nav-item.center-btn {
    position: relative;
    top: -15px;
    width: 60px;
    height: 60px;
    z-index: 1031;
  }
  
  .mobile-nav-item.center-btn .circle-btn {
    width: 54px;
    height: 54px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(155, 94, 60, 0.3);
    border: 3px solid var(--bg-color);
    transition: var(--transition);
  }
  
  .mobile-nav-item.center-btn .circle-btn i {
    font-size: 1.5rem;
    margin: 0;
  }
  
  .mobile-nav-item.center-btn:hover .circle-btn {
    transform: scale(1.08);
    background: var(--primary-hover);
    box-shadow: 0 6px 16px rgba(155, 94, 60, 0.4);
  }

  /* Add padding to body to prevent bottom bar from covering content */
  body {
    padding-bottom: 70px !important;
  }
}
