:root {
    --neon-blue: #00fff2;
    --dark-bg: #0a192f;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --accent: #64ffda;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
}

body {
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 900px;
    padding: 2rem;
}

.glitch-container {
    position: relative;
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: textShadow 1.5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-blue);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

.title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.5s;
}

.terminal-window {
    background: #1d2433;
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.1);
    opacity: 0;
    animation: slideUp 0.5s ease forwards 1s;
}

.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: #2d3746;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 8px;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close { background: #ff5f56; }
.minimize { background: #ffbd2e; }
.maximize { background: #27c93f; }

.terminal-content {
    margin-top: 30px;
    font-family: 'Fira Code', monospace;
    min-height: 300px;
    min-width: 300px;
    max-width: 430px;
}

.command-line {
    display: flex;
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--accent);
    margin-right: 1rem;
}

.typing-text {
    color: var(--text-primary);
}

.skill-output {
    color: var(--text-secondary);
    margin-left: 2rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textShadow {
    0% { text-shadow: 0.4389924193300864px 0 1px rgba(0,255,242,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    5% { text-shadow: 2.7928974010788217px 0 1px rgba(0,255,242,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    100% { text-shadow: 0.4389924193300864px 0 1px rgba(0,255,242,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

@keyframes glitch-anim {
    0% { clip: rect(14px, 9999px, 66px, 0); }
    20% { clip: rect(89px, 9999px, 97px, 0); }
    100% { clip: rect(54px, 9999px, 70px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(66px, 9999px, 43px, 0); }
    20% { clip: rect(31px, 9999px, 92px, 0); }
    100% { clip: rect(23px, 9999px, 95px, 0); }
}

@media (max-width: 768px) {
    .glitch-container {
        font-size: 3rem;
    }
    
    .container {
        padding: 1rem;
    }
}
