/* 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;
}

/* Mobile Specific Enhancements */
@media (max-width: 768px) {
    .glass-sidebar {
        border-right: none;
        border-top: 1px solid var(--border);
    }

    .mobile-header {
        background: var(--glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
    }

    /* Fixed Bottom Nav with subtle curve */
    .mobile-nav {
        border-radius: 2rem 2rem 0 0;
        box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);
    }

    /* Scaling for large text */
    .hero-title {
        font-size: clamp(3rem, 12vw, 8rem);
    }
}

/* Smooth transitions for all elements */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
}

.no-transition {
    transition: none !important;
}