:root {
  --bg-color: #050505;
  --surface-color: #111111;
  --brand-yellow: #FFCC00; /* Energetic Poster Yellow */
  --brand-yellow-hover: #e6b800;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --border-color: #222222;
  --danger-color: #FF3B30;
  --success-color: #34C759;
  --card-bg-hover: #1c1d23;
  --badge-bg: #2a2c33;
  --badge-text: #ffffff;
  
  /* Typography */
  --font-family: 'Montserrat', sans-serif;
  --font-secondary: 'Inter', sans-serif;
}

:root[data-theme="light"] {
  --bg-color: #f6f5f3;
  --surface-color: #ffffff;
  --brand-yellow: #a88863;
  --brand-yellow-hover: #c4a47c;
  --text-primary: #111111;
  --text-secondary: #666666;
  --border-color: #e2dfd9;
  --card-bg-hover: #f9f8f6;
  --badge-bg: #eeeeee;
  --badge-text: #111111;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 900;
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-primary);
  text-transform: uppercase;
}

h1 {
  font-size: 3rem;
  color: var(--brand-yellow);
}

h2 {
  font-size: 2rem;
  text-transform: uppercase;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  max-width: 100%; /* Fully edge-to-edge adaptive */
  padding: 0 40px; /* Some breathing room on sides */
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
}

/* Limit Checkout Width on Desktop */
#viewCheckout {
  max-width: 800px;
  margin: 0 auto;
}

/* Modern Header Navigation */
.modern-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 65px;
}

/* Mid Marquee Ticker */
.mid-marquee-container {
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
  background: #000000;
  color: #ffffff;
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mid-marquee-content {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: scrolling 30s linear infinite;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .mid-marquee-container {
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
  }
}

/* Flying Neon Light under Header */
.modern-header::after {
  content: '';
  position: absolute;
  bottom: -1px; /* Align with border */
  left: 0;
  height: 2px;
  background: var(--brand-yellow);
  box-shadow: 0 0 10px var(--brand-yellow), 0 0 20px var(--brand-yellow), 0 0 40px var(--brand-yellow);
  border-radius: 2px;
  animation: neonFly 4s ease-in-out infinite alternate;
}

@keyframes neonFly {
  0% { left: 0; transform: translateX(0); width: 50px; }
  50% { width: 250px; }
  100% { left: 100%; transform: translateX(-100%); width: 50px; }
}

:root[data-theme="light"] .modern-header {
  background: rgba(255, 255, 255, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1050px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
  }
}

.logo {
  font-family: var(--font-family);
  font-weight: 900;
  font-style: italic;
  font-size: 1.8rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.desktop-links {
  display: flex;
  gap: 30px;
}
.desktop-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.desktop-links a:hover {
  color: var(--brand-yellow);
}

.light-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.nav-icon {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--brand-yellow);
}
:root[data-theme="light"] .nav-icon:hover {
  background: rgba(0,0,0,0.05);
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  background: var(--brand-yellow);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Side Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: var(--surface-color);
  z-index: 2000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}
.mobile-drawer.active {
  left: 0;
}
.drawer-header-admin {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brand-yellow);
  margin-bottom: 20px;
  padding: 30px 20px 20px 20px;
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  line-height: 1.2;
  position: relative;
}
.drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px 20px;
  gap: 10px;
}
.drawer-btn {
  padding: 15px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}
.drawer-btn:hover {
  background: rgba(255, 204, 0, 0.1);
  color: var(--brand-yellow);
}
.drawer-btn.active, .drawer-btn-yellow {
  background: var(--brand-yellow);
  color: #000;
}
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-only { display: none; }
@media (max-width: 768px) {
  .desktop-links { display: none; }
  .mobile-only { display: flex; }
}

/* Hero Section Qitchen Style */
.hero-qitchen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 60px;
  position: relative;
}

/* --- NEW 3D HERO SECTION --- */
/* --- NEW ROTATING WHEEL HERO SECTION --- */
.hero-carousel-wrapper {
  position: relative;
  width: calc(100% + 80px);
  margin-left: -40px;
  margin-right: -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0px;
}

#heroSplineContainer {
  width: 100%;
  aspect-ratio: 16 / 8;
  max-height: 800px;
  min-height: 400px;
  display: block;
  position: relative;
  z-index: 5;
  overflow: hidden; /* Needed to crop logo */
}

