﻿/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    color: #fff;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Logo ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 2rem;
}

    .logo img {
        height: 80px;
        width: 80px;
    }

/* ===== Navigation ===== */
nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

    nav a,
    .dropbtn {
        color: #fff;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 8px 14px;
        border-radius: 6px;
        position: relative;
        transition: color 0.3s, transform 0.3s;
        cursor: pointer;
    }

        nav a:hover,
        .dropbtn:hover {
            color: #ffe5ec;
            transform: scale(1.05);
        }

/* ===== Dropdown ===== */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 220px;
    top: 100%;
    left: 0;
    border-radius: 10px;
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.35s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

    /* Different colors for dropdown items */
    .dropdown-content a {
        display: block;
        padding: 12px 18px;
        font-size: 1rem;
        font-weight: 500;
        transition: padding-left 0.3s, background 0.3s;
        color: #fff;
    }

        .dropdown-content a.seeds {
            background: linear-gradient(135deg, #43cea2, #185a9d); /* Green-Blue */
        }

        .dropdown-content a.fertilizers {
            background: linear-gradient(135deg, #f7971e, #ffd200); /* Orange-Yellow */
        }

        .dropdown-content a.crop {
            background: linear-gradient(135deg, #f00000, #dc281e); /* Red */
        }

        .dropdown-content a.bio {
            background: linear-gradient(135deg, #56ab2f, #a8e063); /* Green */
        }

        .dropdown-content a:hover {
            padding-left: 24px;
            filter: brightness(1.1);
        }

/* Show dropdown */
.dropdown.show .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== Mobile Toggle ===== */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

/* ===== Mobile Styles ===== */
@media (max-width: 900px) {
    nav {
        display: none;
        flex-direction: column;
        background: linear-gradient(135deg, #ff4e78, #ff7aa9);
        width: 100%;
        margin-top: 15px;
        padding: 15px;
        border-radius: 12px;
    }

        nav.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        nav a,
        .dropbtn {
            font-size: 1.1rem;
            width: 100%;
            text-align: left;
        }

    .dropdown-content {
        position: relative;
        min-width: 100%;
        border-radius: 8px;
        margin-top: 8px;
    }

    .menu-toggle {
        display: block;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
