body {
    background-color: #1b1b1f;
    color: #d1d5db;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: #1b1b1f;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center top;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
}

.bg-animated::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.05) 0%, transparent 40%);
    animation: gradient-shift 15s linear infinite;
}

@keyframes gradient-shift {
    0% { transform: scale(1) translate(0, 0); }
    33% { transform: scale(1.05) translate(3%, 3%); }
    66% { transform: scale(0.95) translate(-3%, 3%); }
    100% { transform: scale(1) translate(0, 0); }
}

@keyframes gradient-pan {
    to { background-position: 200% center; }
}

.text-gradient-hover {
    transition: all 0.3s ease;
}

.text-gradient-hover:hover {
    background: linear-gradient(90deg, #c084fc, #a855f7, #c084fc);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-pan 3s linear infinite;
    font-weight: 600;
}

.nav-glass {
    background: rgba(27, 27, 31, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #2e2e32;
}

.btn-gradient-border {
    position: relative;
    background: linear-gradient(90deg, #c084fc, #ec4899);
    border-radius: 8px;
    padding: 2px; 
    display: inline-flex;
    transition: all 0.2s ease;
}
.btn-gradient-border:hover {
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.3);
    transform: translateY(-1px);
}
.btn-gradient-inner {
    background: #1b1b1f;
    border-radius: 7px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: background 0.2s ease;
}
.btn-gradient-border:hover .btn-gradient-inner {
    background: #202127;
}

::selection {
    background-color: rgba(168, 85, 247, 0.3);
    color: #ffffff;
}

.code-gradient-border {
    position: relative;
    background: linear-gradient(90deg, #c084fc, #ec4899, #818cf8, #c084fc);
    background-size: 300% 100%;
    animation: border-pan 8s linear infinite;
    padding: 1px;
    border-radius: 0.75rem;
}

@keyframes border-pan {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.code-gradient-inner {
    background-color: #121214;
    border-radius: calc(0.75rem - 1px);
    width: 100%;
    height: 100%;
    overflow: hidden;
}
