﻿/* Language Switch - Modern, Compact Design */
.lang-switch {
    display: inline-flex;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-radius: 20px;
    padding: 2px;
    margin-right: 15px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.lang-btn {
    padding: 3px 10px;
    border: none;
    border-radius: 18px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .lang-btn:hover {
        color: #2e7d32;
        transform: translateY(-1px);
    }

    .lang-btn.active {
        background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
        color: white;
        box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    }

/* Navigation Links - Smaller, Sleeker */
.navbar-nav .nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-nav .nav-link:hover {
        text-decoration: none;
        color: #4caf50;
    }

    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #4caf50, #66bb6a);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .navbar-nav .nav-link:hover::after {
        width: 70%;
    }

/* Dropdown Menu - Modern, Borderless */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    margin-top: 8px;
    min-width: 220px;
}

.dropdown-item {
    font-size: 13px;
    font-weight: 400;
    padding: 10px 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
}

    .dropdown-item::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 60%;
        background: linear-gradient(90deg, #4caf50, transparent);
        transition: width 0.3s ease;
        opacity: 0.6;
    }

    .dropdown-item:hover {
        text-decoration: none;
        background: linear-gradient(90deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.04));
        color: #4caf50;
    }

        .dropdown-item:hover::before {
            width: 4px;
        }

/* Dropdown Toggle Arrow - Clean and Simple */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    transition: transform 0.3s ease;
}

.nav-item.show .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Submenu - Sleek and Modern */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu .dropdown-menu .dropdown-item {
        position: relative;
        padding-left: 20px;
    }

        .dropdown-submenu .dropdown-menu .dropdown-item::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 60%;
            background: linear-gradient(90deg, #4caf50, transparent);
            transition: width 0.3s ease;
            opacity: 0.6;
        }

        .dropdown-submenu .dropdown-menu .dropdown-item:hover::before {
            width: 4px;
        }

    .dropdown-submenu:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

.dropdown-item.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    position: relative;
}

    .dropdown-item.dropdown-toggle::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 60%;
        background: linear-gradient(90deg, #4caf50, transparent);
        transition: width 0.3s ease;
        opacity: 0.6;
        z-index: 0;
    }

    .dropdown-item.dropdown-toggle:hover::before {
        width: 4px;
    }

    .dropdown-item.dropdown-toggle::after {
        content: '›';
        border: none;
        font-size: 18px;
        font-weight: 300;
        margin-left: 10px;
        flex-shrink: 0;
        transition: transform 0.2s ease;
        z-index: 1;
    }

    .dropdown-item.dropdown-toggle:hover::after {
        transform: translateX(2px);
    }

/* Keep dropdowns open when hovering - Enhanced version */
.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu:hover {
    display: block;
}

/* Enhanced dropdown-submenu behavior */
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

/* Keep parent dropdown-submenu active when hovering over child dropdown-menu */
.dropdown-submenu .dropdown-menu:hover ~ .dropdown-menu,
.dropdown-submenu:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Add visual indicator for active parent */
.dropdown-submenu:hover > .dropdown-toggle {
    color: #4caf50;
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.08), rgba(76, 175, 80, 0.04));
}

    .dropdown-submenu:hover > .dropdown-toggle::before {
        width: 4px;
    }

/* Contact Button - Modern Style */
.btn-outline-primary {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

    .btn-outline-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
    }

/* Topbar Text - Smaller and Cleaner */
.topbar small {
    font-size: 12px;
    font-weight: 400;
}

.topbar .fas {
    font-size: 11px;
    margin-right: 6px;
    opacity: 0.8;
}

/* Back to Top Button - Modern Touch */
#btnBackToTop2 {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    #btnBackToTop2:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    }

/* Smooth animations for all interactive elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        font-size: 14px;
        padding: 10px 0;
    }

    .dropdown-menu {
        box-shadow: none;
        background: #f8f9fa;
    }

    .dropdown-submenu .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        margin-left: 20px;
        margin-top: 8px;
    }
}

/*.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: white;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
}

    .lang-btn.active {
        background: #ffffff;
        color: #84ba3f;
        border-radius: 4px;
    }
*/