/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(2, 4, 5, 0.85);
    /* Slightly more opaque */
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.brand-logo {
    justify-self: start;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-green, #00ff88);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 2rem;
    /* Removed absolute positioning for stability */
    width: max-content;
}

.nav-item {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    color: var(--text-secondary, #9ca3af);
    font-weight: 500;
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--text-primary, #ffffff);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.arrow {
    font-size: 0.7em;
}

.nav-cta {
    padding: 0.6rem 1.5rem;
    background: var(--accent-green);
    /* Solid Green */
    border: none;
    border-radius: 4px;
    color: #000;
    /* Black Text */
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.nav-cta:hover {
    background: #00cc6a;
    /* Darker Green on Hover */
    transform: translateY(-2px);
    color: #000;
}

/* Visibility Utilities */
/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline-flex !important;
    justify-self: end;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary, #ffffff);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* Responsive Header */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.25rem;
    }

    .nav-cta {
        padding: 0.5rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #0B0F0E;
        /* Dark background matching design */
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        /* Left align items */
        padding: 6rem 1.5rem 2rem;


        /* Adjusted padding */
        gap: 0;
        /* Remove gap, handle with padding on items */
        z-index: 9999;
        /* Ensure it stays on top of everything */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        overflow-y: auto;
    }

    /* Green separator line under header */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 5.5rem;
        /* Should sit nicely in the 6rem padding */
        left: 1.5rem;
        right: 1.5rem;
        height: 1px;
        background: rgba(0, 255, 136, 0.3);
        /* Subtle green brand opacity */
        z-index: 10002;
        /* Sit above menu bg, fixed with logo */
        pointer-events: none;
    }






    .nav-links.active {
        transform: translateX(0);
    }


    .brand-logo,
    .mobile-menu-btn {
        position: relative;
        z-index: 10001;
        /* Above menu (9999) + safety margin */
    }






    .nav-links .nav-item {
        width: 100%;
        text-align: left;
        /* Left align text */
        padding: 1rem 0;
        font-size: 1.1rem;
        color: #e5e7eb;
        font-weight: 500;
        display: flex;
        justify-content: flex-start;
        /* Left align content */
        align-items: center;
        gap: 0.5rem;
    }





    .nav-links .dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Left align contents */
    }





    .nav-links .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        /* Text left, arrow right */
        padding: 1rem 0;
        cursor: pointer;
    }



    .nav-links .dropdown-toggle.active .arrow {
        transform: rotate(180deg);
    }

    .arrow {
        transition: transform 0.3s ease;
    }


    .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 2rem;
        padding: 1rem;
        border-radius: 8px;
        font-size: 1rem;
    }



    .mobile-only {
        display: inline-flex !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
        grid-column: 3;
        justify-self: end;
    }

    .brand-logo {
        font-size: 1.25rem;
        grid-column: 1;
    }
}

body.menu-open {
    overflow: hidden;
}


@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .brand-logo {
        font-size: 1.1rem;
    }
}


/* Mega Menu Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0B0F0E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 600px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.dropdown:hover .dropdown-menu {
    display: grid;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-item {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mega-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.mega-menu-title {
    display: block;
    color: var(--accent-green, #00ff88);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-menu-desc {
    display: block;
    color: var(--text-secondary, #9ca3af);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Mobile adjustments for mega menu (simplified for now) */
@media (max-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: none;
    }


    .dropdown-menu {
        position: static;
        transform: none !important;
        /* Lock transform to prevent hover shift */
        width: 100%;
        max-width: none;
        margin: 0.5rem 0 1rem 0;
        display: none;
        flex-direction: column;
        gap: 0.75rem;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        align-items: center;
        /* Keep container centered so full-width items stack */
        text-align: left;
        /* Reset text align for children */



        list-style: none;
        /* Force visibility overrides */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }




    .mega-menu-item {
        background: rgba(255, 255, 255, 0.03) !important;
        /* Dark card background */
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        border-radius: 8px;
        padding: 1rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        /* Left align content inside the box */
        margin: 0;
        text-align: left;
        /* Left align text inside the box */
    }





    .mega-menu-item:hover,
    .mega-menu-item:active {
        background: rgba(255, 255, 255, 0.06) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        opacity: 1;
    }





    .mega-menu-title {
        display: block !important;
        position: relative;
        /* Ensure overlapping works */
        z-index: 10;
        /* Force on top of background */
        font-size: 0.85rem;
        font-weight: 700;
        margin: 0 0 0.25rem 0;
        color: #00ff88 !important;
        text-transform: uppercase;
        line-height: 1.3;
        text-align: left;
        /* Left align title */
        width: 100%;

        opacity: 1 !important;
        visibility: visible !important;
    }











    .mega-menu-desc {
        display: block !important;
        position: relative;
        /* Ensure overlapping works */
        z-index: 10;
        /* Force on top of background */
        font-size: 0.75rem;
        color: #9ca3af !important;
        line-height: 1.4;
        width: 100%;
        text-align: left;
        /* Left align description */
        opacity: 1 !important;

        visibility: visible !important;
    }










}




/* 
   ---------------------------
   Global Modal Styles 
   ---------------------------
*/
.modal-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #0B0F0E;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    z-index: 2001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
    .modal {
        padding: 1.5rem;
        width: 95%;
        border-radius: 12px;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-height: 600px) {
    .modal {
        top: 10px;
        transform: translateX(-50%) scale(1);
        margin-bottom: 2rem;
    }

    .modal.active {
        transform: translateX(-50%) scale(1);
    }
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-header h3 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 1.25rem;
}

.modal-form .form-group label {
    display: block;
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.modal-form .form-group input,
.modal-form .form-group select,
.modal-form .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.modal-form .form-group input:focus,
.modal-form .form-group select:focus,
.modal-form .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green, #00ff88);
    background: rgba(255, 255, 255, 0.05);
}

.modal-form .form-group select option {
    background-color: #0B0F0E;
    color: #ffffff;
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* Global Button Style for Modals */
.btn-primary {
    background: var(--accent-green, #00ff88);
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-body, 'Inter', sans-serif);
}

.btn-primary:hover {
    background: #00cc6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.video-wrapper iframe {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal {
    max-height: 90vh;
    overflow-y: auto;
}

/* Scrollbar for Modals */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: transparent;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Phone Input Styling (Standardized) */
input[type="tel"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ffffff;
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent-green, #00ff88);
    background: rgba(255, 255, 255, 0.05);
}

/* Ensure placeholder color matches other inputs */
input[type="tel"]::placeholder {
    color: #9ca3af;
}