@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

* {
  font-family: 'Cairo', sans-serif;
  scroll-behavior: smooth;
  box-sizing: border-box;
}

:root {
  --gold: #D4A017;
  --amber: #C8942E;
  --honey: #F5D76E;
  --dark-brown: #3E2723;
  --warm-white: #FFF8E1;
  --light-cream: #FFFDE7;
  --warm-brown: #8D6E63;
  --light-gold: #F9E7B3;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background-color: var(--warm-white);
  color: var(--dark-brown);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(62, 39, 35, 0.85) 0%,
    rgba(62, 39, 35, 0.5) 50%,
    rgba(212, 160, 23, 0.3) 100%
  );
}

.nav-link {
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to left, #D4A017, #F5D76E);
  transition: width 0.3s;
}

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

.section-title {
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(to left, #D4A017, #F5D76E);
  margin: 12px auto 0;
  border-radius: 2px;
}

.category-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 160, 23, 0.2);
}

.product-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(62, 39, 35, 0.1);
  border-color: #F5D76E;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gradient-gold {
  background: linear-gradient(135deg, #D4A017, #F5D76E, #C8942E);
}

.gradient-dark {
  background: linear-gradient(135deg, #3E2723 0%, #5D4037 100%);
}

.gradient-cream {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFFDE7 100%);
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

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

.scale-in {
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade-up {
  animation: fadeUp 0.8s ease-out;
}

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

.honey-drip {
  position: relative;
}

.honey-drip::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 40px;
  background: linear-gradient(to bottom, #D4A017, #F5D76E);
  border-radius: 0 0 15px 15px;
  opacity: 0.5;
}

.bg-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='%23d4a017' fill-opacity='0.05'%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");
}

.hexagon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

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

.sub-nav-link {
  transition: all 0.3s;
  border-bottom: 2px solid transparent;
}

.sub-nav-link:hover,
.sub-nav-link.active {
  color: #D4A017;
  border-bottom-color: #D4A017;
}

.hero-dots button {
  transition: all 0.3s;
}

.hero-dots button.active {
  background: #D4A017;
  width: 32px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFF8E1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #D4A017, #C8942E);
  border-radius: 4px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #FFF8E1;
  border-top: 4px solid #D4A017;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.animate-spin-slow {
  animation: spin 12s linear infinite;
}

/* Honeycomb background pattern */
.bg-honeycomb {
  background-color: #FFF8E1;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='86' viewBox='0 0 100 86' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0l50 28.87v57.74L50 86 0 72.61V28.87z' fill='%23d4a017' fill-opacity='0.04'/%3E%3C/svg%3E");
  background-size: 80px 69px;
}

.bg-honeycomb-dark {
  background-color: #3E2723;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='86' viewBox='0 0 100 86' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0l50 28.87v57.74L50 86 0 72.61V28.87z' fill='%23d4a017' fill-opacity='0.08'/%3E%3C/svg%3E");
  background-size: 60px 52px;
}

/* Hero slides with CSS gradients instead of images */
.hero-slide-1 {
  background: linear-gradient(135deg, #3E2723 0%, #5D4037 30%, #C8942E 60%, #D4A017 100%);
}

.hero-slide-2 {
  background: linear-gradient(135deg, #2D1B16 0%, #4E342E 30%, #8D6E63 60%, #F5D76E 100%);
}

.hero-slide-3 {
  background: linear-gradient(135deg, #3E2723 0%, #6D4C41 30%, #B8860B 60%, #FFD54F 100%);
}

/* Honey comb decorative element */
.honey-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.honey-badge::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: #D4A017;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.15;
  transform: scale(1.3);
}

/* Gradient hero backgrounds for honey themes */
.gradient-hero-1 {
  background: linear-gradient(160deg, #2D1B16 0%, #3E2723 25%, #5D4037 50%, #8D6E63 75%, #C8942E 100%);
}

.gradient-hero-2 {
  background: linear-gradient(160deg, #1A0E0B 0%, #3E2723 30%, #6D4C41 60%, #D4A017 100%);
}

.gradient-hero-3 {
  background: linear-gradient(160deg, #2D1B16 0%, #4E342E 35%, #B8860B 65%, #F5D76E 100%);
}

/* Honey drip SVG decoration */
.honey-drip-decoration {
  background: linear-gradient(180deg, transparent 0%, transparent 60%, #D4A017 60%, #F5D76E 80%, transparent 100%);
  height: 6px;
  width: 100%;
}

/* Hexagon icon container */
.hex-icon {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.4s;
}

.hex-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Beekeeping themed SVG patterns */
.bg-bees {
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='60' cy='60' r='3' fill='%23d4a017' fill-opacity='0.08'/%3E%3C/svg%3E");
}

/* Floating honey particles */
.honey-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #D4A017;
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 4s ease-in-out infinite;
}

@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 0.6; }
}

/* Honey jar SVG background replacement */
.honey-jar-bg {
  background: linear-gradient(145deg, #FFD54F, #FF8F00);
  position: relative;
  overflow: hidden;
}

.honey-jar-bg::before {
  content: '\f0fc';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  font-size: 120px;
  color: rgba(255,255,255,0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Bee icon decorative element */
.bee-deco {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Seamless background for product categories */
.bg-wax {
  background: linear-gradient(135deg, #FFF8E1 0%, #FFE0B2 50%, #FFCC80 100%);
}

.bg-honey-gold {
  background: linear-gradient(135deg, #D4A017 0%, #F5D76E 50%, #FFD54F 100%);
}

/* Decorative divider */
.divider-gold {
  height: 4px;
  background: linear-gradient(to left, transparent, #D4A017, #F5D76E, #D4A017, transparent);
  border: none;
  margin: 0;
}

/* Contact form styles */
.form-input {
  transition: all 0.3s;
  border: 2px solid transparent;
}

.form-input:focus {
  border-color: #D4A017;
  box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.1);
  outline: none;
}

/* ===== MODERN DESIGN ADDITIONS ===== */

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(62, 39, 35, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 160, 23, 0.15);
}

.glass-gold {
  background: rgba(212, 160, 23, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 160, 23, 0.2);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #D4A017, #F5D76E, #FFD54F);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-warm {
  background: linear-gradient(135deg, #D4A017, #C8942E, #8D6E63);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Modern card with glow */
.card-glow {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card-glow:hover::before {
  opacity: 1;
}

.card-glow:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(212, 160, 23, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Modern button style */
.btn-modern {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-modern:hover::after {
  opacity: 1;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 160, 23, 0.3);
}

/* Section reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Staggered grid items */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth image hover zoom */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Gradient border */
.border-gradient {
  border: double 1px transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #D4A017, #F5D76E);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.border-gradient-gold {
  position: relative;
}

.border-gradient-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, #D4A017, #F5D76E, #C8942E);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Animated gradient for hero */
.hero-gradient-animated {
  background: linear-gradient(135deg, #3E2723, #5D4037, #8D6E63, #C8942E, #D4A017, #F5D76E);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* Floating badge */
.badge-float {
  animation: badgeFloat 3s ease-in-out infinite;
}

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

/* Pulse glow */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(212, 160, 23, 0.1); }
  50% { box-shadow: 0 0 40px rgba(212, 160, 23, 0.2); }
}

/* Shimmer effect for cards */
.shimmer {
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  100% { left: 100%; }
}

/* Counter number style */
.counter-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #D4A017, #F5D76E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

/* Modern nav underline */
.nav-underline {
  position: relative;
}

.nav-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #D4A017;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-underline:hover::after,
.nav-underline.active::after {
  width: 100%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  animation: scrollIndicator 2s ease-in-out infinite;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollIndicator {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes scrollDot {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* Product image container */
.product-img-container {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}

.product-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-img-container:hover img {
  transform: scale(1.08);
}

.product-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62,39,35,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-img-container:hover::after {
  opacity: 1;
}

/* Stat tile modern */
.stat-tile {
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #D4A017, #F5D76E);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-tile:hover::before {
  transform: scaleX(1);
}

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

/* Bounce on scroll */
.bounce-in {
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== BLEND MODAL ===== */
.blend-step { display: none; }
.blend-step.active { display: block; }

.blend-addon-card {
  border: 2px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}
.blend-addon-card:hover { border-color: #D4A017; background: #FFF8E1; }
.blend-addon-card.selected { border-color: #D4A017; background: #FFF8E1; box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.15); }
.blend-addon-card .check-mark { display: none; position: absolute; top: 8px; left: 8px; width: 24px; height: 24px; background: #D4A017; border-radius: 50%; color: white; align-items: center; justify-content: center; font-size: 12px; }
.blend-addon-card.selected .check-mark { display: flex; }

.honey-type-btn {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}
.honey-type-btn:hover { border-color: #D4A017; background: #FFF8E1; }
.honey-type-btn.selected { border-color: #D4A017; background: #FFF8E1; box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.2); }

.size-btn {
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}
.size-btn:hover { border-color: #D4A017; color: #B8860B; }
.size-btn.selected { border-color: #D4A017; background: #D4A017; color: white; }
