:root {
    --cosmic-green: #00ff88;
    --dark-cosmic: #0a1a0f;
    --cosmic-glow: rgba(0, 255, 136, 0.3);
    --cosmic-bg: #0f2419;
    --cosmic-text: #e8f5e8;
    --cosmic-accent: #34d399;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 26, 15, 0.9);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.9rem;
    font-weight: 750;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, var(--cosmic-green) 0%, var(--cosmic-accent) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    filter: drop-shadow(0 0 0 transparent);
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 10px var(--cosmic-glow));
}

.logo img {
    height: 60px;
    transition: all 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
    filter: brightness(1.2) contrast(1.1);
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cosmic-green);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--cosmic-green);
}

.nav-links a:hover {
    color: var(--cosmic-green);
    text-shadow: 0 0 10px var(--cosmic-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Active link highlighting */
.nav-links a.active {
    color: var(--cosmic-green);
}

.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 26, 15, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 220px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
}

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

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(0, 255, 136, 0.1);
    border-left-color: var(--cosmic-green);
    color: var(--cosmic-green);
    padding-left: 1.75rem;
}

.dropdown-menu a::after {
    display: none;
}

.nav-cta,
.nav-cta1 {
    color: #000000;
    padding: 0.9rem 3.5rem !important;
    /* MUCH WIDER */
    border: none;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s ease;
    font-size: 1.05rem;
    /* Slightly larger text */
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    text-shadow: none;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.3);
    background: linear-gradient(135deg, #00ff88 0%, #34d399 100%);
    white-space: nowrap;
    margin-left: 1.5rem;
    /* More spacing from other links */
    min-width: 160px;
    /* Minimum width to ensure it's never too small */
    display: inline-block;
}

.nav-cta::before,
.nav-cta1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
    z-index: 0;
}

.nav-cta::after,
.nav-cta1::after {
    display: none !important;
}

.nav-cta:hover,
.nav-cta1:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    background: linear-gradient(135deg, #34d399 0%, #00ff88 100%);
    color: #000000;
}

.nav-cta:hover::before,
.nav-cta1:hover::before {
    left: 100%;
}


/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.mobile-menu-btn:hover {
    color: var(--cosmic-green);
    transform: scale(1.1);
}

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

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 26, 15, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 0.5rem;
        display: none;
        backdrop-filter: blur(20px);
        z-index: 999;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        border-bottom: 1px solid rgba(0, 255, 136, 0.2);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        display: block;
    }

    .nav-links a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 80%;
    }

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

    .dropdown-toggle {
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 90%;
        margin: 0.5rem auto;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease-out;
    }

    .dropdown-menu a {
        text-align: center;
        border-left: none;
        border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    }

    .dropdown-menu a:hover {
        padding-left: 1.5rem;
    }

    .nav-cta,
    .nav-cta1 {
        margin-left: 0 !important;
        padding: 0.9rem 3rem !important;
        /* Keep it wide on mobile too */
        min-width: 200px;
        text-align: center;
        margin-top: 0.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .logo img {
        height: 50px;
    }
}

/* Tablet adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .nav-cta,
    .nav-cta1 {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .dropdown-menu {
        min-width: 200px;
    }
}