@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0a0a0a;
    --accent-1: #ff3838;
    --accent-2: #ff6b6b;
    --accent-3: #cc1616;
    --accent-warm: #ff9500;
    --text-color: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --bg-gradient-1: #000000;
    --bg-gradient-2: #1a0505;
    --bg-gradient-3: #0d0202;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --glow-red: rgba(255, 56, 56, 0.4);
    --glow-orange: rgba(255, 149, 0, 0.3);
}

body {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tech-stack-container {
    position: relative;
    width: 100%;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.tech-stack-wheel {
    animation-play-state: running !important;
}

.cursor-follow {
    position: relative;
    overflow: hidden;
}

.cursor-follow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        200px circle at var(--mouse-x) var(--mouse-y),
        rgba(255, 56, 56, 0.15) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.cursor-follow:hover::before {
    opacity: 1;
}

@keyframes glowPulse {
    0% { 
        box-shadow: 0 0 5px rgba(255, 56, 56, 0.5);
        transform: scale(1);
    }
    100% { 
        box-shadow: 0 0 20px rgba(255, 56, 56, 0.8), 0 0 30px rgba(255, 56, 56, 0.4);
        transform: scale(1.02);
    }
}

@keyframes textGlowPulse {
    0% { 
        text-shadow: 
            0 0 5px rgba(255, 56, 56, 0.8),
            0 0 10px rgba(255, 56, 56, 0.6),
            0 0 15px rgba(255, 56, 56, 0.4);
    }
    100% { 
        text-shadow: 
            0 0 10px rgba(255, 56, 56, 1),
            0 0 20px rgba(255, 56, 56, 0.8),
            0 0 30px rgba(255, 56, 56, 0.6),
            0 0 40px rgba(255, 56, 56, 0.4);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-20px) rotate(0deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes fadeInUp {
    0% { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInLeft {
    0% { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    0% { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    100% { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor,
            0 0 15px currentColor;
    }
    50% {
        text-shadow: 
            0 0 10px currentColor,
            0 0 20px currentColor,
            0 0 30px currentColor,
            0 0 40px #ff3838;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-text-glow {
    animation: textGlow 2s ease-in-out infinite;
}

.font-orbitron {
    font-family: 'Orbitron', monospace;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

h1.animate-glow-pulse,
h2.animate-glow-pulse,
h3.animate-glow-pulse,
h4.animate-glow-pulse,
h5.animate-glow-pulse,
h6.animate-glow-pulse,
span.animate-glow-pulse {
    animation: textGlowPulse 2s ease-in-out infinite alternate;
    background: transparent !important;
    box-shadow: none !important;
}

.animate-glow-pulse:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(span) {
    animation: glowPulse 2s ease-in-out infinite alternate;
}

.text-glow {
    text-shadow: 
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 30px currentColor;
}

.text-glow-red {
    color: #ff3838;
    text-shadow: 
        0 0 10px #ff3838,
        0 0 20px #ff3838,
        0 0 30px #ff3838;
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 20px rgba(255, 56, 56, 0.4),
        0 0 40px rgba(255, 56, 56, 0.2);
}

.cyber-grid {
    background-image: 
        linear-gradient(rgba(255, 56, 56, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 56, 56, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 56, 56, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 149, 0, 0.3), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 107, 107, 0.3), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 56, 56, 0.3), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 15s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-40px) translateX(-5px); }
    75% { transform: translateY(-20px) translateX(-10px); }
}

.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

@media (max-width: 768px) {
    .animate-float {
        animation-duration: 4s;
    }
    
    .text-glow {
        text-shadow: 
            0 0 5px currentColor,
            0 0 10px currentColor;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor-follow::before {
        display: none;
    }
}

@media (prefers-contrast: high) {
    :root {
        --glow-red: rgba(255, 56, 56, 0.8);
        --glow-orange: rgba(255, 149, 0, 0.6);
    }
}

@media print {
    .animate-float,
    .animate-glow-pulse,
    .cursor-follow::before,
    .particles::before {
        display: none !important;
    }
}
