/* ===== WEBSITE ENHANCEMENT SYSTEM ===== */
/* Global classes for adding life and color to the website */

/* ===== COLOR VARIABLES ===== */
:root {
  /* Syrian Cuisine Inspired Colors */
  --color-saffron: #F4A261;
  --color-paprika: #E76F51;
  --color-mint: #2A9D8F;
  --color-olive: #84A98C;
  --color-tahini: #F2E9E4;
  --color-cumin: #D4A574; /* Your existing primary */
  
  /* Enhancement Gradients */
  --gradient-warm: linear-gradient(135deg, var(--color-saffron), var(--color-paprika));
  --gradient-cool: linear-gradient(135deg, var(--color-mint), var(--color-olive));
  --gradient-accent: linear-gradient(135deg, var(--color-cumin), var(--color-saffron));
  --gradient-soft: linear-gradient(135deg, var(--color-tahini), rgba(244, 162, 97, 0.3));
}

/* ===== FLOATING BACKGROUND ORBS SYSTEM ===== */

.bg-enhanced {
  position: relative;
  overflow: hidden;
}

.bg-enhanced::before,
.bg-enhanced::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
}

/* Warm orbs for food-related sections */
.bg-orbs-warm::before {
  width: 300px;
  height: 300px;
  background: var(--gradient-warm);
  top: -150px;
  right: -150px;
  animation: floatOrb1 20s ease-in-out infinite;
}

.bg-orbs-warm::after {
  width: 200px;
  height: 200px;
  background: var(--color-saffron);
  bottom: -100px;
  left: -100px;
  animation: floatOrb2 25s ease-in-out infinite reverse;
}

/* Cool orbs for location/info sections */
.bg-orbs-cool::before {
  width: 250px;
  height: 250px;
  background: var(--gradient-cool);
  top: -125px;
  left: -125px;
  animation: floatOrb1 22s ease-in-out infinite;
}

.bg-orbs-cool::after {
  width: 180px;
  height: 180px;
  background: var(--color-mint);
  bottom: -90px;
  right: -90px;
  animation: floatOrb2 28s ease-in-out infinite reverse;
}

/* Accent orbs for hero/special sections */
.bg-orbs-accent::before {
  width: 400px;
  height: 400px;
  background: var(--gradient-accent);
  top: -200px;
  right: -200px;
  animation: floatOrb1 30s ease-in-out infinite;
}

.bg-orbs-accent::after {
  width: 150px;
  height: 150px;
  background: var(--color-cumin);
  bottom: -75px;
  left: -75px;
  animation: floatOrb3 18s ease-in-out infinite;
}

/* Multi-orb system for complex sections */
.bg-orbs-multi {
  position: relative;
}

.bg-orbs-multi::before,
.bg-orbs-multi::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
}

.bg-orbs-multi::before {
  width: 350px;
  height: 350px;
  background: var(--gradient-warm);
  top: 10%;
  right: 10%;
  animation: floatOrb1 35s ease-in-out infinite;
}

.bg-orbs-multi::after {
  width: 280px;
  height: 280px;
  background: var(--gradient-cool);
  bottom: 20%;
  left: 15%;
  animation: floatOrb2 40s ease-in-out infinite reverse;
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes floatOrb1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -20px) scale(1.1);
  }
  50% {
    transform: translate(-20px, -40px) scale(0.9);
  }
  75% {
    transform: translate(-40px, 20px) scale(1.05);
  }
}

@keyframes floatOrb2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-25px, 30px) scale(1.15);
  }
  66% {
    transform: translate(40px, -15px) scale(0.85);
  }
}

@keyframes floatOrb3 {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(20px, -30px) scale(1.2) rotate(180deg);
  }
}

/* ===== VISIBLE BORDER EFFECTS SYSTEM ===== */

/* Simple colored borders - more visible */
.border-gradient {
  border: 3px solid var(--color-cumin);
  transition: all 0.3s ease;
  position: relative;
}

.border-gradient:hover {
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 1px var(--color-saffron);
}

.border-warm {
  border: 3px solid var(--color-paprika);
  position: relative;
}

.border-warm:hover {
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 2px rgba(231, 111, 81, 0.3);
}

.border-cool {
  border: 3px solid var(--color-mint);
  position: relative;
}

.border-cool:hover {
  border-color: var(--color-olive);
  box-shadow: 0 0 0 2px rgba(42, 157, 143, 0.3);
}

.border-soft {
  border: 2px solid var(--color-cumin);
  position: relative;
}

.border-soft:hover {
  border-color: var(--color-saffron);
  box-shadow: 0 0 0 1px rgba(244, 162, 97, 0.4);
}

