﻿/* Base Styles */
:root {
    --primary-green: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #4caf50;
    --secondary: #ff9800;
    --secondary-dark: #f57c00;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --gray-text: #666666;
    --light-gray: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.05)" d="M0,0 L100,0 L100,100 Z"/></svg>');
        background-size: cover;
    }

.hero-content {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    min-width: 120px;
}

    .stat:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Category Navigation */
.category-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 40px 0 30px;
}

.category-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    background: var(--white);
    color: var(--dark-text);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .category-btn::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: currentColor;
        display: inline-block;
    }

    .category-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow);
    }

    .category-btn.active {
        color: var(--white);
        border-color: currentColor;
    }

    /* Color coding for categories */
    .category-btn[data-category="all"] {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
    }

    .category-btn[data-category="pulses"] {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        color: white;
    }

    .category-btn[data-category="cereals"] {
        background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
        color: white;
    }

    .category-btn[data-category="fodder"] {
        background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
        color: white;
    }

    .category-btn[data-category="oilseeds"] {
        background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
        color: white;
    }

    .category-btn[data-category="vegetables"] {
        background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
        color: white;
    }

    .category-btn[data-category="quality"] {
        background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
        color: white;
    }

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

    .search-box input {
        width: 100%;
        padding: 15px 20px;
        padding-right: 60px;
        border: none;
        border-radius: 30px;
        background: var(--white);
        font-size: 1rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

        .search-box input:focus {
            outline: none;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

    .search-box button {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
        color: var(--white);
        cursor: pointer;
        transition: var(--transition);
    }

        .search-box button:hover {
            transform: translateY(-50%) scale(1.1);
        }

/* Seasonal Highlight */
.season-highlight {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid var(--secondary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.season-highlight i {
    font-size: 2rem;
    color: var(--secondary-dark);
}

/* Crops Container */
.crops-container {
    padding: 60px 0;
}

.category-content {
    display: none;
}

    .category-content.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
}

    .category-icon.pulses {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    }

    .category-icon.cereals {
        background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    }

    .category-icon.fodder {
        background: linear-gradient(135deg, #5ee7df 0%, #b490ca 100%);
    }

    .category-icon.oilseeds {
        background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    }

    .category-icon.vegetables {
        background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
    }

.category-title {
    font-size: 2.5rem;
    color: var(--dark-text);
    margin-bottom: 5px;
}

.category-subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
}

/* Crops Grid */
.crops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Crop Cards - Different colors for each crop */
.crop-card {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    animation: cardAppear 0.6s ease-out;
}

    .crop-card:nth-child(1) {
        border-color: #f093fb;
    }

    .crop-card:nth-child(2) {
        border-color: #f5576c;
    }

    .crop-card:nth-child(3) {
        border-color: #f6d365;
    }

    .crop-card:nth-child(4) {
        border-color: #5ee7df;
    }

    .crop-card:nth-child(5) {
        border-color: #d299c2;
    }

    .crop-card:nth-child(6) {
        border-color: #89f7fe;
    }

    .crop-card:nth-child(7) {
        border-color: #66a6ff;
    }

    .crop-card:nth-child(8) {
        border-color: #fa709a;
    }

    .crop-card:nth-child(9) {
        border-color: #fee140;
    }

    .crop-card:nth-child(10) {
        border-color: #667eea;
    }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

.crop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #f093fb, #f5576c, #f6d365, #5ee7df, #d299c2);
    background-size: 400% 100%;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.crop-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.crop-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.crop-name {
    font-size: 1.4rem;
    color: var(--dark-text);
    flex: 1;
}

.crop-season-badge {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.crop-desc {
    color: var(--gray-text);
    margin-bottom: 20px;
    line-height: 1.7;
}

.crop-features {
    list-style: none;
}

    .crop-features li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
        color: var(--dark-text);
        font-size: 0.95rem;
    }

    .crop-features i {
        color: var(--primary-green);
        font-size: 1.1rem;
    }

/* Quality Grid */
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.quality-item {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

    .quality-item:hover {
        transform: translateY(-5px);
        border-color: var(--primary-green);
    }

.quality-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.quality-item h3 {
    color: var(--dark-text);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.quality-item p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 15px 0 40px;
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.contact-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

    .contact-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-5px);
    }

    .contact-btn i {
        font-size: 1.5rem;
    }

    .contact-btn div {
        text-align: left;
    }

    .contact-btn span {
        display: block;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .contact-btn small {
        opacity: 0.8;
        font-size: 0.9rem;
    }

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-light));
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: scale(1.1);
    }

/* Notification */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.notification {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--primary-green);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Seasonal Popup */
.season-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
    animation: slideUp 0.5s ease;
    border: 2px solid var(--secondary);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 100%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.season-popup-content {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.season-popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

    .no-results i {
        font-size: 4rem;
        color: var(--primary-light);
        margin-bottom: 20px;
        opacity: 0.5;
    }

    .no-results h3 {
        color: var(--dark-text);
        margin-bottom: 10px;
        font-size: 1.8rem;
    }

    .no-results p {
        color: var(--gray-text);
        font-size: 1.1rem;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat {
        min-width: 100px;
        padding: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .category-nav {
        gap: 8px;
    }

    .category-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .crops-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .quality-grid {
        grid-template-columns: 1fr;
    }
}
