/* Animated cosmic background */
.cosmic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #16213e 35%, #0f0f23 100%);
    z-index: -3;
}

/* Floating particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 6s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* Glowing orbs */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    animation: floatOrb 8s ease-in-out infinite;
    z-index: -2;
}

.glow-orb-1 {
    width: 200px;
    height: 200px;
    background: rgba(102, 126, 234, 0.3);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.glow-orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(240, 147, 251, 0.2);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.glow-orb-3 {
    width: 150px;
    height: 150px;
    background: rgba(79, 172, 254, 0.4);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -30px) scale(1.1); }
    50% { transform: translate(-15px, 20px) scale(0.9); }
    75% { transform: translate(25px, 10px) scale(1.05); }
}

/* Custom gradient text styling */
.text-gradient {
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo responsive sizing */
.logo-responsive {
    height: 46px !important;
    max-height: 46px !important;
    min-height: 46px !important;
    object-fit: contain;
    flex-shrink: 0;
    flex-grow: 0;
    position: relative;
    display: block !important;
}

/* Logo container positioning */
.logo-responsive + * {
    margin-left: 0 !important;
}

.logo-responsive:hover {
    transform: none !important;
    scale: none !important;
}

@media (min-width: 768px) {
    .logo-responsive {
        height: 56px !important;
        max-height: 56px !important;
        min-height: 56px !important;
    }
}

/* Override any container constraints */
.logo-responsive-container {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    width: auto !important;
}

/* Navigation styles */
.nav-link {
    color: #d1d5db;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
}

.nav-link:hover {
    color: #60a5fa;
}

.nav-link-disabled {
    color: #6b7280;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: not-allowed;
    background: none;
    border: none;
}

.nav-link-disabled:hover {
    color: #9ca3af;
}

/* Dropdown styles */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
    max-width: 90vw;
    overflow-x: auto;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background-color: #4b5563;
    color: #60a5fa;
}

.dropdown-item-disabled {
    display: block;
    padding: 0.5rem 1rem;
    color: #6b7280;
    cursor: not-allowed;
}

/* Mobile styles */
.mobile-menu-button {
    color: #d1d5db;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.mobile-menu-button:hover {
    color: #60a5fa;
    background-color: #374151;
}

.mobile-nav-link {
    color: #d1d5db;
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.mobile-nav-link:hover {
    color: #60a5fa;
    background-color: #374151;
}

/* Ensure navbar stays sticky */
nav {
    position: relative !important;
    z-index: 1000 !important;
}

/* Responsive navigation control */
@media (min-width: 768px) {
    #desktop-nav {
        display: flex !important;
        align-items: center;
        gap: 10px; /* Exactly 10px spacing as requested */
    }
    
    #mobile-menu-button {
        display: none !important;
    }
    
    #mobile-menu {
        display: none !important;
    }
}

@media (max-width: 767px) {
    #desktop-nav {
        display: none !important;
    }
    
    #mobile-menu-button {
        display: flex !important;
        align-items: center;
    }
}

/* Better responsive handling for smaller desktop screens */
@media (min-width: 768px) and (max-width: 1023px) {
    .nav-link {
        padding: 0.375rem 0.5rem; /* Smaller padding on medium screens */
        font-size: 0.8rem; /* Slightly smaller font */
    }
    
    #desktop-nav {
        gap: 8px; /* Even tighter spacing on medium screens */
    }
}

/* Prevent dropdown from overflowing right edge */
.dropdown-menu {
    right: auto;
}
.dropdown-menu.dropdown-align-right {
    left: auto !important;
    right: 0 !important;
}
@media (max-width: 768px) {
    .dropdown-menu {
        left: 0 !important;
        right: auto !important;
        min-width: 160px;
    }
} 