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

:root {
    --accent: #a060ff;
    --accent-bright: #c084ff;
    --accent-glow: rgba(160, 100, 255, 0.6);
    --bg-dark: #0b0712;
    --bg-card: rgba(18, 12, 30, 0.75);
    --text-primary: #e8d8ff;
    --text-secondary: #c0a8e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    padding: 2rem;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    padding-top: 80px;
}

.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -2;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, #120a20, #0b0712);
    opacity: 0.6;
    z-index: -1;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: rgba(160, 100, 255, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(160, 100, 255, 0.1);
}
::-webkit-scrollbar-thumb:hover { background: rgba(160, 100, 255, 0.4); }

.menu-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(18, 12, 30, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(160, 100, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(160, 100, 255, 0.2), inset 0 0 10px rgba(160, 100, 255, 0.1);
}
.menu-btn:hover {
    border-color: var(--accent-bright);
    box-shadow: 0 0 25px rgba(160, 100, 255, 0.6), 0 0 10px rgba(160, 100, 255, 0.4), inset 0 0 15px rgba(160, 100, 255, 0.3);
    transform: scale(1.08);
}
.menu-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s, background-color 0.3s;
}
.menu-btn:hover span { background: #fff; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(11, 7, 18, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-left: 1px solid rgba(150, 100, 255, 0.2);
    z-index: 999;
    padding: 6rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
}
.side-menu.open { right: 0; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); }
.side-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}
.side-menu a:hover {
    background: rgba(160, 100, 255, 0.1);
    color: var(--text-primary);
    border-left-color: var(--accent);
    padding-left: 1.5rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}
.overlay.show { display: block; opacity: 1; }

.footer { text-align: center; margin-top: 2rem; color: #5a4080; font-size: 0.9rem; }
.footer a { color: var(--accent); text-decoration: none; font-family: 'JetBrains Mono', monospace; }

@media(max-width:768px){ body { padding: 1rem; padding-top: 80px; } }