/* Double border effect */
.border-double {
  border: 3px solid var(--color-cumin);
  box-shadow: inset 0 0 0 3px white, inset 0 0 0 6px var(--color-saffron);
}

/* Neon glow border */
.border-neon {
  border: 2px solid var(--color-saffron);
  box-shadow: 
    0 0 5px var(--color-saffron),
    0 0 10px var(--color-saffron),
    0 0 15px var(--color-saffron);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    box-shadow: 
      0 0 5px var(--color-saffron),
      0 0 10px var(--color-saffron),
      0 0 15px var(--color-saffron);
  }
  to {
    box-shadow: 
      0 0 10px var(--color-saffron),
      0 0 20px var(--color-saffron),
      0 0 30px var(--color-saffron);
  }
}

/* Rotating rainbow border */
.border-shimmer {
  position: relative;
  border: 4px solid var(--color-saffron);
  animation: borderColorCycle 4s ease-in-out infinite;
}

@keyframes borderColorCycle {
  0% { border-color: var(--color-saffron); }
  25% { border-color: var(--color-paprika); }
  50% { border-color: var(--color-mint); }
  75% { border-color: var(--color-olive); }
  100% { border-color: var(--color-saffron); }
}

/* Dashed animated border */
.border-dash-animated {
  border: 3px dashed var(--color-cumin);
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  0% { border-color: var(--color-cumin); }
  50% { border-color: var(--color-saffron); }
  100% { border-color: var(--color-cumin); }
}

/* Thicker borders for special elements */
.border-thick {
  border-width: 4px !important;
}

.border-extra-thick {
  border-width: 5px !important;
}

/* ===== ANIMATED BORDERS ===== */
.border-animated {
  position: relative;
  overflow: hidden;
}

.border-animated::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(244, 162, 97, 0.4), 
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.border-animated:hover::before {
  left: 100%;
}

/* ===== ENHANCED GLOW EFFECTS ===== */
.border-glow {
  transition: all 0.3s ease;
  position: relative;
}

.border-glow:hover {
  box-shadow: 
    0 0 20px rgba(244, 162, 97, 0.4),
    0 0 40px rgba(244, 162, 97, 0.2),
    0 4px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.glow-warm:hover {
  box-shadow: 
    0 0 25px rgba(231, 111, 81, 0.5),
    0 0 50px rgba(231, 111, 81, 0.3),
    0 4px 30px rgba(0, 0, 0, 0.15);
}

.glow-cool:hover {
  box-shadow: 
    0 0 25px rgba(42, 157, 143, 0.5),
    0 0 50px rgba(42, 157, 143, 0.3),
    0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Moving gradient border effect */
.border-highlight {
  position: relative;
  border: 4px solid var(--color-saffron);
  background: linear-gradient(45deg, var(--color-saffron), var(--color-paprika), var(--color-mint), var(--color-saffron));
  background-size: 300% 300%;
  animation: gradientShift 3s ease infinite;
}

.border-highlight::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  border-radius: inherit;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Border with shadow pulse */
.border-pulse {
  border: 3px solid var(--color-cumin);
  animation: shadowPulse 2s ease-in-out infinite;
}

@keyframes shadowPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(244, 162, 97, 0);
  }
}

/* Growing border effect */
.border-grow {
  border: 2px solid var(--color-saffron);
  transition: all 0.3s ease;
}

.border-grow:hover {
  border-width: 6px;
  border-color: var(--color-paprika);
}

/* Split color border */
.border-split {
  border-top: 4px solid var(--color-saffron);
  border-right: 4px solid var(--color-paprika);
  border-bottom: 4px solid var(--color-mint);
  border-left: 4px solid var(--color-olive);
  animation: rotateBorder 4s linear infinite;
}

@keyframes rotateBorder {
  0% {
    border-top-color: var(--color-saffron);
    border-right-color: var(--color-paprika);
    border-bottom-color: var(--color-mint);
    border-left-color: var(--color-olive);
  }
  25% {
    border-top-color: var(--color-olive);
    border-right-color: var(--color-saffron);
    border-bottom-color: var(--color-paprika);
    border-left-color: var(--color-mint);
  }
  50% {
    border-top-color: var(--color-mint);
    border-right-color: var(--color-olive);
    border-bottom-color: var(--color-saffron);
    border-left-color: var(--color-paprika);
  }
  75% {
    border-top-color: var(--color-paprika);
    border-right-color: var(--color-mint);
    border-bottom-color: var(--color-olive);
    border-left-color: var(--color-saffron);
  }
  100% {
    border-top-color: var(--color-saffron);
    border-right-color: var(--color-paprika);
    border-bottom-color: var(--color-mint);
    border-left-color: var(--color-olive);
  }
}

/* ===== CARD ENHANCEMENT SYSTEM ===== */

.card-enhanced {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06);
}

