/* ========================================
   Enhanced Glass-Morphism Navbar - Final
   ======================================== */

/* Main Header - Transparent Glass Effect */
.navbar-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-glass .main-menu {
    padding: 0;
}

.navbar-glass-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    position: relative;
}

/* Logo - Positioned Left */
.logo-box--glass {
    flex-shrink: 0;
    margin-right: 40px;
    transition: all 0.4s ease;
}

.logo-box--glass img {
    height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

.logo-box--glass a {
    display: block;
    transition: transform 0.3s ease;
}

.logo-box--glass a:hover {
    transform: scale(1.05);
}

/* Menu Items */
.main-menu__list--glass {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1;
    justify-content: center;
}

.navbar-glass .main-menu__list--glass > li {
    position: relative;
}

.navbar-glass .main-menu__list--glass > li > a {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    padding: 12px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
}

/* Enhanced Hover Effect - Smooth Fill Animation */
.navbar-glass .main-menu__list--glass > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    border-radius: 8px;
}

.navbar-glass .main-menu__list--glass > li > a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.navbar-glass .main-menu__list--glass > li:hover > a::before,
.navbar-glass .main-menu__list--glass > li.current > a::before {
    height: 100%;
}

.navbar-glass .main-menu__list--glass > li:hover > a::after {
    width: 300px;
    height: 300px;
}

.navbar-glass .main-menu__list--glass > li > a .menu-text {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.navbar-glass .main-menu__list--glass > li:hover > a .menu-text,
.navbar-glass .main-menu__list--glass > li.current > a .menu-text {
    color: #ffffff;
}

.navbar-glass .main-menu__list--glass > li:hover > a,
.navbar-glass .main-menu__list--glass > li.current > a {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.35);
}

/* Dropdown Menus */
.navbar-glass .main-menu__list--glass ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 10px;
    z-index: 1000;
    border: 1px solid rgba(139, 195, 74, 0.2);
    transform: translateY(-10px);
}

.navbar-glass .main-menu__list--glass li:hover > ul {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    transform: translateY(0);
}

.navbar-glass .main-menu__list--glass ul li {
    padding: 0;
}

.navbar-glass .main-menu__list--glass ul li a {
    padding: 12px 25px;
    display: block;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
    border-radius: 0;
}

.navbar-glass .main-menu__list--glass ul li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(139, 195, 74, 0.15) 0%, rgba(139, 195, 74, 0.05) 100%);
    transition: width 0.3s ease;
    border-radius: 0 8px 8px 0;
}

.navbar-glass .main-menu__list--glass ul li a:hover::before {
    width: 100%;
}

.navbar-glass .main-menu__list--glass ul li a:hover {
    color: #8bc34a;
    padding-left: 35px;
    transform: translateX(5px);
}

/* Right Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

/* Enhanced CTA Button - Matching Get Quote Style */
.navbar-cta-btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    color: #ffffff !important;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.35);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    overflow: hidden;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7cb342 0%, #689f38 100%);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.navbar-cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
}

.navbar-cta-btn:hover::before {
    left: 0;
}

.navbar-cta-btn:hover::after {
    width: 300px;
    height: 300px;
}

.navbar-cta-btn .btn-text,
.navbar-cta-btn .btn-icon {
    position: relative;
    z-index: 2;
}

.navbar-cta-btn .btn-text {
    transition: all 0.3s ease;
}

.navbar-cta-btn .btn-icon {
    font-size: 18px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.navbar-cta-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
}

.navbar-cta-btn:hover .btn-icon {
    transform: translateX(5px) rotate(0deg);
}

.navbar-cta-btn:active {
    transform: translateY(-1px) scale(1);
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-toggle {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 195, 74, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.language-toggle:hover {
    background: #8bc34a;
    border-color: #7cb342;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 195, 74, 0.3);
}

.language-toggle .flag-icon {
    font-size: 18px;
    transition: transform 0.5s ease;
}

.language-toggle .lang-text {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.language-toggle:hover .flag-icon {
    transform: rotate(360deg);
}

.language-toggle:hover .lang-text {
    color: #ffffff;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(139, 195, 74, 0.2);
    transform: translateY(-10px);
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    top: calc(100% + 10px);
    transform: translateY(0);
}

.language-dropdown a {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.language-dropdown a:hover {
    background: rgba(139, 195, 74, 0.15);
    color: #8bc34a;
}

/* Sticky Header */
.navbar-glass-sticky {
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar-glass-wrapper--sticky {
    padding: 12px 0;
}

.navbar-glass-sticky .logo-box--glass img {
    height: 50px;
}

/* Mobile Toggle */
.mobile-nav__toggler {
    display: none;
    font-size: 24px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 8px;
    background: rgba(139, 195, 74, 0.1);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-nav__toggler:hover {
    color: #8bc34a;
    background: rgba(139, 195, 74, 0.2);
    transform: scale(1.1);
}

.mobile-nav__toggler:active {
    transform: scale(0.95);
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 80px 30px 30px;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__list > li {
    border-bottom: 1px solid rgba(139, 195, 74, 0.1);
}

.mobile-menu__list > li > a {
    display: block;
    padding: 15px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu__list > li > a:hover {
    color: #8bc34a;
    padding-left: 10px;
}

.mobile-menu__list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu__list li.active > ul {
    max-height: 500px;
}

.mobile-menu__list ul li a {
    display: block;
    padding: 12px 0 12px 20px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-menu__list ul li a:hover {
    color: #8bc34a;
    padding-left: 30px;
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #2c3e50;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(139, 195, 74, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu__close:hover {
    background: #8bc34a;
    color: #ffffff;
    transform: rotate(90deg);
}

.mobile-menu .navbar-actions {
    margin-top: 30px;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.mobile-menu .navbar-cta-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1199px) {
    .main-menu__list--glass {
        gap: 4px;
    }
    
    .navbar-glass .main-menu__list--glass > li > a {
        font-size: 15px;
        padding: 10px 16px;
    }
    
    .navbar-cta-btn {
        padding: 12px 28px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .main-menu__list--glass,
    .navbar-actions .language-selector {
        display: none !important;
    }
    
    .mobile-nav__toggler {
        display: flex !important;
    }
    
    .logo-box--glass {
        margin-right: 0;
    }
    
    .logo-box--glass img {
        height: 50px;
    }
    
    .navbar-glass-wrapper {
        padding: 15px 0;
    }
    
    .navbar-actions {
        gap: 10px;
    }
    
    .navbar-cta-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .navbar-cta-btn .btn-icon {
        display: none;
    }
}

@media (max-width: 767px) {
    .logo-box--glass img {
        height: 45px;
    }
    
    .navbar-glass-sticky .logo-box--glass img {
        height: 40px;
    }
    
    .navbar-glass-wrapper {
        padding: 12px 0;
    }
    
    .navbar-cta-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .navbar-cta-btn {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
}
