/* ================================================
   Growth Next Gen - Clean Style Dropdown Menus
   Teal/Turquoise Theme - Modern Dropdown Design
   ================================================ */

/* ===== CSS Variables ===== */
:root {
    --gng-primary: #14b8a6;        
    --gng-primary-dark: #0d9488;   
    --gng-dark: #1e3a3a;          
    --gng-darker: #0f2626;         
    --gng-light: #f0fdfa;          
    --gng-white: #ffffff;
    --gng-text: #1f2937;
    --gng-text-light: #6b7280;
    --gng-border: rgba(255, 255, 255, 0.1);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Header ===== */
.gng-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--gng-dark);
    border-bottom: 1px solid var(--gng-border);
    z-index: 9999;
    transition: all 0.3s ease;
}

.gng-header.gng-scrolled {
    background: var(--gng-darker);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gng-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.gng-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ===== Logo ===== */
.gng-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--gng-white);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.gng-logo a:hover {
    color: var(--gng-primary);
}

.gng-logo img {
    height: 40px;
    width: auto;
}

/* ===== Navigation ===== */
.gng-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 40px;
}

.gng-nav-list {
    display: flex;
    align-items: center;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gng-nav-item {
    position: relative;
}

.gng-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gng-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.gng-nav-link:hover,
.gng-nav-item.gng-active .gng-nav-link {
    color: var(--gng-primary);
}

.gng-dropdown-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.gng-nav-item:hover .gng-dropdown-icon {
    transform: rotate(180deg);
}

/* ===== Dropdown Menu ===== */
.gng-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 320px;
    background: var(--gng-white);
    border-radius: 8px;
    padding: 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9998;
}

/* Two Column Layout for Services */
.gng-dropdown-mega {
    min-width: 750px;
}

.gng-dropdown-mega ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.gng-dropdown-mega a {
    white-space: nowrap;
    padding: 14px 28px;
}

.gng-nav-item:hover .gng-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gng-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 20px 0;
}

.gng-dropdown li {
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}

.gng-dropdown li:last-child {
    border-bottom: none;
}

/* Two column specific - remove border on last items */
.gng-dropdown-mega li:nth-last-child(2),
.gng-dropdown-mega li:last-child {
    border-bottom: none;
}

.gng-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: var(--gng-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    position: relative;
}

.gng-dropdown a i {
    font-size: 16px;
    color: var(--gng-text-light);
    opacity: 1;
    transform: rotate(0deg);
    transition: all 0.3s ease;
}

.gng-dropdown a:hover {
    color: var(--gng-primary);
    background: rgba(20, 184, 166, 0.05);
}

.gng-dropdown a:hover i {
    opacity: 1;
    transform: rotate(-45deg);
    color: var(--gng-primary);
}

/* ===== Header Actions ===== */
.gng-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gng-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--gng-white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gng-menu-toggle:hover {
    background: var(--gng-primary);
    transform: rotate(90deg);
}

.gng-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--gng-primary);
    color: var(--gng-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.gng-connect-btn:hover {
    background: var(--gng-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

.gng-connect-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.gng-connect-btn:hover i {
    transform: translateX(3px);
}

/* ===== Mobile Menu ===== */
.gng-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99998;
}

.gng-mobile-overlay.gng-active {
    opacity: 1;
    visibility: visible;
}

.gng-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    height: 100vh;
    background: var(--gng-darker);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}

.gng-mobile-menu.gng-active {
    right: 0;
}

.gng-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    border-bottom: 1px solid var(--gng-border);
    background: var(--gng-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.gng-mobile-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gng-white);
}

.gng-mobile-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: var(--gng-white);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gng-mobile-close:hover {
    background: var(--gng-primary);
    transform: rotate(90deg);
}

.gng-mobile-nav {
    padding: 20px 0;
}

.gng-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gng-mobile-nav > ul > li {
    border-bottom: 1px solid var(--gng-border);
}

.gng-mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 30px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.gng-mobile-nav a:hover {
    color: var(--gng-primary);
    background: rgba(20, 184, 166, 0.1);
    padding-left: 40px;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .gng-container {
        padding: 0 30px;
    }
    
    .gng-nav-list {
        gap: 35px;
    }
    
    .gng-dropdown-mega {
        min-width: 700px;
    }
}

@media (max-width: 991px) {
    .gng-nav {
        display: none;
    }
    
    .gng-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gng-connect-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .gng-container {
        padding: 0 20px;
    }
    
    .gng-header-wrapper {
        height: 70px;
    }
    
    .gng-logo a {
        font-size: 20px;
    }
    
    .gng-logo img {
        height: 32px;
    }
    
    .gng-connect-btn span {
        display: none;
    }
    
    .gng-connect-btn {
        padding: 12px;
        width: 44px;
        height: 44px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gng-mobile-menu {
        max-width: 100%;
    }
}

/* ===== Scrollbar ===== */
.gng-mobile-menu::-webkit-scrollbar {
    width: 6px;
}

.gng-mobile-menu::-webkit-scrollbar-track {
    background: var(--gng-dark);
}

.gng-mobile-menu::-webkit-scrollbar-thumb {
    background: var(--gng-primary);
    border-radius: 3px;
}

.gng-mobile-menu::-webkit-scrollbar-thumb:hover {
    background: var(--gng-primary-dark);
}

/* ===== Accessibility ===== */
.gng-nav-link:focus,
.gng-dropdown a:focus,
.gng-connect-btn:focus {
    outline: 2px solid var(--gng-primary);
    outline-offset: 4px;
}

/* ===== Body Scroll Lock ===== */
body.gng-no-scroll {
    overflow: hidden;
}

/* ===== Utilities ===== */
.gng-d-none {
    display: none !important;
}

.gng-d-block {
    display: block !important;
}