spline-viewer {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-carousel-wrapper {
    width: calc(100% + 30px);
    margin-left: -15px;
    margin-right: -15px;
  }
  #heroSplineContainer {
    aspect-ratio: 4 / 5;
    min-height: 500px;
  }
}

.hero-carousel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--hero-bg-color, #5e1515);
  background-image: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.5) 100%), 
                    url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q 25 25 50 50 T 100 50" fill="none" stroke="rgba(0,0,0,0.05)" stroke-width="2"/></svg>');
  background-size: cover, 50px 50px;
  transition: background-color 0.8s ease-in-out;
}

.hero-top-center {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
}

.hero-top-line {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* Massive Text - Smaller and Higher */
.hero-massive-title-bg {
  position: absolute;
  top: 100px; /* Tieši zem BITE & GO, kas ir uz 40px */
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-family);
  font-weight: 900;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 10px 20px rgba(0,0,0,0.5);
  line-height: 1.1;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

/* Spinning Wheel Container - Shifted UP for U-shape */
.hero-wheel-container {
  position: absolute;
  top: -65vh; /* Center of circle exactly at top edge, so only bottom half is visible */
  left: 50%;
  transform: translateX(-50%);
  width: 130vh; /* Large circle for shallow curve */
  height: 130vh;
  z-index: 5;
  perspective: 1000px;
  pointer-events: none;
}

/* The Rotating Wooden Board */
.hero-wooden-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1; /* Sits behind the wraps */
  pointer-events: none;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,0.85));
}

.hero-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 2;
  pointer-events: auto;
}

.hero-wheel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45%;
  height: 45%;
  margin-left: -22.5%;
  margin-top: -22.5%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wraps visual styling with premium transitions for active/inactive states */
.hero-wheel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.6)) blur(2px);
  opacity: 0.55;
  transform: scale(0.65); /* Smaller by default */
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), filter 1s ease, opacity 1s ease;
}

/* Active wrap is larger, sharp, and prominent */
.hero-wheel-item.active img {
  transform: scale(1.2); /* Scaled up to be the focal point */
  opacity: 1;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.9)) blur(0px); /* Clean, no blur */
}

/* Position the 3 items around the circle */
.hero-wheel-item.item-0 { transform: rotate(0deg) translateY(52vh); }
.hero-wheel-item.item-1 { transform: rotate(120deg) translateY(52vh); }
.hero-wheel-item.item-2 { transform: rotate(240deg) translateY(52vh); }

/* Slide Info (Bottom) */
.hero-slides-info {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 120px;
  z-index: 10;
}

.hero-slide-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease-in-out;
}

.hero-slide-info.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-name {
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-buy-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 10px 40px;
  border-radius: 50px;
  font-size: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-buy-btn:hover {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
}

/* Navigation Dots */
.hero-nav-dots {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #fff;
  transform: scale(1.5);
}

@media (max-width: 768px) {
  .hero-massive-title-bg {
    font-size: clamp(3rem, 12vw, 4rem);
    top: 20%;
  }
  .hero-wheel-container {
    width: 150vw;
    height: 150vw;
    top: -65vw; /* Center of circle shifted above the screen on mobile */
  }
  .hero-wheel-item {
    width: 50%;
    height: 50%;
    margin-left: -25%;
    margin-top: -25%;
  }
  
  /* Position the 3 items around the circle using vw for mobile responsiveness */
  .hero-wheel-item.item-0 { transform: rotate(0deg) translateY(60vw); }
  .hero-wheel-item.item-1 { transform: rotate(120deg) translateY(60vw); }
  .hero-wheel-item.item-2 { transform: rotate(240deg) translateY(60vw); }

  .hero-nav-dots {
    right: auto;
    bottom: 160px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
  }
  .hero-slides-info {
    bottom: 20px;
  }
}

.hero-zone-badge {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.8);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  z-index: 4;
}

/* Buttons */
.btn {
  background: var(--brand-yellow);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 15px rgba(255, 204, 0, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--brand-yellow);
  border: 2px solid var(--brand-yellow);
}

.btn-secondary:hover {
  background-color: var(--brand-yellow);
  color: #000;
}

