/* Interactive background patterns and effects - Dark Theme */
body {
    position: relative;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #e0e0e0;
}

/* Animated geometric background - Dark */
.geometric-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(26, 26, 46, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(83, 52, 131, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    animation: backgroundFlow 20s ease-in-out infinite;
}

@keyframes backgroundFlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

/* Floating geometric shapes - Dark Theme */
.floating-shape {
    position: absolute;
    opacity: 0.15;
    animation: floatUp 10s infinite linear;
}

.floating-shape::before {
    content: '';
    display: block;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #1a1a2e, #533483);
    border-radius: 50%;
}

.floating-shape:nth-child(2n)::before {
    border-radius: 0;
    transform: rotate(45deg);
}

.floating-shape:nth-child(3n)::before {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    border-radius: 0;
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Interactive mouse trail - Dark Theme */
.mouse-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(83, 52, 131, 0.8), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: trailFade 1s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* Glitch effect for special elements */
.glitch {
    position: relative;
    color: white;
    font-weight: bold;
}

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

.glitch::before {
    animation: glitch-anim 2s infinite linear alternate-reverse;
    color: #ff00c1;
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim2 1s infinite linear alternate-reverse;
    color: #00fff9;
    z-index: -2;
}

@keyframes glitch-anim {
    0% {
        clip: rect(42px, 9999px, 44px, 0);
        transform: skew(0.85deg);
    }
    5% {
        clip: rect(12px, 9999px, 59px, 0);
        transform: skew(0.4deg);
    }
    10% {
        clip: rect(70px, 9999px, 105px, 0);
        transform: skew(0.1deg);
    }
    15% {
        clip: rect(25px, 9999px, 99px, 0);
        transform: skew(0.7deg);
    }
    20% {
        clip: rect(46px, 9999px, 78px, 0);
        transform: skew(0.6deg);
    }
    25% {
        clip: rect(89px, 9999px, 1px, 0);
        transform: skew(0.2deg);
    }
    30% {
        clip: rect(3px, 9999px, 53px, 0);
        transform: skew(1deg);
    }
    35% {
        clip: rect(68px, 9999px, 19px, 0);
        transform: skew(0.9deg);
    }
    40% {
        clip: rect(17px, 9999px, 90px, 0);
        transform: skew(0.3deg);
    }
    45% {
        clip: rect(54px, 9999px, 33px, 0);
        transform: skew(0.8deg);
    }
    50% {
        clip: rect(91px, 9999px, 84px, 0);
        transform: skew(0.5deg);
    }
    55% {
        clip: rect(2px, 9999px, 65px, 0);
        transform: skew(0.2deg);
    }
    60% {
        clip: rect(76px, 9999px, 37px, 0);
        transform: skew(0.7deg);
    }
    65% {
        clip: rect(31px, 9999px, 14px, 0);
        transform: skew(0.4deg);
    }
    70% {
        clip: rect(85px, 9999px, 72px, 0);
        transform: skew(0.1deg);
    }
    75% {
        clip: rect(40px, 9999px, 95px, 0);
        transform: skew(0.6deg);
    }
    80% {
        clip: rect(20px, 9999px, 48px, 0);
        transform: skew(0.9deg);
    }
    85% {
        clip: rect(63px, 9999px, 81px, 0);
        transform: skew(0.3deg);
    }
    90% {
        clip: rect(47px, 9999px, 56px, 0);
        transform: skew(0.8deg);
    }
    95% {
        clip: rect(74px, 9999px, 29px, 0);
        transform: skew(0.5deg);
    }
    100% {
        clip: rect(58px, 9999px, 67px, 0);
        transform: skew(0.2deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 119px, 0);
        transform: skew(0.1deg);
    }
    5% {
        clip: rect(52px, 9999px, 36px, 0);
        transform: skew(0.7deg);
    }
    10% {
        clip: rect(79px, 9999px, 95px, 0);
        transform: skew(0.4deg);
    }
    15% {
        clip: rect(23px, 9999px, 107px, 0);
        transform: skew(0.9deg);
    }
    20% {
        clip: rect(94px, 9999px, 8px, 0);
        transform: skew(0.2deg);
    }
    25% {
        clip: rect(11px, 9999px, 73px, 0);
        transform: skew(0.6deg);
    }
    30% {
        clip: rect(38px, 9999px, 41px, 0);
        transform: skew(0.8deg);
    }
    35% {
        clip: rect(87px, 9999px, 62px, 0);
        transform: skew(0.3deg);
    }
    40% {
        clip: rect(16px, 9999px, 86px, 0);
        transform: skew(0.5deg);
    }
    45% {
        clip: rect(71px, 9999px, 27px, 0);
        transform: skew(0.1deg);
    }
    50% {
        clip: rect(44px, 9999px, 100px, 0);
        transform: skew(0.7deg);
    }
    55% {
        clip: rect(98px, 9999px, 15px, 0);
        transform: skew(0.4deg);
    }
    60% {
        clip: rect(5px, 9999px, 89px, 0);
        transform: skew(0.9deg);
    }
    65% {
        clip: rect(60px, 9999px, 32px, 0);
        transform: skew(0.2deg);
    }
    70% {
        clip: rect(33px, 9999px, 77px, 0);
        transform: skew(0.6deg);
    }
    75% {
        clip: rect(106px, 9999px, 50px, 0);
        transform: skew(0.8deg);
    }
    80% {
        clip: rect(21px, 9999px, 83px, 0);
        transform: skew(0.3deg);
    }
    85% {
        clip: rect(66px, 9999px, 18px, 0);
        transform: skew(0.5deg);
    }
    90% {
        clip: rect(95px, 9999px, 61px, 0);
        transform: skew(0.1deg);
    }
    95% {
        clip: rect(9px, 9999px, 104px, 0);
        transform: skew(0.7deg);
    }
    100% {
        clip: rect(82px, 9999px, 45px, 0);
        transform: skew(0.4deg);
    }
}

/* Matrix rain effect */
.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
}

.matrix-column {
    position: absolute;
    top: -100%;
    width: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff00;
    opacity: 0.1;
    animation: matrixFall linear infinite;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(100vh);
    }
}

