/* Global Premium Styles - Cyber Portfolio */
:root {
    --primary: #00bcfe;
    --secondary: #7d87ff;
    --accent: #3080ff;
    --bg: #f8fafc;
    --dark: #0f172a;
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.05);
}

html.dark {
    --bg: #030712;
    --dark: #f8fafc;
    --glass: rgba(15, 23, 42, 0.7);
    --border: rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--bg);
    color: var(--dark);
    font-family: 'Space Grotesk', 'Anuphan', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

.glass-sidebar {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border);
}

/* Background Blobs */
.gradient-blob {
    position: fixed;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

html.dark .gradient-blob {
    opacity: 0.15;
}

.blob-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; animation: pulse-slow 8s infinite alternate; }
.blob-2 { width: 500px; height: 500px; background: var(--secondary); bottom: -150px; right: -100px; animation: pulse-slow 10s infinite alternate-reverse; }

@keyframes pulse-slow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, 20px); }
}

/* Animations */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Discord Status Card */
#discord-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.status-online { background-color: #22c55e !important; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
.status-idle { background-color: #f59e0b !important; }
.status-dnd { background-color: #ef4444 !important; }
.status-offline { background-color: #94a3b8 !important; }

#discord-activity img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

html.dark #discord-activity img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Custom Scrollbar for sleek look */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

/* Language Switcher */
.lang-en { display: none; }
html.en-mode .lang-th { display: none; }
html.en-mode .lang-en { display: inline-block; }

/* Sidebar Active State */
.sidebar-item.active {
    color: var(--primary);
    background: rgba(0, 188, 254, 0.1);
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}