/* --- Menu Grid (Bento Box Qitchen Style) --- */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0; /* Remove gap, use borders */
  border: 1px solid var(--border-color); /* Outer wrapper border */
  border-radius: 12px;
  overflow: hidden; /* Keep rounded corners on outer wrapper */
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  margin: -1px 0 0 -1px; /* Overlap borders to create thin 1px lines */
  transition: background-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: rgba(255, 204, 0, 0.03); /* Subtle hover fill */
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 1; /* Perfect square */
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  background-color: #000; /* Dark background for transparent PNGs */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Don't crop, show the whole floating item */
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.05) translateY(-5px); /* Floating hover effect */
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 10px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}

.card-price {
  font-weight: 800;
  color: var(--brand-yellow);
  font-size: 1.1rem;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 15px 0;
  flex-grow: 1;
}

.add-to-cart-wrapper {
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  width: fit-content;
}

.add-to-cart-wrapper button {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.add-to-cart-wrapper button:hover {
  color: var(--brand-yellow);
}

.add-to-cart-wrapper span {
  padding: 0 10px;
  font-weight: 500;
  font-size: 0.9rem;
}

.add-to-cart-btn {
  background: transparent !important;
  color: var(--text-primary) !important;
  font-weight: 500;
  padding: 8px 20px !important;
  border-left: 1px solid var(--border-color) !important;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.add-to-cart-btn:hover {
  background: rgba(255,255,255,0.05) !important;
  color: var(--brand-yellow) !important;
}

/* Large Category Tiles (Modern 3D Vibe) */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
  margin-bottom: 60px;
}

@media (max-width: 1024px) {
  .category-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-tiles {
    grid-template-columns: 1fr;
  }
}

.cat-tile {
  position: relative;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--brand-yellow); /* Šaura dzeltena līnija apkārt */
  background: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.cat-tile:hover {
  transform: scale(1.02); /* Using scale instead of translateY completely prevents flickering! */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 215, 0, 0.2); /* Dzeltens starojums */
  border-color: var(--brand-yellow);
}

.cat-tile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1;
}

.cat-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  z-index: 2;
  transition: background 0.4s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 30px;
}

.cat-tile-overlay h2 {
  color: #fff;
  font-family: var(--font-family);
  font-weight: 900;
  font-style: italic;
  font-size: 2.2rem;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0,0,0,1);
  transition: transform 0.3s, color 0.3s;
}

/* Hover Effects */
.cat-tile:hover .cat-tile-img {
  transform: scale(1.08);
}

.cat-tile:hover .cat-tile-overlay h2 {
  transform: scale(1.05) translateY(-5px);
  color: var(--brand-yellow);
}

.cat-tile:hover .cat-tile-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

/* Zone Cards */
.zone-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px 20px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.zone-card:hover {
  background: rgba(255, 204, 0, 0.1);
  border-color: var(--brand-yellow);
  transform: translateY(-5px);
}

.zone-card h2 {
  color: var(--brand-yellow);
  margin-bottom: 15px;
  font-size: 2rem;
  letter-spacing: 2px;
}

.qitchen-title {
  font-size: 3rem;
  color: var(--text-primary);
  text-align: center;
}

.qitchen-subtitle {
  font-size: 1.5rem;
  text-align: center;
}

/* Cart Float Button */
.cart-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  left: auto;
  transform: none;
  min-width: 300px;
  background-color: var(--brand-yellow);
  color: #000;
  padding: 15px 25px;
  border-radius: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(255, 204, 0, 0.4);
  cursor: pointer;
  z-index: 100;
  text-decoration: none;
  transition: transform 0.2s;
}

.cart-float:hover {
    transform: translateY(-5px) scale(1.02);
}

.cart-float.hidden {
  display: none;
}

@media (max-width: 768px) {
  .cart-float {
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    right: auto;
  }
  .cart-float:hover {
    transform: translateX(-50%) translateY(-5px) scale(1.02);
  }
}

/* Delivery Page (Marupes Pizza x Qitchen) */
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .delivery-grid {
    grid-template-columns: 1fr;
  }
}

