﻿/* ProductShowcase.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --seed-color: #27ae60;
    --pheromone-color: #e74c3c;
    --solar-color: #f39c12;
    --soil-color: #3498db;
    --bio-color: #8e44ad;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --background-light: #f8f9fa;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-showcase {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-light) 0%, #e9ecef 100%);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

    .product-showcase::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--seed-color), transparent);
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-dark), var(--seed-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

.header-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.decoration-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--seed-color), var(--bio-color));
    border-radius: 2px;
}

.decoration-icon {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

    .product-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--seed-color), var(--bio-color));
        transform: scaleX(0);
        transition: var(--transition);
    }

    .product-card:hover::before {
        transform: scaleX(1);
    }

    .product-card:hover {
        transform: translateY(-15px) scale(1.02);
        box-shadow: 0 25px 60px var(--shadow-medium);
    }

    /* Color Themes */
    .product-card[data-category="seed-production"] {
        border-top: 4px solid var(--seed-color);
    }

        .product-card[data-category="seed-production"] .product-icon {
            background: linear-gradient(135deg, var(--seed-color), #2ecc71);
            box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
        }

    .product-card[data-category="pheromone-trap"] {
        border-top: 4px solid var(--pheromone-color);
    }

        .product-card[data-category="pheromone-trap"] .product-icon {
            background: linear-gradient(135deg, var(--pheromone-color), #e67e22);
            box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
        }

    .product-card[data-category="solar-trap"] {
        border-top: 4px solid var(--solar-color);
    }

        .product-card[data-category="solar-trap"] .product-icon {
            background: linear-gradient(135deg, var(--solar-color), #f1c40f);
            box-shadow: 0 10px 30px rgba(243, 156, 18, 0.3);
        }

    .product-card[data-category="soil-testing"] {
        border-top: 4px solid var(--soil-color);
    }

        .product-card[data-category="soil-testing"] .product-icon {
            background: linear-gradient(135deg, var(--soil-color), #2980b9);
            box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
        }

    .product-card[data-category="bio-products"] {
        border-top: 4px solid var(--bio-color);
    }

        .product-card[data-category="bio-products"] .product-icon {
            background: linear-gradient(135deg, var(--bio-color), #9b59b6);
            box-shadow: 0 10px 30px rgba(142, 68, 173, 0.3);
        }

/* Product Badge */
.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

/* Product Icon */
.product-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2.2rem;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Product Title */
.product-title {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

/* Product Description */
.product-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1rem;
}

/* Product Features */
.product-features {
    margin: 25px 0;
}

    .product-features h4 {
        color: var(--text-dark);
        margin-bottom: 15px;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .product-features ul {
        list-style-type: none;
        padding: 0;
    }

    .product-features li {
        padding: 8px 0;
        padding-left: 28px;
        position: relative;
        color: var(--text-light);
        line-height: 1.5;
        font-size: 0.95rem;
    }

        .product-features li:before {
            content: "✓";
            position: absolute;
            left: 0;
            color: var(--seed-color);
            font-weight: bold;
            font-size: 1.1rem;
        }

    .product-features strong {
        color: var(--text-dark);
    }

/* Product Stats */
.product-stats {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border-left: 4px solid var(--seed-color);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
}

/* Product Button */
.product-btn {
    background: linear-gradient(135deg, var(--soil-color), #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

    .product-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;
    }

    .product-btn:hover::before {
        left: 100%;
    }

    .product-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    }

/* Section Footer */
.section-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.commitment-text {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, var(--seed-color), var(--bio-color));
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
}

    .cta-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(39, 174, 96, 0.4);
    }

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

    .close-modal:hover {
        color: var(--text-dark);
    }

#modal-body {
    padding: 40px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .product-showcase {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .product-card {
        padding: 30px 20px;
    }

    .product-stats {
        flex-direction: column;
        gap: 15px;
    }

    .header-decoration {
        flex-direction: column;
        gap: 10px;
    }

    .decoration-line {
        width: 60px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}