/* Cool SVG Icon Effects */
.social-icon svg {
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.8);
}

.social-icon:hover svg {
    filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 8px rgba(136, 136, 136, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.collapsible-header svg {
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.9);
}

.collapsible-header:hover svg {
    filter: grayscale(50%) brightness(1.3) drop-shadow(0 0 6px rgba(224, 224, 224, 0.5));
    transform: scale(1.1) rotateY(15deg);
}

.sidenav-trigger svg {
    transition: all 0.3s ease;
    filter: grayscale(100%) brightness(0.9);
}

.sidenav-trigger:hover svg {
    filter: grayscale(0%) brightness(1.4) drop-shadow(0 0 8px rgba(224, 224, 224, 0.7));
    transform: scale(1.2) rotate(90deg);
}

/* Animated icon glow effect */
@keyframes iconGlow {
    0%, 100% {
        filter: grayscale(100%) brightness(0.8);
    }
    50% {
        filter: grayscale(50%) brightness(1.2) drop-shadow(0 0 10px rgba(136, 136, 136, 0.8));
    }
}

.social-icon svg:nth-child(1) { animation: iconGlow 3s ease-in-out infinite; animation-delay: 0s; }
.social-icon svg:nth-child(2) { animation: iconGlow 3s ease-in-out infinite; animation-delay: 0.5s; }
.social-icon svg:nth-child(3) { animation: iconGlow 3s ease-in-out infinite; animation-delay: 1s; }
.social-icon svg:nth-child(4) { animation: iconGlow 3s ease-in-out infinite; animation-delay: 1.5s; }
.social-icon svg:nth-child(5) { animation: iconGlow 3s ease-in-out infinite; animation-delay: 2s; }
