/* ============================================
   Home Page UI Enhancements
   Enhanced Design with Better Contrast & 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 {
    position: relative;
    overflow: hidden;
}

.hero .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4) !important;
}

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

/* Section Transitions */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-on-scroll:nth-child(even) {
    animation-delay: 0.2s;
}

/* Benefit Items Hover Effects */
.benefit-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 4px 20px rgba(118, 192, 67, 0.3) !important;
    border-right-width: 6px !important;
}

/* Ingredients List Hover */
.ingredients-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(118, 192, 67, 0.25) !important;
    border-color: #2d5016 !important;
}

/* Pricing Cards Enhancement */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2) !important;
}

.pricing-card.featured {
    animation: pulse 3s ease-in-out infinite;
}

.pricing-card .select-package {
    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) !important;
}

/* Form Enhancements - Professional Design */
.order-form {
    position: relative;
}

.order-form .form-group input {
    width: 100%;
    transition: all 0.3s ease;
}

.order-form .form-group input:hover {
    border-color: #76c043 !important;
    background: #ffffff !important;
}

.order-form .form-group input:focus {
    border-color: #76c043 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(118, 192, 67, 0.1) !important;
    outline: none;
}

.order-form .form-group label {
    transition: color 0.3s ease;
}

.order-form .form-group:focus-within label {
    color: #76c043 !important;
}

/* Package Options Styling - Professional */
.package-option {
    transition: all 0.3s ease;
    cursor: pointer;
}

.package-option:hover {
    background: #ffffff !important;
    border-color: #76c043 !important;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(118, 192, 67, 0.15);
}

.package-option:has(input[type="radio"]:checked) {
    background: #ffffff !important;
    border-color: #76c043 !important;
    border-width: 3px !important;
    box-shadow: 0 4px 15px rgba(118, 192, 67, 0.2);
}

.package-option input[type="radio"]:checked + .package-name-text {
    font-weight: 700;
    color: #2d5016;
}

/* Submit Button Enhancement */
.order-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(118, 192, 67, 0.4) !important;
}

.order-form .btn-submit:active {
    transform: translateY(-1px);
}

/* Sticky CTA Enhancement */
.sticky-cta {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #76c043 0%, #5da639 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 6px 20px rgba(118, 192, 67, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
    height: fit-content;
}

.sticky-cta:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(118, 192, 67, 0.6);
    text-decoration: none;
    color: #ffffff;
}

/* Gallery Enhancements */
.gallery-grid img {
    transition: all 0.4s ease;
}

.gallery-grid > div:hover img {
    transform: scale(1.1);
}

/* Review Cards */
.review-card {
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 6rem;
    color: rgba(118, 192, 67, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* Guarantee Items */
.guarantee-item .icon {
    transition: all 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-badge {
        font-size: 0.9rem !important;
        padding: 0.6rem 1.5rem !important;
    }
    
    .hero .btn-primary {
        font-size: 1.2rem !important;
        padding: 1rem 2rem !important;
    }
    
    /* Order Form Mobile Styles */
    .order-form {
        padding: 3rem 0 !important;
    }
    
    .order-form > div > div:first-child {
        margin-bottom: 2rem !important;
    }
    
    .order-form > div > div:nth-child(2) {
        padding: 2rem 1.5rem !important;
    }
    
    /* Stack columns on mobile */
    .order-form form > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .order-form h3 {
        font-size: 1.15rem !important;
    }
    
    .order-form .form-group input {
        padding: 0.9rem 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .order-form .package-option {
        padding: 0.85rem 1rem !important;
        flex-wrap: wrap;
    }
    
    .order-form .package-option span:last-child {
        width: 100%;
        text-align: right;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid #e9ecef;
    }
    
    .order-form .btn-submit {
        font-size: 1.15rem !important;
        padding: 1rem 1.5rem !important;
    }
    
    .order-form .selected-package-summary {
        padding: 1rem !important;
    }
    
    .sticky-cta {
        bottom: 15px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
    
    .sticky-cta:hover {
        transform: translateX(-50%) translateY(-5px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .order-form form {
        padding: 1.25rem;
    }
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

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

/* Enhanced Button Styles */
button, .btn, a.btn-primary {
    cursor: pointer;
    user-select: none;
}

button:active, .btn:active, a.btn-primary:active {
    transform: scale(0.95);
}

/* Improved Focus States for Accessibility */
*:focus-visible {
    outline: 3px solid #76c043;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .sticky-cta,
    .order-form,
    footer {
        display: none;
    }
}