.delivery-zones {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.delivery-zone-card {
  background: var(--surface-color);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid var(--border-color);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.delivery-zone-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.delivery-info-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 120px;
}

.info-item i {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
}

.info-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.delivery-map-container {
  background: var(--surface-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  min-height: 400px;
}

.delivery-footer {
  display: flex;
  gap: 20px;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 50px;
}

@media (max-width: 600px) {
  .delivery-footer {
    flex-direction: column;
  }
}

.footer-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
}

.footer-item:first-child {
  border-right: 1px solid var(--border-color);
}

@media (max-width: 600px) {
  .footer-item:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-secondary);
}
/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--border-color);
}

/* Radio button styles for checkout */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.radio-card:hover {
  border-color: var(--brand-yellow);
}

/* Product Configurator Styles */
.config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.config-card {
  position: relative;
  cursor: pointer;
}

.config-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.config-card-inner {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.config-card-inner span:first-child {
  font-family: var(--font-family);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
}

.config-card-inner .price-add {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.config-card input[type="radio"]:checked + .config-card-inner {
  border-color: var(--brand-yellow);
  background: rgba(255, 204, 0, 0.1);
}

.config-card input[type="radio"]:checked + .config-card-inner .price-add {
  color: var(--brand-yellow);
}

.config-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.config-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.config-list-item input[type="checkbox"] {
  margin-right: 15px;
  accent-color: var(--brand-yellow);
  width: 18px;
  height: 18px;
}

.config-list-item:hover {
  border-color: rgba(255, 204, 0, 0.5);
}

.config-list-item:has(input[type="checkbox"]:checked) {
  border-color: var(--brand-yellow);
  background: rgba(255, 204, 0, 0.1);
}

.config-list-item span:nth-of-type(1) {
  flex: 1;
  font-weight: 600;
}

.config-list-item .price-add {
  color: var(--brand-yellow);
  font-weight: 600;
}

/* Massive Footer & Marquee (V9) */
.massive-footer {
  margin-top: 100px;
  background-color: var(--surface-color);
  border-top: 1px solid var(--border-color);
  overflow: hidden;
  position: relative;
}

.marquee-container {
  width: 100%;
  background: var(--brand-yellow);
  color: #000;
  padding: 15px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #000;
}

.marquee-content {
  display: inline-block;
  font-family: var(--font-family);
  font-weight: 900;
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrolling 20s linear infinite;
  white-space: nowrap;
}

@keyframes scrolling {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-info-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-info-label {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand-yellow);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-info-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: var(--text-primary);
  background: var(--bg-color);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.footer-socials a:hover {
  background: var(--brand-yellow);
  color: #000;
  transform: translateY(-3px);
}

.footer-massive-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(3rem, 15vw, 15rem); /* Fits the screen */
  line-height: 0.8;
  text-align: center;
  color: var(--brand-yellow); /* Always yellow */
  width: 100%;
  white-space: nowrap;
  margin-top: 20px;
  margin-bottom: -2vw;
}

.radio-card input[type="radio"] {
  accent-color: var(--brand-yellow);
  width: 18px;
  height: 18px;
}

.radio-card label {
  margin-bottom: 0;
  cursor: pointer;
  flex: 1;
}

/* Out of stock */
.card.out-of-stock {
  opacity: 0.6;
}
.card.out-of-stock img {
  filter: grayscale(100%);
}
.out-of-stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--danger-color);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.8rem;
  z-index: 10;
}
.card {
  position: relative; /* for absolute badge */
}
.form-control {
  width: 100%;
  padding: 15px;
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-yellow);
}

/* Status Badge */
.badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  background-color: var(--badge-bg);
  color: var(--badge-text);
}

