/* Biteflow Custom Culinary Styles & Animations */
:root {
  --color-terracotta: #CA5C43;
  --color-terracotta-dark: #B24B34;
  --color-terracotta-light: #FAECE7;
  --color-sage: #476C54;
  --color-sage-light: #E8F0EA;
  --color-cream: #F8F6F0;
  --color-cream-card: #FFFFFF;
  --color-charcoal: #1F2421;
  --color-charcoal-muted: #606864;
  --bg-page: #F8F6F0;
  --bg-surface: #FFFFFF;
  --border-subtle: #EADFD5;
}

html.dark {
  --color-cream: #121614;
  --color-cream-card: #1B211E;
  --color-charcoal: #F8F6F0;
  --color-charcoal-muted: #9EABA3;
  --bg-page: #101412;
  --bg-surface: #191F1C;
  --border-subtle: #2A332E;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-charcoal);
  background-color: var(--bg-page);
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Material 3 & Culinary Shadows */
.m3-elevation-1 {
  box-shadow: 0px 1px 3px 1px rgba(31, 36, 33, 0.08), 0px 1px 2px 0px rgba(31, 36, 33, 0.05);
}

.m3-elevation-2 {
  box-shadow: 0px 4px 12px 2px rgba(31, 36, 33, 0.08), 0px 2px 6px 0px rgba(31, 36, 33, 0.04);
}

.m3-elevation-3 {
  box-shadow: 0px 12px 32px 4px rgba(31, 36, 33, 0.10), 0px 4px 12px 0px rgba(31, 36, 33, 0.06);
}

.tactile-hover {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tactile-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0px 16px 36px -4px rgba(202, 92, 67, 0.15), 0px 6px 16px -2px rgba(31, 36, 33, 0.08);
}

/* Realistic Smartphone Device Frame */
.phone-mockup {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 46px;
  background: #111413;
  padding: 11px;
  box-shadow: 0 25px 60px -15px rgba(31, 36, 33, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.phone-screen-container {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #F8F6F0;
  aspect-ratio: 1280 / 2772;
}

.phone-punchhole {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background-color: #050706;
  border-radius: 50%;
  z-index: 30;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  z-index: 20;
}

/* Realistic 11" Tablet Device Frame */
.tablet-mockup {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border-radius: 34px;
  background: #111413;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(31, 36, 33, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.tablet-screen-container {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #F8F6F0;
  aspect-ratio: 1600 / 2560;
}

.tablet-camera {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  background-color: #050706;
  border-radius: 50%;
  z-index: 30;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08);
}

/* Device View Toggle Styles */
.device-toggle-btn {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.device-toggle-btn.active {
  background: #ffffff;
  color: #1a1e1c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .device-toggle-btn.active {
  background: #2C3631;
  color: #f8f6f0;
}

/* Scanning line animation */
@keyframes laserScan {
  0% {
    top: 5%;
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 85%;
    opacity: 0.2;
  }
}

.scan-laser-beam {
  animation: laserScan 2.6s ease-in-out infinite alternate;
}

/* Floating animation */
@keyframes floatSubtle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

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

/* Custom scrollbar for horizontal screen carousels */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Accent Badge glow */
.badge-glow {
  box-shadow: 0 0 16px rgba(202, 92, 67, 0.28);
}

/* Modal styling */
.modal-backdrop {
  backdrop-filter: blur(6px);
  background-color: rgba(31, 36, 33, 0.65);
}
