/* Global Navbar Styles */

.nav-island-container {
    position: fixed;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    width: auto;
    display: flex;
    justify-content: center;
}

.dynamic-island {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: fit-content; 
    margin: 0 auto;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    will-change: transform;
    transform: translateZ(0);
    cursor: default;
}

.island-logo {
    height: 45px;
    width: auto;
    display: flex;
    align-items: center;
}

.island-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.2));
    transition: transform 0.3s ease;
}

.island-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.island-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.island-nav-links a:hover,
.island-nav-links a.active { 
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dropdown Support */
.has-dropdown {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: -20px;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(1, 2, 4, 0.9);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.8rem;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
    z-index: 2000;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.has-dropdown:hover .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-secondary, #94a3b8);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-item:hover,
.dropdown-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(5px);
}

.dropdown-item::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.dropdown-item:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    width: 24px;
    height: 14px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle span {
    position: absolute;
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { bottom: 0; }

.menu-toggle.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { bottom: 45%; transform: rotate(-45deg); }

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(1, 2, 4, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0;
}

.mobile-nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1.8rem;
    font-family: var(--font-display, 'Outfit', sans-serif);
    font-weight: 800;
    letter-spacing: 2px;
    transition: 0.3s;
}

.mobile-nav-links a:hover {
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .desktop-only {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .dynamic-island {
        padding: 0.8rem 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-island-container {
        top: 1.5rem;
        width: 100%;
        left: 50%;
        transform: translateX(-50%);
        padding: 0 1rem;
    }
    
    .dynamic-island {
        padding: 0.6rem 1.2rem;
        width: 100%;
        max-width: 450px;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .island-logo {
        height: 32px;
    }
}

/* Profile Completion Modal */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 90% 90%, rgba(56, 189, 248, 0.15) 0%, transparent 40%),
                rgba(1, 2, 4, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}

.profile-modal-overlay.active {
    display: flex;
}

.profile-modal {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.profile-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-lightblue), var(--accent-yellow));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: var(--text-gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
}

.modal-group input,
.modal-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.modal-group input:focus,
.modal-group select:focus {
    outline: none;
    border-color: var(--accent-emerald);
    background: rgba(255, 255, 255, 0.08);
}

.modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-submit {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-lightblue));
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

@media (max-width: 480px) {
    .profile-modal {
        padding: 1.5rem;
    }
    .modal-row {
        grid-template-columns: 1fr;
    }
}
