/* Lakshmi Casa Orgánica - Custom Styles */

/* Import Google Fonts for better typography */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2d4a3e;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7a9b88;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Slow pulse for promo bar */
@keyframes pulseSlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

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

/* Shimmer effect for CTA buttons */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Glow pulse animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 167, 134, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 167, 134, 0.8);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

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

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    background-size: 2000px 100%;
    animation: shimmer 3s infinite;
}

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

.animate-slide-right {
    animation: slideInRight 0.8s ease-out forwards;
}

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

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

/* ===== HERO SLIDESHOW STYLES ===== */
.lakshmi-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.lakshmi-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.lakshmi-indicator.active {
    background: white !important;
    width: 24px;
    border-radius: 12px;
}

/* ===== FOOD CAROUSEL STYLES ===== */
.food-indicator.active {
    width: 24px;
    border-radius: 12px;
}

#foodCarouselTrack {
    transition: transform 0.5s ease-in-out;
}

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

/* Enhanced shadows */
.shadow-elegant {
    box-shadow: 0 10px 40px rgba(45, 74, 62, 0.1);
}

/* Subtle animations on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Enhanced button hover */
button:hover, a:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(135deg, #2d4a3e 0%, #c9a786 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pulse animation for trust badges */
@keyframes pulse-soft {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

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

/* Enhanced WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 100;
    animation: pulse-soft 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

/* Card Hover Effects */
.group:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 74, 62, 0.2);
}

/* Button Styles */
button, a.button {
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover, a.button:hover {
    transform: scale(1.05);
}

button:active, a.button:active {
    transform: scale(0.98);
}

/* Form Input Focus Effects */
input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 74, 62, 0.1);
    border-color: #2d4a3e;
}

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

/* Section Padding and Spacing */
section {
    position: relative;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navigation Enhancements */
nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

nav.scrolled {
    background: rgba(45, 74, 62, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Product Cards */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
}

/* Testimonial Cards */
.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 120px;
    color: rgba(45, 74, 62, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Footer Links Hover */
footer a {
    position: relative;
    transition: color 0.3s ease;
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c9a786;
    transition: width 0.3s ease;
}

footer a:hover::after {
    width: 100%;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success Message */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #c3e6cb;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #f5c6cb;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Print Styles */
@media print {
    nav, footer, #scroll-top, button {
        display: none;
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Visible for Keyboard Navigation */
a:focus-visible, button:focus-visible {
    outline: 3px solid #c9a786;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-lakshmi-green {
        background-color: #1a2e26;
    }
    
    .text-lakshmi-green {
        color: #1a2e26;
    }
}

/* 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;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if you want to add dark mode support
    body {
        background-color: #1a1a1a;
        color: #f5f1e8;
    }
    */
}

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, #2d4a3e 0%, #7a9b88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lakshmi {
    box-shadow: 0 10px 40px rgba(45, 74, 62, 0.15);
}

.border-lakshmi {
    border-color: #2d4a3e;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Performance Optimization */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Custom Selection Color */
::selection {
    background: #c9a786;
    color: white;
}

::-moz-selection {
    background: #c9a786;
    color: white;
}