:root {
    --neon-cyan: #00eaff;
    --neon-purple: #a855f7;
    --neon-blue: #1fb6ff;
}

body {
    margin: 0;
    padding: 0;
    background-color: #030712;
    color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020d1a;
}

::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Grid Background */
#grid-background {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Utility Classes for Glows */
.text-glow-cyan {
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.7), 0 0 20px rgba(0, 234, 255, 0.5);
}

.text-glow-purple {
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.7), 0 0 20px rgba(168, 85, 247, 0.5);
}

.box-glow {
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.2), inset 0 0 15px rgba(0, 234, 255, 0.1);
}

/* Glassmorphism Card */
.glass-panel {
    background: rgba(2, 13, 26, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 234, 255, 0.1);
}

/* Scanline Effect */
.scanlines::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* Hero Animations */
@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

.animate-spin-reverse {
    animation: spin-reverse 15s linear infinite;
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.group-hover\:animate-scan:hover {
    animation: scan 1s linear infinite;
}

/* Glitch Effect */
.glitch-text {
    position: relative;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #030712;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(14px, 9999px, 127px, 0);
    }

    5% {
        clip: rect(34px, 9999px, 4px, 0);
    }

    10% {
        clip: rect(89px, 9999px, 12px, 0);
    }

    15% {
        clip: rect(24px, 9999px, 124px, 0);
    }

    20% {
        clip: rect(14px, 9999px, 12px, 0);
    }

    25% {
        clip: rect(64px, 9999px, 94px, 0);
    }

    30% {
        clip: rect(4px, 9999px, 14px, 0);
    }

    35% {
        clip: rect(144px, 9999px, 44px, 0);
    }

    40% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    45% {
        clip: rect(54px, 9999px, 44px, 0);
    }

    50% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    55% {
        clip: rect(34px, 9999px, 4px, 0);
    }

    60% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    65% {
        clip: rect(24px, 9999px, 124px, 0);
    }

    70% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    75% {
        clip: rect(64px, 9999px, 94px, 0);
    }

    80% {
        clip: rect(4px, 9999px, 14px, 0);
    }

    85% {
        clip: rect(144px, 9999px, 44px, 0);
    }

    90% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    95% {
        clip: rect(54px, 9999px, 44px, 0);
    }

    100% {
        clip: rect(14px, 9999px, 124px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(14px, 9999px, 127px, 0);
    }

    5% {
        clip: rect(34px, 9999px, 4px, 0);
    }

    10% {
        clip: rect(89px, 9999px, 12px, 0);
    }

    15% {
        clip: rect(24px, 9999px, 124px, 0);
    }

    20% {
        clip: rect(14px, 9999px, 12px, 0);
    }

    25% {
        clip: rect(64px, 9999px, 94px, 0);
    }

    30% {
        clip: rect(4px, 9999px, 14px, 0);
    }

    35% {
        clip: rect(144px, 9999px, 44px, 0);
    }

    40% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    45% {
        clip: rect(54px, 9999px, 44px, 0);
    }

    50% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    55% {
        clip: rect(34px, 9999px, 4px, 0);
    }

    60% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    65% {
        clip: rect(24px, 9999px, 124px, 0);
    }

    70% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    75% {
        clip: rect(64px, 9999px, 94px, 0);
    }

    80% {
        clip: rect(4px, 9999px, 14px, 0);
    }

    85% {
        clip: rect(144px, 9999px, 44px, 0);
    }

    90% {
        clip: rect(14px, 9999px, 124px, 0);
    }

    95% {
        clip: rect(54px, 9999px, 44px, 0);
    }

    100% {
        clip: rect(14px, 9999px, 124px, 0);
    }
}

/* Skill Nodes */
.skill-node {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(2, 13, 26, 0.8);
    border: 2px solid var(--neon-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
    z-index: 10;
    user-select: none;
}

.skill-node:hover {
    transform: scale(1.2);
    background: rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
    z-index: 20;
}

.skill-node.active {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.6);
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}