.badge.status-pending { background-color: #ff9800; color: #000; }
.badge.status-preparing { background-color: var(--brand-yellow); color: #000; }
.badge.status-ready { background-color: var(--success-color); color: #000; }

/* Views Management */
.view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view.active {
  display: block;
}

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

/* Desktop optimization for Admin panel */
.admin-container {
  max-width: 1200px;
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.order-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
}

.order-card.new-order {
  border-color: var(--brand-yellow);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.order-actions .btn {
  flex: 1;
  padding: 8px;
  font-size: 0.9rem;
}

/* Kanban Mobile Tabs */
.kanban-mobile-tabs {
  display: none;
  gap: 10px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.kanban-tab {
  background: var(--surface-color);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.kanban-tab.active {
  background: var(--brand-yellow);
  color: #000;
  border-color: var(--brand-yellow);
}

@media (max-width: 768px) {
  /* Admin Panel specific mobile tweaks */
  .admin-container .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px;
  }
  .admin-container {
    flex-direction: column;
  }
  .kanban-mobile-tabs {
    display: flex;
  }
  /* On mobile, columns are hidden by default, JS will show the active one */
  .kanban-column {
    display: none;
    min-width: 100%; /* Take full width */
  }
  .kanban-column.active-mobile {
    display: flex;
  }
  .kanban-board {
    flex-direction: column;
    overflow-x: hidden;
  }
  .view-section {
    padding: 15px;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface-color);
  padding: 30px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  border: 1px solid var(--border-color);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .modal-overlay {
    align-items: flex-end; /* Align to bottom on mobile */
  }
  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 20px 20px 0 0; /* Rounded top corners only */
    border: none;
    border-top: 1px solid var(--border-color);
    transform: translateY(100%); /* Start below screen */
    margin: 0;
    padding-bottom: max(30px, env(safe-area-inset-bottom));
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Reviews */
.reviews-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.review-card {
  background: var(--surface-color);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.stars {
  color: var(--brand-yellow);
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.stars i {
  width: 16px;
  height: 16px;
  fill: var(--brand-yellow);
}

.stars-input {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  justify-content: center;
}

.stars-input i {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.stars-input i.active {
  color: var(--brand-yellow);
  fill: var(--brand-yellow);
}

/* Delivery Address Search */
.address-search-bar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  gap: 10px;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.address-search-bar input {
  flex-grow: 1;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 15px;
  color: white;
  font-family: var(--font-family);
  font-size: 1rem;
}

.address-search-bar input:focus {
  outline: none;
  border-color: var(--brand-yellow);
}

/* --- LIGHT MENU VIEW (BITE&GO STYLE) --- */
.light-menu-view {
  background-color: #f8f9fa;
  color: #1a1a1a;
  min-height: 100vh;
  padding-bottom: 100px;
}

.light-menu-header {
  position: sticky;
  top: 65px;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.light-menu-nav {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 20px;
  max-width: 1600px;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.light-menu-nav::-webkit-scrollbar {
  display: none;
}

.light-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: #555;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  min-width: 80px;
  border-bottom: 2px solid transparent;
  padding-bottom: 5px;
}

.light-menu-item i {
  width: 24px;
  height: 24px;
}

.light-menu-item:hover, .light-menu-item.active {
  color: #000;
  border-bottom-color: var(--brand-yellow);
}

.light-menu-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 60px 20px 40px 20px; /* Lielāka atstarpe starp menu un ēdieniem */
}

.light-menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 650px) {
  .light-menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 850px) {
  .light-menu-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .light-menu-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.light-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.light-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.light-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}

.light-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.light-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.light-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #000;
}

.light-card-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.4;
}

.light-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  flex-wrap: wrap; /* Prevent squishing by wrapping when necessary */
  gap: 10px;
}

.light-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #000;
}

.variant-select-wrapper {
  margin-bottom: 15px;
}

.variant-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 5px;
  text-transform: uppercase;
  font-weight: 700;
}

.variant-select {
  width: 100%;
  padding: 10px 15px;
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  transition: border-color 0.2s;
}

.variant-select:focus {
  outline: none;
  border-color: var(--brand-yellow);
}

.btn-light-add {
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 15px; /* Smaller padding to fit standard screens */
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family);
}

.btn-light-add:hover {
  background: var(--brand-yellow);
  color: #000;
}

/* Quantity Selector */
.qty-selector {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  height: 44px; /* Match button height */
}

.qty-selector button {
  background: none;
  border: none;
  color: #555;
  width: 30px;
  height: 100%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.qty-selector button:hover {
  background: #eaeaea;
  color: #000;
}

.qty-selector span {
  font-weight: 700;
  font-size: 1rem;
  width: 30px;
  text-align: center;
  color: #000;
}

.light-category-section {
  margin-bottom: 50px;
}

.light-category-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 30px;
  text-transform: uppercase;
  color: #000;
  border-bottom: 4px solid var(--brand-yellow);
  display: inline-block;
  padding-bottom: 5px;
}

/* --- ABOUT US SECTION --- */
.about-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

@media (min-width: 768px) {
  .about-section {
    flex-direction: row;
  }
  .about-section.reverse {
    flex-direction: row-reverse;
  }
  .about-image-wrapper, .about-text {
    flex: 1;
  }
}

/* Hero Text Overlay */
.hero-overlay-text {
  position: absolute;
  bottom: 40px;
  left: 5%;
  max-width: 400px;
  z-index: 10;
  pointer-events: none; /* Let clicks pass through to Spline if needed */
  padding: 0;
}

.hero-overlay-text h1 {
  color: #fff;
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-overlay-text p {
  color: #eee;
  font-family: var(--font-family);
  font-size: 0.95rem;
  line-height: 1.5;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

.about-image-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--border-color);
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand-yellow);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* --- BLOG SECTION --- */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  border-color: var(--brand-yellow);
}

.blog-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--brand-yellow);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex-grow: 1;
}

