/* Language Menu Styles */
.language-menu {
    display: flex;
    align-items: center;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 48px; /* Touch-friendly tap target */
    min-height: 48px;
}

.language-toggle:active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
}

.language-toggle .flag-icon {
    width: 24px;
    height: 16px;
    display: inline-block;
}

.language-toggle .language-text {
    text-transform: uppercase;
}

.language-dropdown {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    min-width: 120px;
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #1a1a1a;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 44px; /* Touch-friendly tap target */
}

.language-dropdown .dropdown-item:active {
    background-color: #4cb24c;
    color: #fff;
    transform: translateX(2px);
}

.language-dropdown .flag-icon {
    width: 24px;
    height: 16px;
}

/* Header Styles */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: black;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 10px 0;
    border-bottom: 1px solid rgba(200, 36, 36, 0.1);
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.nav-logo {
    width: 60px;
    height: 60px;
    transition: transform 0.3s ease;
    margin-right: 15px;
}

.nav-logo:active {
    transform: rotate(15deg) scale(1.05);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand:active {
    transform: scale(0.95);
}

.nav-brand span.green {
    color: #4cb24c;
}

.nav-brand span.blue {
    color: #3267ea;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-height: 44px; /* Touch-friendly tap target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:active {
    background-color: #fff;
    border-color: #16dc2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-toggler {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 48px;
    min-height: 48px; /* Touch-friendly tap target */
}

.nav-toggler:active {
    color: #4cb24c;
    transform: scale(0.95);
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 5px;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    content: '\f078';
    border: none;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.dropdown-toggle:active::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff; /* White for desktop */
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block; /* Hover for desktop */
    }
}

.nav-item.dropdown.show .dropdown-menu {
    display: block; /* Click/tap for mobile */
}

.dropdown-item {
    color: #1a1a1a;
    text-decoration: none;
    padding: 8px 16px;
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly tap target */
}

.dropdown-item:active {
    background-color: #4cb24c; /* Green on tap */
    color: #fff;
    transform: translateX(2px);
}

/* Footer Styles */
.footer {
    background-color: #1a1a1a;
    padding: 15px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    flex-wrap: wrap;
}

.footer-logo {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.footer-logo:active {
    transform: scale(1.05);
}

.footer-copyright {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    min-height: 44px; /* Touch-friendly tap target */
    display: flex;
    align-items: center;
}

.footer-link:active {
    color: #4cb24c;
}

.footer-social a {
    color: #fff;
    font-size: 1.25rem;
    margin-left: 10px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social a.fa-instagram {
    padding: 5px;
    border-radius: 25%;
    text-align: center;
    width: 30px;
    height: 30px;
    line-height: 20px;
}

.footer-social a.fa-instagram:active {
    background: linear-gradient(45deg, #bc1888, #cc2366, #dc2743, #e6683c, #f09433);
    color: white;
    box-shadow: 0 0 8px #4cb24c;
    transform: translateY(-2px);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .nav-container {
        padding: 0 10px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f8f9fa; /* Light background for mobile */
        flex-direction: column;
        padding: 15px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        margin: 5px 0;
        padding: 10px;
        color: #1a1a1a; /* Dark text for contrast */
        border-color: #4cb24c; /* Green border */
    }

    .nav-link:active {
        background-color: #4cb24c; /* Green on tap */
        border-color: #16dc2c;
        color: #fff;
    }

    .nav-item.dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        background: #f8f9fa; /* Light background for mobile */
        box-shadow: none;
        border-radius: 0;
        width: 100%;
        min-width: 0;
    }

    .dropdown-item {
        text-align: center;
        margin: 5px 0;
        color: #1a1a1a; /* Dark text */
    }

    .language-menu {
        justify-content: center;
        width: auto;
        margin-top: 10px;
    }

    .language-toggle {
        padding: 6px 10px;
        color: #1a1a1a; /* Dark text for light background */
    }

    .language-toggle:active {
        background-color: #4cb24c;
        color: #fff;
    }

    .language-dropdown {
        min-width: 100px;
        background: #f8f9fa; /* Light background */
    }

    .language-dropdown .dropdown-item {
        padding: 6px 12px;
        color: #1a1a1a;
    }

    .language-dropdown .dropdown-item:active {
        background-color: #4cb24c;
        color: #fff;
    }

    .language-dropdown .flag-icon {
        width: 20px;
        height: 14px;
    }

    .nav-toggler {
        display: block; /* Show on mobile */
    }
}

@media (max-width: 576px) {
    .nav-logo {
        width: 40px;
        height: 40px;
    }

    .nav-brand {
        font-size: 1.4rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 8px;
    }

    .nav-toggler {
        font-size: 1.2rem;
    }

    .dropdown-item {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .language-toggle {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .language-toggle .flag-icon {
        width: 18px;
        height: 12px;
    }

    .language-dropdown .dropdown-item {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .language-dropdown .flag-icon {
        width: 18px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .nav-logo {
        width: 35px;
        height: 35px;
    }

    .nav-menu {
        padding: 10px;
    }

    .nav-link {
        font-size: 0.75rem;
        padding: 6px;
    }

    .nav-toggler {
        font-size: 1rem;
    }

    .dropdown-item {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    .language-toggle {
        font-size: 0.75rem;
        padding: 4px 6px;
    }

    .language-toggle .flag-icon {
        width: 16px;
        height: 10px;
    }

    .language-dropdown {
        min-width: 90px;
    }

    .language-dropdown .dropdown-item {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .language-dropdown .flag-icon {
        width: 16px;
        height: 10px;
    }
}

/* Animations */
.nav-link,
.dropdown-item {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smart Scroll Header Enhancements */
.header.hidden {
    transform: translateY(-100%);
}