/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a[href="get-quote.html"]:hover {
    color: #000 !important;
}

.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

/* Button styles in navbar */
.nav-links .btn-primary,
.nav-links .btn-secondary {
    color: #000 !important;
}

.nav-links .btn-primary:hover,
.nav-links .btn-secondary:hover {
    color: #000 !important;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--accent);
}

.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.dropdown-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-dropdown .dropdown-arrow {
    transform: rotate(-90deg);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(90deg);
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: rgba(10, 10, 15, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    min-width: 200px;
    list-style: none !important;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: block !important;
}

.nav-dropdown.open .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu li a:hover {
    background: rgba(0, 255, 148, 0.1);
    color: var(--accent);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
    list-style: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    position: relative;
    padding: 10px;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    pointer-events: none;
}

/* Active Hamburger State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Responsive Navbar */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--border-color);
        padding: 2rem 1rem;
    }

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

    .nav-links a {
        font-size: 1.2rem;
        margin: 0.75rem 0;
        padding: 0.5rem 1rem;
        width: 100%;
        text-align: center;
    }

    /* Mobile Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 1.2rem;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .dropdown-menu {
        position: static !important;
        width: 100%;
        margin-top: 0;
        background: rgba(0, 0, 0, 0.5) !important;
        border: none;
        border-radius: 0;
        list-style: none !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        transform: none !important;
        box-shadow: none;
        padding: 0;
    }

    .nav-dropdown.open .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        max-height: 600px;
        padding: 0.5rem 0;
    }

    .dropdown-menu li {
        list-style: none !important;
    }

    .dropdown-menu li a {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        text-align: left;
    }

    .dropdown-divider {
        margin: 0.5rem 1rem;
    }
}