/* --- REVIEWS LAYOUT --- */
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.reviews-btn {
  padding: 8px 15px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .reviews-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .reviews-btn {
    width: 100%;
  }
}

/* --- 3D Floating Parallax (Spline Alternative) --- */
.floating-scene {
    width: 100%;
    height: 100%;
    position: relative;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.floating-item-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    animation: floatFloat 6s ease-in-out infinite;
    animation-delay: var(--float-delay);
}

.floating-item-wrapper img {
    width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.6));
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.4s ease;
}

.floating-item-wrapper:hover img {
    transform: scale(1.05) rotateX(0deg) rotateY(0deg) translateY(-10px);
}

.floating-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    animation: shadowFloat 6s ease-in-out infinite;
    animation-delay: var(--float-delay);
    pointer-events: none;
}

@keyframes floatFloat {
    0% { transform: translateY(0px) translateZ(var(--tz)); }
    50% { transform: translateY(-20px) translateZ(var(--tz)); }
    100% { transform: translateY(0px) translateZ(var(--tz)); }
}

@keyframes shadowFloat {
    0% { transform: translateX(-50%) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) scale(0.8); opacity: 0.2; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
}

@media (max-width: 768px) {
    .floating-item-wrapper img {
        width: 220px !important;
    }
    .floating-item-wrapper[style*="--tz: -50px"] { top: 10%; right: 0%; width: 150px !important; }
    .floating-item-wrapper[style*="--tz: 20px"] { bottom: 15%; left: 0%; width: 180px !important; }
    .floating-item-wrapper[style*="--tz: -100px"] { top: 25%; left: 5%; width: 130px !important; }
}

/* --- PHILOSOPHY SECTION (Potato King Inspired) --- */
.philosophy-section {
  background: #111;
  color: #fff;
  padding: 80px 20px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.philosophy-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.philosophy-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 60px;
  text-align: center;
  color: var(--brand-yellow);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--brand-yellow);
}

.feature-icon {
  width: 54px;
  height: 54px;
  color: var(--brand-yellow);
  margin-bottom: 25px;
}

.feature-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.feature-card p {
  color: #ccc;
  line-height: 1.6;
  font-size: 1.15rem;
  margin: 0;
}

/* --- MASSIVE CTA SECTION --- */
.massive-cta-section {
  background: var(--brand-yellow);
  padding: 120px 20px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-scrolling-bg {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-5deg);
  white-space: nowrap;
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  animation: scrollBg 30s linear infinite;
}

@keyframes scrollBg {
  0% { transform: translateY(-50%) rotate(-5deg) translateX(0); }
  100% { transform: translateY(-50%) rotate(-5deg) translateX(-50%); }
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-huge-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  color: #111;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 40px;
  letter-spacing: -2px;
}

.btn-massive-black {
  background: #111;
  color: #fff;
  border: none;
  padding: 20px 40px;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
  text-transform: uppercase;
}

.btn-massive-black:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.btn-massive-black i {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .philosophy-section, .massive-cta-section {
    border-radius: 20px;
  }
}

/* --- LANGUAGE SWITCHER --- */
.lang-switcher {
  display: flex;
  align-items: center;
  margin-right: 15px;
}
.lang-btn {
  background: none;
  border: none;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  padding: 5px;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.lang-btn.active {
  color: var(--brand-black);
}
.lang-btn:hover {
  color: var(--brand-yellow);
}