.card-hover-lift:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-hover-glow {
  transition: all 0.3s ease;
}

.card-hover-glow:hover {
  box-shadow: 
    0 0 30px rgba(244, 162, 97, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ===== FLOATING ANIMATION FOR CARDS ===== */
.card-floating {
  animation: gentleFloat 6s ease-in-out infinite;
}

.card-floating:nth-child(2n) {
  animation-delay: -2s;
}

.card-floating:nth-child(3n) {
  animation-delay: -4s;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ===== SUBTLE PULSE ANIMATION ===== */
.pulse-subtle {
  animation: pulseSubtle 4s ease-in-out infinite;
}

@keyframes pulseSubtle {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .bg-enhanced::before,
  .bg-enhanced::after {
    filter: blur(40px);
    opacity: 0.06;
  }
  
  .bg-orbs-warm::before,
  .bg-orbs-accent::before {
    width: 200px;
    height: 200px;
  }
  
  .bg-orbs-warm::after,
  .bg-orbs-cool::after {
    width: 150px;
    height: 150px;
  }
  
  .card-hover-lift:hover {
    transform: translateY(-2px) scale(1.01);
  }
}

/* ===== SIMPLE ONE-TIME SCROLL ANIMATION ===== */

.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
}

.scroll-animate.animate-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ===== SYRIAN-INSPIRED SCROLL ANIMATIONS ===== */

/* "Spice Drift" - Float up like aromatic spices */
.scroll-spice-drift {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(2px);
  transition: all 0.8s ease-out;
}

.scroll-spice-drift.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* "Saffron Glow" - Golden reveal effect */
.scroll-saffron-glow {
  opacity: 0;
  transform: scale(0.9);
  box-shadow: 0 0 0 0 rgba(244, 162, 97, 0);
  transition: all 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-saffron-glow.visible {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 30px 5px rgba(244, 162, 97, 0.2);
}

/* "Olive Branch Grow" - Grow from center */
.scroll-olive-grow {
  opacity: 0;
  transform: scale(0.8) rotate(-2deg);
  transform-origin: center bottom;
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-olive-grow.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* "Market Stagger" - Cards appear in sequence */
.scroll-market-stagger {
  opacity: 0;
  transform: translateX(-30px) translateY(20px);
  transition: all 0.6s ease-out;
}

.scroll-market-stagger.visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Add delays for stagger effect */
.scroll-market-stagger:nth-child(1) { transition-delay: 0ms; }
.scroll-market-stagger:nth-child(2) { transition-delay: 150ms; }
.scroll-market-stagger:nth-child(3) { transition-delay: 300ms; }
.scroll-market-stagger:nth-child(4) { transition-delay: 450ms; }
.scroll-market-stagger:nth-child(5) { transition-delay: 600ms; }

/* "Paprika Slide" - Slide in from sides */
.scroll-paprika-slide-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-paprika-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-paprika-slide-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-paprika-slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* "Mint Fresh" - Bounce in effect */
.scroll-mint-bounce {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.scroll-mint-bounce.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* "Cumin Rotation" - Gentle rotation entrance */
.scroll-cumin-rotate {
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-cumin-rotate.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ===== SPECIALIZED EFFECTS ===== */

/* For hero sections */
.scroll-hero-rise {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-hero-rise.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* For gallery items */
.scroll-gallery-reveal {
  opacity: 0;
  transform: translateY(30px);
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: all 0.8s ease-out;
}

.scroll-gallery-reveal.visible {
  opacity: 1;
  transform: translateY(0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* For text sections */
.scroll-text-typewriter {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.scroll-text-typewriter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.scroll-animate,
.scroll-spice-drift,
.scroll-saffron-glow,
.scroll-olive-grow,
.scroll-market-stagger,
.scroll-paprika-slide-left,
.scroll-paprika-slide-right,
.scroll-mint-bounce,
.scroll-cumin-rotate,
.scroll-hero-rise,
.scroll-gallery-reveal,
.scroll-text-typewriter {
  will-change: transform, opacity;
}

.scroll-animate.visible,
.scroll-spice-drift.visible,
.scroll-saffron-glow.visible,
.scroll-olive-grow.visible,
.scroll-market-stagger.visible,
.scroll-paprika-slide-left.visible,
.scroll-paprika-slide-right.visible,
.scroll-mint-bounce.visible,
.scroll-cumin-rotate.visible,
.scroll-hero-rise.visible,
.scroll-gallery-reveal.visible,
.scroll-text-typewriter.visible {
  will-change: auto;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .bg-enhanced::before,
  .bg-enhanced::after,
  .card-floating,
  .pulse-subtle,
  .scroll-fade-up,
  .scroll-fade {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  
  .border-animated::before {
    display: none;
  }
}