:root {
  --borscht: #8B0000;
  --borscht-light: #DC143C;
  --borscht-dark: #5D1A2E;
  --beet-purple: #722F37;
  --cream: #FFF8DC;
  --cream-light: #FFFEF0;
  --herb-green: #228B22;
  --herb-green-light: #2E8B57;
}

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

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  overflow-x: hidden;
}

.font-display {
  font-family: 'Playfair Display', serif;
}

.font-sans {
  font-family: 'Source Sans 3', sans-serif;
}

.font-caveat {
  font-family: 'Caveat', cursive;
}

.text-borscht { color: var(--borscht); }
.text-borscht-dark { color: var(--borscht-dark); }
.text-cream { color: var(--cream); }
.bg-borscht { background: var(--borscht); }
.bg-cream { background: var(--cream); }

/* Navigation */
.nav-visible {
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.95) 0%, rgba(93, 26, 46, 0.95) 100%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--cream);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--borscht) 0%, var(--beet-purple) 50%, var(--borscht-dark) 100%);
  position: relative;
}

.hero-pattern {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.hero-title {
  text-shadow: 4px 4px 0px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
}

/* Borscht Bowl */
.borscht-bowl {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.bowl-outer {
  background: linear-gradient(180deg, #e8e0d5 0%, #d4ccc1 50%, #c8bfb4 100%);
  box-shadow: 
    inset 0 -10px 30px rgba(0,0,0,0.1),
    0 10px 40px rgba(0,0,0,0.3);
}

.bowl-inner {
  background: linear-gradient(135deg, var(--borscht-light) 0%, var(--borscht) 50%, var(--beet-purple) 100%);
}

.borscht-surface {
  background: 
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 30%),
    linear-gradient(135deg, var(--borscht-light) 0%, var(--borscht) 100%);
}

.sour-cream-dollop {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle at 40% 40%, #ffffff 0%, #f5f5dc 60%, #e8e0d0 100%);
  border-radius: 50% 50% 50% 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: cream-swirl 8s ease-in-out infinite;
}

.dill-garnish {
  width: 40px;
  height: 40px;
  background: repeating-conic-gradient(from 0deg, var(--herb-green) 0deg 30deg, var(--herb-green-light) 30deg 60deg);
  border-radius: 50%;
  opacity: 0.8;
  transform: translate(-20px, -30px);
}

@keyframes cream-swirl {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.05); }
}

/* Steam Animation */
.steam-container {
  top: -20%;
}

.steam {
  position: absolute;
  bottom: 70%;
  width: 8px;
  height: 40px;
  background: linear-gradient(to top, rgba(255,255,255,0.3), transparent);
  border-radius: 50%;
  animation: steam-rise 3s ease-out infinite;
}

@keyframes steam-rise {
  0% {
    opacity: 0;
    transform: translateY(0) scaleY(0.5);
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scaleY(1.5) scaleX(1.5);
  }
}

/* Floating Emojis */
.floating-emoji {
  top: 20%;
  animation: float 4s ease-in-out infinite;
}

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

/* Bounce Arrow */
.bounce-arrow {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

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

.animate-slide-up {
  animation: slideUp 1s ease-out forwards;
}

.animate-slide-up-delay {
  animation: slideUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

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

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

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ingredient Cards */
.ingredient-card {
  background: linear-gradient(135deg, rgba(255,248,220,0.9) 0%, rgba(255,254,240,0.9) 100%);
  border: 1px solid rgba(139,0,0,0.1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ingredient-card:hover {
  box-shadow: 0 8px 30px rgba(139,0,0,0.15);
}

/* Callout Box */
.callout-box {
  background: linear-gradient(135deg, rgba(139,0,0,0.1) 0%, rgba(114,47,55,0.1) 100%);
  border-left: 4px solid var(--borscht);
}

/* Did You Know */
.did-you-know {
  animation: wiggle 3s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-1deg); }
}

/* Recipe Section */
.recipe-section {
  background: linear-gradient(135deg, var(--borscht) 0%, var(--beet-purple) 100%);
}

.recipe-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.recipe-card {
  background: var(--cream);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.step-number {
  background: linear-gradient(135deg, var(--borscht-light) 0%, var(--borscht) 100%);
  box-shadow: 0 4px 15px rgba(139,0,0,0.3);
}

.pro-tip {
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-light) 100%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* History Section */
.history-section {
  background: linear-gradient(180deg, var(--cream) 0%, #f5e6d3 100%);
}

.timeline-dot {
  box-shadow: 0 0 0 4px var(--cream), 0 0 0 8px rgba(139,0,0,0.2);
}

.babusya-quote {
  background: linear-gradient(135deg, rgba(139,0,0,0.08) 0%, rgba(114,47,55,0.08) 100%);
  border: 2px dashed rgba(139,0,0,0.2);
}

/* Variation Cards */
.variation-card {
  min-height: 150px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.variation-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Bowl Builder */
.builder-section {
  background: linear-gradient(135deg, var(--beet-purple) 0%, var(--borscht-dark) 100%);
}

.builder-bowl {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
}

.bowl-base {
  background: linear-gradient(180deg, #f0e6dc 0%, #e0d5ca 50%, #d5cac0 100%);
}

.bowl-soup {
  background: linear-gradient(135deg, var(--borscht-light) 0%, var(--borscht) 100%);
}

.borscht-liquid {
  background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 40%),
    linear-gradient(135deg, #dc143c 0%, #8b0000 100%);
}

.topping-sour-cream {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at 40% 40%, #fff 0%, #f5f5dc 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.topping-dill {
  position: absolute;
  top: 40%;
  left: 60%;
  width: 25px;
  height: 25px;
  background: var(--herb-green);
  border-radius: 50% 0 50% 50%;
  transform: rotate(45deg);
  opacity: 0.9;
}

.topping-garlic {
  position: absolute;
  top: 60%;
  left: 35%;
  width: 15px;
  height: 15px;
  background: #f5f5dc;
  border-radius: 50%;
  box-shadow: 
    8px -5px 0 #f5f5dc,
    -8px -5px 0 #f5f5dc;
}

.animate-swirl {
  animation: swirl 4s ease-in-out infinite;
}

@keyframes swirl {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1) rotate(10deg); }
}

.topping-btn {
  background: rgba(255,255,255,0.1);
  color: var(--cream);
  border: 2px solid transparent;
}

.topping-btn:hover {
  background: rgba(255,255,255,0.15);
}

.topping-btn.active {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}

/* Footer */
.footer-section {
  background: linear-gradient(135deg, var(--borscht-dark) 0%, #3d0f1a 100%);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .floating-emoji {
    font-size: 2rem;
    opacity: 0.4;
  }
  
  .did-you-know {
    display: none;
  }
  
  .timeline-line {
    display: none;
  }
}

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

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

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--borscht) 0%, var(--beet-purple) 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--borscht-dark);
}