@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --bg-color: #050507;
    --glass-bg: rgba(25, 25, 30, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary: #ff0055;
    --primary-hover: #ff2a70;
    --secondary: #7000ff;
    --accent: #00e5ff;
    --text-main: #ffffff;
    --text-muted: #b0b0b0;
    --success: #00ff9d;
    --danger: #ff0055;
    --warning: #ffb700;
    --info: #00aeff;
    --card-radius: 16px;
    --btn-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 0, 85, 0.15) 0%, transparent 40%);
}

/* Glass Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.main-header {
    position: sticky;
    top: 10px;
    margin: 0 auto;
    width: 95%;
    max-width: 1400px;
    padding: 8px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.0rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand i { color: var(--primary); }

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

.nav-links a, .dropdown-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.nav-links a:hover, .nav-links a.active, .dropdown-btn:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(20px);
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    z-index: 1001;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    padding: 8px;
    top: 100%;
    right: 0; /* Align right by default for better fit */
    margin-top: 12px;
    transform-origin: top center;
    animation: dropdownFade 0.2s ease-out;
}

/* Fix gap issue */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
}

/* Align left if needed, but right is usually safer for right-aligned nav */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: var(--text-muted);
    padding: 10px 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: translateX(4px);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}
