/* Enhanced Home Page Styles */

/* Custom CSS Variables for Enhanced Design */
:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --light-green: #E8F5E8;
    --accent-yellow: #FFD700;
    --orange: #FF9800;
    --dark-brown: #3E2723;
    --light-brown: #8D6E63;
    --gradient-primary: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    --gradient-secondary: linear-gradient(135deg, #FF9800 0%, #FFD700 100%);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.2);
}

/* Enhanced Typography */
.enhanced-title {
    background: linear-gradient(135deg, #FFD700, #FF9800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Enhanced Animations */
@keyframes fadeInUp {
    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% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Enhanced Hero Section */
.hero-enhanced {
    position: relative;
    overflow: hidden;
}

.hero-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(46, 125, 50, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.slide-enhanced {
    animation: fadeInUp 1s ease-out;
}

.slide-enhanced.active {
    animation: fadeInUp 1s ease-out;
}

/* Enhanced Buttons */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    background: var(--gradient-secondary);
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary-enhanced {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-secondary-enhanced:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Stats Section */
.stats-enhanced {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.stat-item-enhanced {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.stat-item-enhanced:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
}

.stat-icon-enhanced {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    animation: float 3s ease-in-out infinite;
}

.stat-number-enhanced {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    display: block;
}

.stat-label-enhanced {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Enhanced Slider Navigation */
.slider-nav-enhanced {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
}

.slider-nav-enhanced:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-soft);
}

.slider-nav-enhanced.prev {
    left: 30px;
}

.slider-nav-enhanced.next {
    right: 30px;
}

/* Enhanced Dots */
.slider-dots-enhanced {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.dot-enhanced {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot-enhanced.active {
    background: white;
    transform: scale(1.2);
}

.dot-enhanced::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dot-enhanced.active::after {
    opacity: 1;
}

/* Enhanced Badge */
.badge-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: slideInLeft 1s ease-out 0.5s both;
}

.badge-enhanced i {
    color: #FFD700;
    animation: pulse 2s infinite;
}

/* Enhanced Text Animations */
.text-animate-1 {
    animation: slideInLeft 1s ease-out 0.2s both;
}

.text-animate-2 {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.text-animate-3 {
    animation: slideInRight 1s ease-out 0.6s both;
}

/* Enhanced Gradient Overlays */
.gradient-overlay-1 {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8) 0%, rgba(76, 175, 80, 0.6) 50%, transparent 100%);
}

.gradient-overlay-2 {
    background: linear-gradient(225deg, rgba(76, 175, 80, 0.8) 0%, rgba(46, 125, 50, 0.6) 50%, transparent 100%);
}

.gradient-overlay-3 {
    background: linear-gradient(45deg, rgba(46, 125, 50, 0.9) 0%, rgba(76, 175, 80, 0.7) 30%, rgba(255, 152, 0, 0.3) 100%);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .stat-number-enhanced {
        font-size: 2.5rem;
    }
    
    .slider-nav-enhanced {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slider-nav-enhanced.prev {
        left: 15px;
    }
    
    .slider-nav-enhanced.next {
        right: 15px;
    }
    
    .btn-enhanced {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .stat-item-enhanced {
        padding: 15px 10px;
    }
    
    .stat-icon-enhanced {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-number-enhanced {
        font-size: 2rem;
    }
    
    .badge-enhanced {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Loading animation removed for faster page load */

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: float 2s ease-in-out infinite;
    z-index: 10;
}

/* Enhanced Parallax Effect */
.parallax-enhanced {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced Glassmorphism */
.glass-enhanced {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Additional Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
}

/* Enhanced notification banner */
.notification-banner {
    background: linear-gradient(45deg, #FF9800, #FFD700, #FF9800);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced hover effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Enhanced button animations */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 640px) {
    .hero-enhanced {
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .hero-enhanced .relative.h-screen {
        height: 100vh;
        height: 100dvh;
        min-height: 600px;
    }
    
    .hero-enhanced h1 {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-enhanced p {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .btn-enhanced {
        padding: 10px 20px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .btn-secondary-enhanced {
        padding: 10px 20px;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }
    
    .stat-number-enhanced {
        font-size: 1.75rem;
    }
    
    .stat-label-enhanced {
        font-size: 0.75rem;
    }
    
    .stat-item-enhanced {
        padding: 12px 8px;
    }
    
    .notification-banner {
        padding: 6px 12px;
    }
    
    .notification-banner span {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .notification-banner .flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .badge-enhanced {
        font-size: 0.75rem;
        padding: 6px 12px;
        margin-bottom: 1rem;
    }
    
    .slider-nav-enhanced {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .slider-dots-enhanced {
        bottom: 1rem;
        gap: 8px;
    }
    
    .dot-enhanced {
        width: 8px;
        height: 8px;
    }
    
    .stats-enhanced {
        padding: 1rem 0;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-enhanced h1 {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2;
    }
    
    .hero-enhanced p {
        font-size: 0.875rem !important; /* 14px */
        padding: 0 1rem;
    }
    
    .btn-enhanced, .btn-secondary-enhanced {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .stat-number-enhanced {
        font-size: 1.5rem;
    }
    
    .stat-icon-enhanced {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .notification-banner {
        padding: 4px 8px;
    }
    
    .notification-banner span {
        font-size: 0.7rem;
    }
    
    .slider-nav-enhanced {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

/* Landscape mobile devices */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-enhanced {
        min-height: 100vh;
    }
    
    .hero-enhanced .relative.h-screen {
        height: 100vh;
    }
    
    .stats-enhanced {
        position: relative;
        margin-top: 2rem;
    }
}

/* Tablet responsiveness */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-enhanced h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }
    
    .hero-enhanced p {
        font-size: 1.125rem !important;
    }
    
    .btn-enhanced, .btn-secondary-enhanced {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .stat-number-enhanced {
        font-size: 2.25rem;
    }
}

/* Enhanced accessibility */
.focus-visible:focus {
    outline: 2px solid #FF9800;
    outline-offset: 2px;
}

/* Enhanced loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
/* Mobile-first hero improvements */
.hero-enhanced {
    position: relative;
    background-attachment: scroll; /* Better performance on mobile */
}

/* Mobile slider improvements */
.slider-nav-enhanced {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 640px) {
    .slider-nav-enhanced.prev {
        left: 0.5rem;
    }
    
    .slider-nav-enhanced.next {
        right: 0.5rem;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .hover\:-translate-y-2:hover {
        transform: none;
    }
    
    .hover\:shadow-xl:hover {
        box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    
    .hover\:scale-105:hover {
        transform: none;
    }
}

/* Improved mobile navigation */
@media (max-width: 768px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid #f3f4f6;
        text-align: center;
    }
    
    .nav-cta {
        margin-top: 0.5rem;
        align-self: center;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    .parallax-enhanced {
        transform: none !important;
    }
    
    .hero-enhanced::before {
        display: none; /* Remove complex gradients on mobile for better performance */
    }
}

/* Safe area adjustments for mobile devices with notches */
@supports (padding: max(0px)) {
    .notification-banner {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .hero-enhanced {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
}

/* Improved button spacing on mobile */
@media (max-width: 640px) {
    .flex.flex-col.sm\:flex-row.gap-3 {
        gap: 0.75rem;
    }
    
    .btn-enhanced,
    .btn-secondary-enhanced {
        min-height: 44px; /* Touch-friendly minimum size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Enhanced Product Cards */
.clickable-product {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clickable-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.product-overlay i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-overlay span {
    font-weight: 600;
    font-size: 0.9rem;
}

.clickable-product:hover .product-overlay {
    opacity: 1;
}

.quick-contact-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    transition: all 0.3s ease;
}

.quick-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 2% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: slideInUp 0.3s ease;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.close-modal {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    padding: 30px 20px 20px;
    text-align: center;
    position: relative;
}

.modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.modal-body {
    padding: 30px;
}

.modal-image-container {
    text-align: center;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.modal-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
}

.product-details h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
    font-size: 1.3rem;
    font-weight: 600;
}

.product-details p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    margin-bottom: 20px;
}

.feature-item {
    display: inline-flex;
    align-items: center;
    background: var(--light-green);
    color: var(--primary-green);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 3px;
}

.feature-item i {
    margin-right: 5px;
    font-size: 0.7rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange);
    margin-bottom: 25px;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    border-radius: 15px;
    border: 2px solid var(--orange);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.action-btn {
    padding: 15px 10px;
    border: none;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 80px;
}

.action-btn i {
    font-size: 1.5rem;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.call-btn {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green));
    color: white;
}

.call-btn:hover {
    background: linear-gradient(135deg, var(--primary-green), #1B5E20);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}



/* Modal Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .action-btn {
        flex-direction: row;
        justify-content: center;
        min-height: 50px;
        padding: 12px 20px;
    }
    
    .action-btn i {
        font-size: 1.2rem;
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    .product-price {
        font-size: 1.3rem;
        padding: 12px;
    }
    
    .modal-header {
        padding: 25px 15px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 2% auto;
        border-radius: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-image-container {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .modal-image {
        max-height: 200px;
    }
    
    .product-details h3 {
        font-size: 1.1rem;
    }
    
    .action-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .close-modal {
        right: 15px;
        top: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Enhanced Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .clickable-product {
        margin: 0 auto;
        max-width: 350px;
    }
}

/* Enhanced hover effects for better UX */
.product-card {
    position: relative;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(255, 152, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-img {
    position: relative;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--orange), var(--accent-yellow));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--primary-green);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.product-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Loading states */
.product-card.loading {
    pointer-events: none;
}

.product-card.loading .product-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Accessibility improvements */
.product-card:focus-within {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.action-btn:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Enhanced animations for modal */
.product-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content.animate-in {
    animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Enhanced button styles */
.quick-contact-btn {
    position: relative;
    overflow: hidden;
}

.quick-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.quick-contact-btn:hover::before {
    left: 100%;
}
/* Centered Products Grid - Row Layout with Smart Wrapping */
.products-grid-centered {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 0 20px;
}

.products-grid-centered .product-card {
    flex: 0 0 auto;
    width: 350px;
    min-width: 280px;
    max-width: 400px;
}

/* Keep products in row as long as possible - only wrap when space unavailable */
@media (max-width: 1200px) {
    .products-grid-centered {
        gap: 30px;
    }
    
    .products-grid-centered .product-card {
        width: 320px;
        min-width: 280px;
    }
}

@media (max-width: 900px) {
    .products-grid-centered {
        gap: 25px;
    }
    
    .products-grid-centered .product-card {
        width: 300px;
        min-width: 260px;
    }
}

/* Try to maintain row layout even on smaller screens */
@media (min-width: 641px) and (max-width: 800px) {
    .products-grid-centered {
        gap: 20px;
        padding: 0 15px;
    }
    
    .products-grid-centered .product-card {
        width: calc(50% - 10px);
        min-width: 250px;
        max-width: 300px;
    }
}

/* Only stack vertically on very small screens when row is impossible */
@media (max-width: 640px) {
    .products-grid-centered {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 15px;
    }
    
    .products-grid-centered .product-card {
        width: 100%;
        max-width: 350px;
        min-width: auto;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .products-grid-centered {
        gap: 20px;
        padding: 0 10px;
    }
    
    .products-grid-centered .product-card {
        width: 100%;
        max-width: 100%;
    }
}
/* Force row layout with better flex properties */
.products-grid-centered {
    /* Prevent unnecessary wrapping */
    flex-wrap: nowrap;
}

/* Allow wrapping only when cards would be too small */
@media (max-width: 720px) {
    .products-grid-centered {
        flex-wrap: wrap;
    }
}

/* Optimize for exactly 2 products in a row */
@media (min-width: 641px) {
    .products-grid-centered .product-card {
        flex: 1 1 auto;
        max-width: 45%;
        min-width: 280px;
    }
}

/* Ensure products don't get too small before wrapping */
@media (min-width: 721px) {
    .products-grid-centered {
        flex-wrap: nowrap;
    }
    
    .products-grid-centered .product-card {
        flex: 0 1 350px;
        min-width: 300px;
        max-width: 400px;
    }
}
/* Enhanced View All Products Button */
.view-all-products-btn {
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.3);
}

.view-all-products-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.view-all-products-btn:hover::before {
    left: 100%;
}

.view-all-products-btn:hover {
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.4);
    transform: translateY(-3px) scale(1.05);
}

/* Ensure product cards are properly spaced in centered layout */
.products-grid-centered .product-card {
    margin-bottom: 0;
}

/* Enhanced product card animations */
.product-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for product overlays */
.product-overlay {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.9), rgba(76, 175, 80, 0.8));
    backdrop-filter: blur(5px);
}

.product-overlay i {
    animation: bounceIn 0.5s ease-out 0.2s both;
}

.product-overlay span {
    animation: slideInUp 0.5s ease-out 0.3s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced quick contact button */
.quick-contact-btn {
    position: relative;
    overflow: hidden;
}

.quick-contact-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.quick-contact-btn:hover::after {
    width: 100%;
    height: 100%;
}

/* Ensure all interactive elements have proper cursor */
.clickable-product,
.quick-contact-btn,
.view-all-products-btn {
    cursor: pointer;
}

/* Loading state for buttons */
.quick-contact-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.quick-contact-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Ensure product cards are clickable and not blocked by other elements */
.clickable-product {
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.product-overlay {
    pointer-events: none; /* Allow clicks to pass through to the card */
}

.product-img {
    position: relative;
    z-index: 1;
}

.product-content {
    position: relative;
    z-index: 2;
}

/* Ensure quick contact button is clickable */
.quick-contact-btn {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

/* Debug styles for troubleshooting */
.clickable-product:hover {
    outline: 2px solid rgba(46, 125, 50, 0.3);
}

/* Ensure modal has highest z-index */
.product-modal {
    z-index: 99999 !important;
}

.modal-content {
    z-index: 100000 !important;
}

/* Fix any potential overlay issues */
.products-grid-centered {
    position: relative;
    z-index: 1;
}

/* Ensure no elements are blocking clicks */
* {
    pointer-events: auto;
}

.product-overlay {
    pointer-events: none !important;
}

/* Make sure the entire card area is clickable */
.clickable-product {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}
/* Enhanced Product Click Visual Feedback */
.clickable-product {
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.clickable-product:hover {
    border-color: var(--primary-green);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.2);
}

.clickable-product:active {
    transform: scale(0.98);
}

/* Enhanced Product Overlay with Click Instructions */
.product-overlay {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(76, 175, 80, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.product-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.product-overlay span {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Add click instruction text */
.product-overlay::after {
    content: "View Details • WhatsApp • Call";
    display: block;
    font-size: 0.8rem;
    margin-top: 8px;
    opacity: 0.9;
    font-weight: 400;
}

/* Enhanced Modal Buttons */
.whatsapp-btn, .call-btn {
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before, .call-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.whatsapp-btn:hover::before, .call-btn:hover::before {
    left: 100%;
}

/* Modal Animation Enhancement */
.modal-content {
    animation: modalBounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Product Features Enhancement */
.feature-item {
    background: linear-gradient(135deg, var(--light-green), #f0f8f0);
    border: 1px solid var(--secondary-green);
    animation: slideInRight 0.3s ease-out forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Price Display */
.product-price {
    background: linear-gradient(135deg, #fff9f0, #fff3e0);
    border: 3px solid var(--orange);
    position: relative;
    overflow: hidden;
}

.product-price::before {
    content: '💰';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Click Instruction for Mobile */
@media (max-width: 768px) {
    .product-overlay::after {
        content: "Tap for Details • WhatsApp • Call";
    }
}
/* FORCE MODAL VISIBILITY AND FUNCTIONALITY */
.product-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important;
    backdrop-filter: blur(5px);
}

.product-modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-modal .modal-content {
    background: white !important;
    border-radius: 20px !important;
    max-width: 600px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    position: relative !important;
    animation: modalSlideIn 0.3s ease-out !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Ensure product cards are clickable */
.clickable-product {
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.clickable-product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* Make sure overlay doesn't block clicks */
.product-overlay {
    pointer-events: none !important;
}

/* Ensure buttons work */
.quick-contact-btn {
    z-index: 10 !important;
    position: relative !important;
}

/* Modal header styling */
.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green)) !important;
    color: white !important;
    padding: 20px !important;
    text-align: center !important;
    border-radius: 20px 20px 0 0 !important;
}

.modal-header h2 {
    margin: 0 !important;
    font-size: 1.5rem !important;
}

.modal-category {
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 5px 15px !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    margin-top: 10px !important;
    display: inline-block !important;
}

/* Modal body styling */
.modal-body {
    padding: 20px !important;
}

.modal-image-container {
    text-align: center !important;
    margin-bottom: 20px !important;
    background: #f8f9fa !important;
    padding: 15px !important;
    border-radius: 15px !important;
}

.modal-image {
    max-width: 100% !important;
    max-height: 250px !important;
    object-fit: contain !important;
    border-radius: 10px !important;
}

/* Product details styling */
.product-details h3 {
    color: var(--primary-green) !important;
    margin-bottom: 15px !important;
    font-size: 1.3rem !important;
}

.product-details p {
    color: #666 !important;
    line-height: 1.6 !important;
    margin-bottom: 15px !important;
}

.product-features {
    margin-bottom: 20px !important;
}

.feature-item {
    display: inline-block !important;
    background: var(--light-green) !important;
    color: var(--primary-green) !important;
    padding: 5px 12px !important;
    margin: 3px !important;
    border-radius: 15px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.feature-item i {
    margin-right: 5px !important;
}

.product-price {
    background: linear-gradient(135deg, #fff9f0, #fff3e0) !important;
    border: 2px solid var(--orange) !important;
    padding: 15px !important;
    text-align: center !important;
    border-radius: 15px !important;
    font-size: 1.5rem !important;
    font-weight: bold !important;
    color: var(--orange) !important;
    margin-bottom: 20px !important;
}

/* Modal actions styling */
.modal-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 15px !important;
}

.action-btn {
    padding: 15px 20px !important;
    border: none !important;
    border-radius: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
    font-size: 1rem !important;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white !important;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128C7E, #075E54) !important;
    transform: translateY(-2px) !important;
}

.call-btn {
    background: linear-gradient(135deg, var(--secondary-green), var(--primary-green)) !important;
    color: white !important;
}

.call-btn:hover {
    background: linear-gradient(135deg, var(--primary-green), #1B5E20) !important;
    transform: translateY(-2px) !important;
}

/* Close button styling */
.close-modal {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    color: #333 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
}

.close-modal:hover {
    background: white !important;
    transform: scale(1.1) !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95% !important;
        max-height: 95vh !important;
    }
    
    .modal-actions {
        grid-template-columns: 1fr !important;
    }
    
    .action-btn {
        padding: 12px 15px !important;
    }
}