/* Kuafora Site Styles */

/* Typography */
.brand {
  font-family: 'Playfair Display', serif;
}

/* Enhanced body text sizing */
body {
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
}

/* Alternating section backgrounds */
.bg-white-section {
  background: #FFFFFF;
  position: relative;
}

.bg-ayder-section {
  background: #F8FEF9;
  position: relative;
}

/* Zebra backgrounds with subtle enhancements */
.bg-zebra-white {
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  position: relative;
}

.bg-zebra-ayder {
  background: linear-gradient(135deg, #F3FAF2 0%, #F0F8EF 100%);
  position: relative;
}

/* Subtle grid overlay for sections */
.grid-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at center, rgba(79, 121, 66, 0.03) 1px, transparent 1.2px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 1;
}

/* Enhanced hover interactions */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Primary Button - Modern Rounded Style */
.btn-bubble {
  @apply relative inline-flex items-center justify-center font-medium text-white text-base;
  background: linear-gradient(135deg, #4F7942 0%, #5a8a4a 100%);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  box-shadow: 
    0 4px 15px rgba(79, 121, 66, 0.25),
    0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  max-width: 280px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
}

.btn-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-bubble:hover {
  background: linear-gradient(135deg, #42673a 0%, #4F7942 100%);
  box-shadow: 
    0 8px 25px rgba(79, 121, 66, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px) scale(1.02);
}

.btn-bubble:hover::before {
  left: 100%;
}

.btn-bubble:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(79, 121, 66, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-bubble:focus {
  outline: none;
  box-shadow: 
    0 4px 15px rgba(79, 121, 66, 0.25),
    0 2px 5px rgba(0, 0, 0, 0.1),
    0 0 0 4px rgba(79, 121, 66, 0.2);
}

/* Secondary Button - Ghost Style */
.btn-bubble-secondary {
  @apply relative inline-flex items-center justify-center font-medium text-base;
  background: rgba(255, 255, 255, 0.9);
  color: #4F7942;
  border: 2px solid #4F7942;
  border-radius: 50px;
  padding: 10px 24px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 2px 10px rgba(79, 121, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 140px;
  max-width: 280px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
}

/* Responsive button adjustments */
@media (max-width: 640px) {
  .btn-bubble, .btn-bubble-secondary {
    width: 100%;
    max-width: none;
    justify-content: center;
    font-size: 14px;
    padding: 12px 20px;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .btn-bubble, .btn-bubble-secondary {
    min-width: 160px;
    max-width: 220px;
    font-size: 15px;
  }
}

.btn-bubble-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 121, 66, 0.1), transparent);
  transition: left 0.6s ease;
}

.btn-bubble-secondary:hover {
  background: #4F7942;
  color: white;
  border-color: #4F7942;
  box-shadow: 
    0 6px 20px rgba(79, 121, 66, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px) scale(1.02);
}

.btn-bubble-secondary:hover::before {
  left: 100%;
}

.btn-bubble-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 2px 8px rgba(79, 121, 66, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.15);
}

.btn-bubble-secondary:focus {
  outline: none;
  box-shadow: 
    0 2px 10px rgba(79, 121, 66, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 0 0 4px rgba(79, 121, 66, 0.2);
}

/* Compact Button Variants */
.btn-primary {
  @apply inline-flex justify-center items-center font-semibold text-white text-sm;
  background: linear-gradient(135deg, #4F7942 0%, #5a8a4a 100%);
  border: none;
  border-radius: 25px;
  padding: 10px 24px;
  box-shadow: 
    0 2px 8px rgba(79, 121, 66, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  min-width: 120px;
  white-space: nowrap;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #42673a 0%, #4F7942 100%);
  box-shadow: 
    0 4px 15px rgba(79, 121, 66, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px) scale(1.02);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 1px 4px rgba(79, 121, 66, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  @apply inline-flex justify-center items-center font-semibold text-sm;
  background: rgba(255, 255, 255, 0.9);
  color: #4F7942;
  border: 2px solid #4F7942;
  border-radius: 25px;
  padding: 8px 24px;
  backdrop-filter: blur(10px);
  box-shadow: 
    0 1px 6px rgba(79, 121, 66, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  min-width: 120px;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: #4F7942;
  color: white;
  box-shadow: 
    0 3px 12px rgba(79, 121, 66, 0.25),
    0 1px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px) scale(1.02);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 
    0 1px 4px rgba(79, 121, 66, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Clean card hover effects */
.card-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 12px 25px -8px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(79, 121, 66, 0.08);
}

/* Simple badge hover effects */
.badge-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 121, 66, 0.12);
}

/* Navigation styles */
.nav-link {
  @apply hover:text-[#4F7942] transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#4F7942]/40 rounded-md px-3 py-2;
  position: relative;
  text-decoration: none;
  margin: 0 4px;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.active {
  @apply text-[#4F7942] font-medium;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, #4F7942, #5a8a4a);
  border-radius: 1px;
  animation: activeIndicator 0.3s ease-out;
}

@keyframes activeIndicator {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 20px;
    opacity: 1;
  }
}

/* Focus styles for accessibility */
.focus-ring {
  @apply focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#4F7942]/40 focus-visible:ring-offset-2;
}

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

/* Global micro-animations */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.animate-slide-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hover animations for cards and interactive elements */
.animate-hover-lift {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Stagger animation delays */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Accordion animations for working models and FAQ */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.accordion-content.expanded {
  max-height: 500px;
  opacity: 1;
}

.accordion-chevron {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-chevron.rotated {
  transform: rotate(180deg);
}

/* Working models specific accordion styles */
.model-card .transition {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card.expanded .transition {
  transform: rotate(180deg);
}

.model-card .max-h-0 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card.expanded .max-h-0 {
  max-height: 200px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-fade-in,
  .animate-slide-left,
  .animate-slide-right {
    opacity: 1;
    transform: none;
  }
}

/* Enhanced section backgrounds with improved zebra pattern */
.section-bg-white {
  background: 
    linear-gradient(135deg, #ffffff 0%, #fefefe 100%);
  position: relative;
  overflow: hidden;
}

.section-bg-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(79, 121, 66, 0.015) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(79, 121, 66, 0.015) 0%, transparent 60%),
    radial-gradient(circle at center, rgba(79, 121, 66, 0.008) 1px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 30px 30px;
  pointer-events: none;
  z-index: 1;
}

.section-bg-white::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(79, 121, 66, 0.005) 90deg, transparent 180deg, rgba(79, 121, 66, 0.005) 270deg, transparent 360deg);
  animation: rotate 60s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.section-bg-ayder {
  background: 
    linear-gradient(135deg, #F3FAF2 0%, #F0F8EF 100%);
  position: relative;
  overflow: hidden;
}

.section-bg-ayder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 30% 70%, rgba(79, 121, 66, 0.02) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(79, 121, 66, 0.02) 0%, transparent 60%),
    radial-gradient(circle at center, rgba(79, 121, 66, 0.01) 1px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 25px 25px;
  pointer-events: none;
  z-index: 1;
}

.section-bg-ayder::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(79, 121, 66, 0.008) 90deg, transparent 180deg, rgba(79, 121, 66, 0.008) 270deg, transparent 360deg);
  animation: rotate 80s linear infinite reverse;
  pointer-events: none;
  z-index: 1;
}

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

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Modern card design */
.bubble-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  transition: all 0.2s ease;
}

.bubble-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.12);
  border-color: rgba(79, 121, 66, 0.2);
}

.bubble-badge {
  @apply relative inline-flex items-center gap-2 px-4 py-2 text-sm font-medium;
  background: rgba(248, 254, 249, 0.8);
  border: 1px solid rgba(79, 121, 66, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(79, 121, 66, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bubble-badge:hover {
  transform: translateY(-1px);
  background: rgba(248, 254, 249, 0.95);
  box-shadow: 0 4px 12px rgba(79, 121, 66, 0.12);
  border-color: rgba(79, 121, 66, 0.3);
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(1deg); }
  66% { transform: translateY(5px) rotate(-1deg); }
}

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

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 2s;
}

/* Pulse glow effect for important elements */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(79, 121, 66, 0.3); }
  50% { box-shadow: 0 0 30px rgba(79, 121, 66, 0.5), 0 0 40px rgba(79, 121, 66, 0.2); }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Custom scrollbar with bubble design */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(248, 254, 249, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4F7942 0%, #5a8a4a 100%);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #5a8a4a 0%, #4F7942 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
