/* Global Styles */
:root {
    --primary-color: #28a745;
    --accent-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header/Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand img {
    height: 60px;
}

.navbar-nav .btn {
    padding: 0.5rem 1.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('images/Hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero {
        background-image: url('images/Hero@2x.png');
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 1;
    color: #ffffff;
}

.hero-content .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: none;
}

.hero-content .btn:hover {
    transform: translateY(-2px);
    background-color: #218838;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Welcome Section */
.welcome {
    padding: 100px 0;
    background-color: #ffffff;
}

.welcome h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.welcome .brand-name {
    color: var(--primary-color);
}

.welcome .lead {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome p {
    color: #666;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.welcome img {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.welcome img:hover {
    transform: translateY(-5px);
}

.welcome-text {
    margin-bottom: 2rem;
    text-align: left;
}

.welcome-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.welcome-text p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Features Section */
.features {
    background: url('../images/green-Background-3-boxes.png') center/cover no-repeat;
    padding: 60px 0;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .features {
        background-image: url('../images/green-Background-3-boxes@2x.png');
    }
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

/* Shop by Category Section */
.categories {
    background-color: white;
}

.categories h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.category-box {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    height: 400px;
}

.category-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f8f9fa;
}

.category-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.category-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: var(--primary-color);
}

.category-link i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.category-link:hover i {
    transform: translateX(5px);
}

.category-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .category-box {
        flex-direction: column;
        height: auto;
    }

    .category-content,
    .category-image {
        flex: none;
    }

    .category-content {
        padding: 30px;
    }

    .category-image {
        height: 300px;
    }
}

/* Product Cards */
.products {
    padding: 80px 0;
    background-color: white;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    padding: 20px;
    background-color: #f8f9fa;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.card-body p {
    color: #6c757d;
    margin-bottom: 16px;
    flex-grow: 1;
}

.card-body .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 24px;
    border-radius: 5px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.card-body .btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* Newsletter Section */
.newsletter {
    padding: 60px 0;
    background-color: white;
}

.newsletter h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.newsletter .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    padding: 12px;
    border: 1px solid #ddd;
}

.newsletter .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
}

/* Footer */
.footer {
    background-color: white;
    padding: 80px 0 40px;
    color: var(--text-color);
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color);
}

.company-info {
    font-weight: 500;
    margin-bottom: 10px;
}

.company-address {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.footer p {
    color: #666;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.footer-divider {
    margin: 40px 0;
    border-color: #e9ecef;
}

.footer-bottom {
    color: #666;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-link {
    color: #666;
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-link {
        margin: 10px 15px;
    }
    
    .copyright {
        margin-bottom: 15px;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .welcome h2 {
        font-size: 2rem;
    }

    .category-box {
        flex-direction: column;
        height: auto;
    }

    .category-content,
    .category-image {
        flex: none;
    }

    .category-content {
        padding: 30px;
    }

    .category-image {
        height: 300px;
    }

    .feature-card {
        margin-bottom: 20px;
    }
}

/* Accessibility */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

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

/* Footer Logo */
.footer-logo {
    filter: brightness(0) invert(1);
}

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

img[srcset] {
    width: 100%;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background-color: white;
}

.product-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    overflow: hidden;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; /* 1:1 Aspect Ratio */
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.rating {
    color: #ffc107;
    margin-bottom: 10px;
}

.rating span {
    color: #666;
    margin-left: 5px;
}

.price {
    font-size: 20px;
    color: #28a745;
    font-weight: 600;
    margin-bottom: 15px;
}

.quick-view {
    background-color: white;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-view:hover {
    background-color: #28a745;
    color: white;
    transform: scale(1.05);
}

@media (max-width: 991px) {
    .product-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .featured-products {
        padding: 60px 0;
    }
    
    .product-info h3 {
        font-size: 16px;
    }
    
    .price {
        font-size: 18px;
    }
}

/* Recommended Products Section */
.recommended-products {
    padding: 80px 0;
    background-color: white;
}

.recommended-products h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 40px;
}

.product-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card-large {
    height: 500px;
}

.product-card-small {
    height: 240px;
}

.product-content {
    height: 100%;
    position: relative;
    padding: 40px;
}

.product-text {
    position: relative;
    z-index: 2;
    max-width: 50%;
}

.product-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.product-card-small .product-text h3 {
    font-size: 2rem;
}

.product-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.4;
}

.quick-view-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quick-view-link:hover {
    color: var(--text-color);
}

.quick-view-link i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.quick-view-link:hover i {
    transform: translateX(5px);
}

.product-image-wrapper {
    position: absolute;
    right: 0;
    top: 0;
    width: 60%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Neem card specific styles */
.product-card-large .product-image-overlay {
    background: white;
    padding: 20px;
    border-radius: 20px;
    position: absolute;
    right: -5%;
    bottom: -5%;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Soursop card specific styles */
.product-card-small:first-child .product-image-wrapper {
    width: 50%;
    right: -5%;
}

/* Blue Spirulina card specific styles */
.product-card-small:last-child {
    background-color: white;
}

.product-card-small:last-child .product-image-wrapper {
    width: 45%;
    right: 0;
}

.product-card-small:last-child .product-image {
    transform: scale(1.2);
}

.product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card-large .product-text {
    padding-top: 40px;
}

.product-card-small .product-text {
    padding-top: 20px;
}

@media (max-width: 991px) {
    .product-card-large {
        height: 400px;
    }

    .product-card-small {
        height: 200px;
    }

    .product-text h3 {
        font-size: 2rem;
    }

    .product-card-small .product-text h3 {
        font-size: 1.75rem;
    }

    .product-text p {
        font-size: 1rem;
    }

    .product-content {
        padding: 30px;
    }
}

@media (max-width: 767px) {
    .recommended-products {
        padding: 60px 0;
    }

    .product-card-large,
    .product-card-small {
        height: 300px;
        margin-bottom: 20px;
    }

    .product-text {
        max-width: 60%;
    }

    .product-text h3 {
        font-size: 1.75rem;
    }

    .product-card-small .product-text h3 {
        font-size: 1.5rem;
    }

    .product-image-wrapper {
        width: 45%;
    }
} 