/* Custom CSS Styles for Bôma Restaurant */

/* CSS Custom Properties (Variables) */
:root {
  --cameroon-green: #007A3D;
  --cameroon-red: #CE1126;
  --cameroon-yellow: #FCDD09;
  --warm-brown: #8B4513;
  --earth-orange: #CD853F;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
.font-serif {
  font-family: 'Playfair Display', serif;
}

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

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

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -30px, 0);
  }
  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

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

.animate-slide-in-left {
  animation: slideInFromLeft 0.8s ease-out;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.8s ease-out;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Navbar Styles */
nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition-medium);
}

nav.-translate-y-full {
  transform: translateY(-100%);
}

.nav-link {
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cameroon-green);
  transition: width var(--transition-fast);
}

.dark .nav-link::after {
  background: var(--cameroon-yellow);
}

.nav-link:hover::after,
.nav-link.font-semibold::after {
  width: 100%;
}

/* Button Styles */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  position: relative;
  transition: all var(--transition-medium);
  overflow: hidden;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: white;
  transition: width var(--transition-medium);
  z-index: -1;
}

.btn-secondary:hover::before {
  width: 100%;
}

/* Menu Category Buttons */
.menu-category-btn {
  position: relative;
  transition: all var(--transition-medium);
  border: 2px solid transparent;
}

.menu-category-btn:not(.active):hover {
  border-color: var(--cameroon-green);
  transform: translateY(-2px);
}

.dark .menu-category-btn:not(.active):hover {
  border-color: var(--cameroon-yellow);
}

/* Menu Item Cards */
.menu-item {
  transition: all var(--transition-medium);
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

/* Contact Form Styles */
input[type="text"],
input[type="email"],
textarea {
  transition: all var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Carousel Styles */
.carousel-slide {
  transition: opacity var(--transition-medium);
}

.carousel-indicator {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.2);
}

/* Hero Section Parallax Effect */
#home {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* Scroll Reveal Effects */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

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

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Dark Mode Specific Styles */
.dark .menu-item {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.dark .menu-item:hover {
  background: rgba(31, 41, 55, 0.9);
  border-color: var(--cameroon-yellow);
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.25rem !important;
  }
  
  .section-title {
    font-size: 2.5rem !important;
  }
  
  .menu-item:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem !important;
  }
  
  .section-title {
    font-size: 2rem !important;
  }
  
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus Styles for Better Accessibility */
button:focus,
a:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--cameroon-green);
  outline-offset: 2px;
}

.dark button:focus,
.dark a:focus,
.dark input:focus,
.dark textarea:focus {
  outline-color: var(--cameroon-yellow);
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .menu-item {
    break-inside: avoid;
    margin-bottom: 20px;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .nav-link::after {
    height: 3px;
  }
  
  .menu-item {
    border: 2px solid currentColor;
  }
  
  button {
    border: 2px solid currentColor;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: var(--cameroon-green);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 122, 61, 0.8);
}

.dark ::-webkit-scrollbar-thumb {
  background: var(--cameroon-yellow);
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: rgba(252, 221, 9, 0.8);
}

/* Selection Styles */
::selection {
  background: var(--cameroon-green);
  color: white;
}

.dark ::selection {
  background: var(--cameroon-yellow);
  color: black;
}

/* Utility Classes */
.aspect-video {
  aspect-ratio: 16 / 9;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hover-lift {
  transition: transform var(--transition-fast);
}

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

/* Component-Specific Styles */
.hero-content {
  animation: fadeInUp 1s ease-out;
}

.about-features .feature-item {
  transition: all var(--transition-medium);
}

.about-features .feature-item:hover {
  transform: translateY(-10px);
}

.gallery-overlay {
  background: linear-gradient(45deg, rgba(0, 122, 61, 0.8), rgba(139, 69, 19, 0.8));
}

.contact-form-field {
  position: relative;
}

.contact-form-field label {
  transition: all var(--transition-fast);
  pointer-events: none;
}

.contact-form-field input:focus + label,
.contact-form-field textarea:focus + label,
.contact-form-field input:not(:placeholder-shown) + label,
.contact-form-field textarea:not(:placeholder-shown) + label {
  transform: translateY(-20px);
  font-size: 0.875rem;
  color: var(--cameroon-green);
}