/* ============================================
   Home Page Specific UI Enhancements
   Better Contrast and Visibility
   ============================================ */

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero Section Enhancements */
.hero {
    background: linear-gradient(135deg, #76c043 0%, #5da639 50%, #2d5016 100%);
}

.hero-badge {
    background: rgba(255,255,255,0.95) !important;
    color: #2d5016 !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-title {
    color: #ffffff !important;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.4);
}

.hero-subtitle {
    color: #ffffff !important;
    background: rgba(45, 80, 22, 0.85);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Section Transitions */
section {
    position: relative;
}

/* Benefit Items Hover Effect */
.benefit-item {
    background: #ffffff;
    border-right: 4px solid #76c043;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(118, 192, 67, 0.3);
    border-right-width: 6px;
}

/* Ingredients Hover Effects */
.ingredients-list li {
    transition: all 0.3s ease;
    cursor: pointer;
}

.ingredients-list li:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(118, 192, 67, 0.25);
    background: #e8f5e9;
}

/* Pricing Card Enhancements */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.pricing-card.featured {
    animation: pulse 3s ease-in-out infinite;
}

.pricing-card .select-package {
    background: linear-gradient(135deg, #2d5016 0%, #1a4d2e 100%);
    transition: all 0.3s ease;
}

.pricing-card .select-package:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(118, 192, 67, 0.4);
}

/* Form Enhancements */
.order-form {
    position: relative;
}

.order-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #76c043 0%, #2d5016 100%);
}

.form-group input {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #76c043;
    box-shadow: 0 0 0 3px rgba(118, 192, 67, 0.1);
    background: #ffffff;
}

.form-group input::placeholder {
    color: rgba(45, 80, 22, 0.6);
}

/* Package Option Styling */
.package-option {
    transition: all 0.3s ease;
}

.package-option:hover {
    background: #ffffff;
    border-color: #76c043;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(118, 192, 67, 0.15);
}

.package-option input[type="radio"]:checked + .package-name {
    color: #76c043;
}

/* Submit Button Enhancement */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-submit:hover::after {
    width: 300px;
    height: 300px;
}

/* Sticky CTA Enhancements */
.sticky-cta {
    animation: bounce 2s ease-in-out infinite;
    box-shadow: 0 6px 20px rgba(118, 192, 67, 0.4);
}

.sticky-cta:hover {
    animation: none;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(118, 192, 67, 0.6);
}

/* Gallery Enhancements */
.gallery-item {
    cursor: pointer;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(45, 80, 22, 0.8) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    border-radius: inherit;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Review Card Styling */
.review-card {
    border-bottom: 4px solid transparent;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-bottom-color: #76c043;
}

.review-card .stars {
    letter-spacing: 2px;
}

/* Guarantee Item Icon Transition */
.guarantee-item .icon {
    transition: transform 0.3s ease;
}

.guarantee-item:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #76c043 0%, #2d5016 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-subtitle {
        padding: 0.75rem 1.25rem;
    }
    
    .pricing-card.featured {
        animation: none;
    }
    
    .sticky-cta {
        animation: none;
    }
    
    .benefit-item:hover,
    .package-option:hover {
        transform: none;
    }
}

/* Loading Animation for Images */
.img-loading {
    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; }
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #76c043 0%, #2d5016 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Improved Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus {
    outline: 3px solid rgba(118, 192, 67, 0.5);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: rgba(118, 192, 67, 0.3);
    color: #2d5016;
}

::-moz-selection {
    background: rgba(118, 192, 67, 0.3);
    color: #2d5016;
}

/* Print Styles */
@media print {
    .sticky-cta,
    .order-form,
    .btn-primary {
        display: none !important;
    }
    
    .hero {
        background: white;
        color: black;
    }
    
    * {
        animation: none !important;
        transition: none !important;
    }
}
