/* ===================================
   Aceternity-Inspired Modern Navbar
   Mobile-First Responsive Design
   =================================== */

/* ===== CSS VARIABLES FOR NAVBAR ===== */
:root {
    --nav-height: 70px;
    --nav-height-scrolled: 60px;
    --nav-blur: 20px;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
    --nav-border: rgba(201, 169, 97, 0.1);
    --menu-transition: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ===== HEADER BASE - GLASSMORPHISM ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    z-index: 9999;
    transition: background 0.4s var(--menu-transition), box-shadow 0.4s var(--menu-transition);
}

.header.scrolled {
    background: var(--nav-bg-scrolled);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Critical: Allow dropdown to overflow header bounds */
.header,
.navbar,
.navbar .container,
.nav-wrapper,
.nav-menu,
.nav-menu > li,
.dropdown {
    overflow: visible !important;
}

/* ===== NAVBAR CONTAINER ===== */
.navbar {
    height: 100%;
    padding: 0;
}

.navbar .container {
    height: 100%;
    max-width: 1400px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    gap: 20px;
}

/* ===== LOGO STYLES ===== */
.logo {
    flex-shrink: 0;
    z-index: 10001;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.header.scrolled .logo-image {
    height: 42px;
}

/* ===== DESKTOP NAVIGATION ===== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

/* ===== NAV LINKS - ACETERNITY STYLE ===== */
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(122, 31, 31, 0.05));
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-menu > li:hover .nav-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Remove old underline effect */
.nav-link::after {
    display: none;
}

/* ===== DROPDOWN MENU - GLASSMORPHISM ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 169, 97, 0.15);
    border-radius: 16px;
    padding: 12px;
    list-style: none;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--menu-transition);
    z-index: 99999;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.95);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(122, 31, 31, 0.08));
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ===== WIDE DROPDOWN FOR PUJA ===== */
.dropdown-menu-wide {
    min-width: 280px;
}

/* ===== HIGHLIGHTED DROPDOWN ITEMS ===== */
.dropdown-highlight a {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(233, 30, 99, 0.08)) !important;
    border: 1px solid rgba(255, 152, 0, 0.2);
    font-weight: 600 !important;
}

.dropdown-highlight a:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(233, 30, 99, 0.15)) !important;
    border-color: rgba(255, 152, 0, 0.4);
}

/* ===== NAVIGATION BADGE ===== */
.nav-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ===== DROPDOWN DIVIDER ===== */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.3), transparent);
    margin: 8px 0;
}

/* ===== MOBILE HIGHLIGHT & BADGE ===== */
.mobile-highlight a {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12), rgba(233, 30, 99, 0.08)) !important;
    border-left: 3px solid #ff9800 !important;
    font-weight: 600 !important;
}

.mobile-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    margin-left: 8px;
}

/* ===== NAV CTA BUTTON ===== */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nav-cta .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

/* Hide Google Translate on smaller screens */
#google_translate_element {
    display: none;
}

@media (min-width: 1200px) {
    #google_translate_element {
        display: inline-block;
    }
}

/* ===== GOOGLE TRANSLATE STYLING ===== */
#google_translate_element select {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

#google_translate_element select:hover {
    background: var(--primary-dark);
}

.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.goog-te-gadget {
    color: transparent !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
}

/* ===== HAMBURGER MENU - MODERN ANIMATED ===== */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10001;
    padding: 10px;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.hamburger:hover {
    background: rgba(201, 169, 97, 0.1);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s var(--menu-transition);
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

/* Hamburger Active State */
.hamburger.active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.hamburger.active span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: all 0.4s var(--menu-transition);
}

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

/* ===== MOBILE NAVIGATION PANEL ===== */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    z-index: 9999;
    overflow-y: auto;
    padding: 100px 30px 30px;
    transition: right 0.5s var(--menu-transition);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
}

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

/* Mobile Nav Header */
.mobile-nav-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    background: rgba(122, 31, 31, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Menu Items */
.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu > li {
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.mobile-menu > li > a,
.mobile-menu > li > .mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-menu > li > a:hover,
.mobile-menu > li > .mobile-dropdown-toggle:hover {
    color: var(--primary-color);
}

.mobile-menu > li > a.active {
    color: var(--primary-color);
}

.mobile-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(180deg);
}

/* Mobile Dropdown Submenu */
.mobile-submenu {
    list-style: none;
    padding: 0 0 15px 20px;
    margin: 0;
    display: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li a {
    display: block;
    padding: 12px 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    padding-left: 15px;
}

.mobile-submenu li a:hover {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Mobile CTA Section */
.mobile-cta {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(201, 169, 97, 0.2);
}

.mobile-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.mobile-cta .btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--dark);
}

.mobile-cta .btn-secondary {
    background: #25d366;
    color: white;
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(201, 169, 97, 0.08);
    border-radius: 16px;
}

.mobile-contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mobile-contact-info p:last-child {
    margin-bottom: 0;
}

.mobile-contact-info i {
    width: 20px;
    color: var(--primary-color);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Desktop - Large */
@media (min-width: 1200px) {
    .nav-menu {
        gap: 10px;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 15px;
    }
}

/* Desktop - Medium */
@media (max-width: 1199px) {
    .nav-menu {
        gap: 4px;
    }

    .nav-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .nav-cta .btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .nav-menu,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0;
    }

    .mobile-nav,
    .mobile-menu-overlay {
        display: block;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --nav-height: 65px;
    }

    .logo-image {
        height: 42px;
        max-width: 160px;
    }

    .nav-wrapper {
        padding: 0 15px;
    }

    .mobile-nav {
        max-width: 100%;
        padding: 90px 25px 25px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    :root {
        --nav-height: 60px;
    }

    .logo-image {
        height: 38px;
        max-width: 140px;
    }

    .nav-wrapper {
        padding: 0 12px;
    }

    .hamburger {
        width: 40px;
        height: 40px;
    }

    .hamburger span {
        width: 22px;
    }

    .mobile-nav {
        padding: 80px 20px 20px;
    }

    .mobile-nav-header {
        padding: 0 20px;
        height: 60px;
    }

    .mobile-menu > li > a,
    .mobile-menu > li > .mobile-dropdown-toggle {
        padding: 15px 0;
        font-size: 15px;
    }

    .mobile-submenu li a {
        padding: 10px 0;
        font-size: 14px;
    }
}

/* Small Mobile */
@media (max-width: 380px) {
    .logo-image {
        height: 34px;
        max-width: 120px;
    }
}

/* ===== BODY SCROLL LOCK ===== */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== FLOATING BUTTONS RESPONSIVE ===== */
@media (max-width: 768px) {
    .floating-contacts {
        bottom: 20px;
        right: 15px;
        gap: 10px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .floating-contacts {
        bottom: 15px;
        right: 12px;
        gap: 8px;
    }

    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
