:root {
    --bg-dark: #0a0b10;
    --text-primary: #ffffff;
    --brand-blue: #3b82f6;
    --brand-blue-glow: rgba(59, 130, 246, 0.5);
    --neon-border: 0 0 10px var(--brand-blue-glow), 0 0 20px var(--brand-blue-glow);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body.dark {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Glassmorphism Navigation */
.glass-nav {
    background: rgba(10, 11, 16, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

/* Animated Search Input */
.search-animated {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.search-animated:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 15px var(--brand-blue-glow);
}

/* Sidebar Widgets Container */
.widget-sidebar {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 1.5rem;
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow Border for Pro Plan */
.card-glow {
    position: relative;
    border: 1px solid var(--brand-blue);
    box-shadow: var(--neon-border);
    transition: all 0.3s ease;
}

.card-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--brand-blue-glow), 0 0 40px var(--brand-blue-glow);
}

.card-glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: inherit;
    z-index: -1;
    background: linear-gradient(45deg, var(--brand-blue), transparent, var(--brand-blue));
    opacity: 0.1;
}

/* General Glass Panel */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
}

/* Background Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
    animation: floatParticle 20s infinite linear;
    opacity: 0.5;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Enhanced Ambient Gradients */
.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
}

.glow-blue {
    background: radial-gradient(circle, #3b82f6, transparent);
}

.glow-purple {
    background: radial-gradient(circle, #8b5cf6, transparent);
}

.glow-orange {
    background: radial-gradient(circle, #f97316, transparent);
}

/* Portfolio Section */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    isolation: isolate;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
    opacity: 0.8;
    transition: opacity 0.5s ease;
    z-index: 10;
}

.group:hover .portfolio-overlay {
    opacity: 0.95;
}

.portfolio-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 20;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.group:hover .portfolio-content {
    transform: translateY(0);
}

/* Marquee Animation Support */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-content {
    display: flex;
    gap: 4rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.tech-icon {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.tech-icon:hover {
    color: var(--brand-blue);
    transform: scale(1.15) translateY(-5px);
    text-shadow: 0 0 20px var(--brand-blue-glow);
    filter: grayscale(0%);
    opacity: 1;
}