:root {
    --primary-color: #00ff00;
    --secondary-color: #ff00ff;
    --accent-color: #00ffff;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #111111;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Elements */
.neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

.matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.15;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* AI Pulse Animation */
@keyframes ai-pulse {
    0% {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px var(--primary-color),
                     0 0 40px var(--primary-color),
                     0 0 60px var(--primary-color);
        transform: scale(1.02);
    }
    100% {
        text-shadow: 0 0 10px var(--primary-color),
                     0 0 20px var(--primary-color);
        transform: scale(1);
    }
}

.ai-pulse {
    animation: ai-pulse 3s infinite ease-in-out;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    animation: glitch-skew 4s infinite linear alternate-reverse;
}

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

.glitch::before {
    animation: glitch-anim 5s infinite linear alternate-reverse;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-anim2 5s infinite linear alternate-reverse;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.65deg); }
    20% { clip: rect(70px, 9999px, 55px, 0); transform: skew(0.75deg); }
    40% { clip: rect(43px, 9999px, 79px, 0); transform: skew(0.55deg); }
    60% { clip: rect(91px, 9999px, 23px, 0); transform: skew(0.85deg); }
    80% { clip: rect(15px, 9999px, 67px, 0); transform: skew(0.45deg); }
    100% { clip: rect(91px, 9999px, 23px, 0); transform: skew(0.85deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 19px, 0); transform: skew(0.55deg); }
    20% { clip: rect(91px, 9999px, 23px, 0); transform: skew(0.85deg); }
    40% { clip: rect(15px, 9999px, 67px, 0); transform: skew(0.45deg); }
    60% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.65deg); }
    80% { clip: rect(70px, 9999px, 55px, 0); transform: skew(0.75deg); }
    100% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.65deg); }
}

@keyframes glitch-skew {
    0% { transform: skew(1deg); }
    20% { transform: skew(3deg); }
    40% { transform: skew(-2deg); }
    60% { transform: skew(5deg); }
    80% { transform: skew(-4deg); }
    100% { transform: skew(1deg); }
}

/* Neon Border */
.neon-border {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color),
                inset 0 0 10px var(--primary-color);
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% { 
        box-shadow: 0 0 10px var(--primary-color), 
                   inset 0 0 10px var(--primary-color); 
    }
    50% { 
        box-shadow: 0 0 20px var(--primary-color), 
                   inset 0 0 20px var(--primary-color); 
    }
    100% { 
        box-shadow: 0 0 10px var(--primary-color), 
                   inset 0 0 10px var(--primary-color); 
    }
}

/* Neon Text */
.neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color),
                 0 0 10px var(--primary-color);
}

/* Cyber Cards */
.cyber-card {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 255, 0, 0.1), 
        transparent);
    transition: left 0.5s ease;
}

.cyber-card:hover::before {
    left: 100%;
}

.cyber-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--primary-color);
}

/* Skill Bar */
.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-darker);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
    background: linear-gradient(90deg, 
        var(--primary-color), 
        var(--accent-color));
}

/* Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: var(--bg-dark);
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

/* Profile Image Glow */
.profile-glow {
    position: relative;
    display: inline-block;
}

.profile-glow::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: radial-gradient(circle, 
        rgba(0, 255, 0, 0.3) 0%, 
        transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(1); }
}

/* Scanlines */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 255, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    animation: scanlines 10s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 10px; }
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 4s ease-in-out infinite;
}

/* Fade In Up Animation */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 1.5rem;
    }
}