/* Custom CSS for SuperFood Website */

:root {
    --primary-green: #198754;
    --light-green: #20c997;
    --dark-green: #146c43;
    --text-dark: #212529;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-green) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(25, 135, 84, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-content h1 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.pulse-btn {
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

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

.animate-text {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon i {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2);
}

/* Product Cards */
.product-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

.price-tag {
    display: flex;
    align-items: center;
}

.add-to-cart {
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.3);
}

/* Benefits Section */
.benefit-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 1s ease forwards;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.2s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.4s;
}

.benefit-item:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Testimonials */
.testimonial-card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-stars {
    font-size: 1.2rem;
}

/* Stats Counter */
.stat-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control {
    border-radius: 10px;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.newsletter-form .input-group {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    overflow: hidden;
    background: white;
}

.newsletter-form .form-control {
    border: none;
    box-shadow: none;
    border-radius: 50px 0 0 50px;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 12px 30px;
}

/* Contact Section */
.contact-info {
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

.contact-icon i {
    transition: all 0.3s ease;
}

.contact-info:hover .contact-icon i {
    transform: scale(1.2);
    color: var(--light-green) !important;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #212529 0%, #1a1d23 100%);
}

.footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--primary-green) !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-green) !important;
    transform: translateY(-3px);
}

/* Cart Button */
.cart-button .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cart-button .btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(25, 135, 84, 0.3);
}

/* Cart Modal */
.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Success Message */
.success-message {
    background: var(--primary-green);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.5s ease forwards;
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .benefit-item {
        margin-bottom: 2rem;
    }
    
    .cart-button {
        margin: 1rem !important;
    }
    
    .cart-button .btn {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .feature-card,
    .product-card,
    .testimonial-card {
        margin-bottom: 2rem;
    }
}