﻿/* === VARIABLES === */
:root {
    --primary-green: #2e7d32;
    --secondary-green: #388e3c;
    --light-bg: #fdf7ec;
    --hover-green: #81c784;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease-in-out;
}

/* === HEADER STYLES === */
.main-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: linear-gradient(to right, #fdf7ec, #fcf3de);
    box-shadow: var(--shadow);
    padding: 12px 0;
    transition: var(--transition);
}

.navbar {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

    .logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
    }

.logo-img {
    height: 80px;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    animation: logoFadeIn 1.5s ease-out;
}

    .logo-img:hover {
        transform: scale(1.1) rotateZ(-2deg);
        box-shadow: 0 12px 25px rgba(0, 100, 0, 0.25);
    }

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-green);
    font-family: 'Segoe UI', sans-serif;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    align-items: center;
    transition: var(--transition);
}

.nav-link {
    font-size: 16px;
    padding: 10px 15px;
    display: inline-block;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

    .nav-link:hover {
        background: linear-gradient(135deg, #a5d6a7, var(--hover-green));
        color: #ffffff;
        transform: scale(1.08) translateY(-3px);
        box-shadow: 0 6px 15px rgba(0, 128, 0, 0.3);
    }

    .nav-link.active {
        background: linear-gradient(135deg, #a5d6a7, var(--hover-green));
        color: #ffffff;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 20%;
        width: 0;
        height: 3px;
        background-color: var(--secondary-green);
        border-radius: 2px;
        transition: width 0.4s ease;
    }

    .nav-link:hover::after {
        width: 60%;
    }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--primary-green);
        border-radius: 10px;
        transition: var(--transition);
    }

/* === ANIMATIONS === */
@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item {
    animation: slideIn 0.5s ease forwards;
}

    .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-item:nth-child(5) {
        animation-delay: 0.5s;
    }

    .nav-item:nth-child(6) {
        animation-delay: 0.6s;
    }

/* === RESPONSIVE STYLES === */
@media (max-width: 992px) {
    .logo-text {
        font-size: 18px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #f0f4c3;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

        .nav-menu.active {
            left: 0;
        }

    .nav-item {
        width: 100%;
        margin: 5px 0;
    }

    .nav-link {
        padding: 15px;
        width: 100%;
        display: block;
        border-radius: 0;
    }

        .nav-link:hover::after {
            width: 20%;
        }

    .logo-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }

    .logo-text {
        font-size: 14px;
    }

    .main-header {
        padding: 8px 0;
    }
}

/* Menu toggle animation */
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
