:root {
    --neon-color: #0ff;
    --bg-color: #0a192f;
    --text-color: #8892b0;
    --heading-color: #ccd6f6;
}

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

body {
    font-family: 'Consolas', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.glitch {
    font-size: 5rem;
    font-weight: bold;
    color: var(--heading-color);
    text-shadow: 0 0 5px var(--neon-color);
    position: relative;
}

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

.glitch::before {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: #ff00ff;
    z-index: -1;
}

.glitch::after {
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    color: #00ffff;
    z-index: -2;
}

.typewriter span {
    overflow: hidden;
    border-right: 0.15em solid var(--neon-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.15em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

section {
    margin: 6rem 0;
}

.card {
    background: rgba(2, 12, 27, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

h2 {
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.tech-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: var(--neon-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(2, 12, 27, 0.7);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-color);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--neon-color);
    color: var(--neon-color);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: var(--neon-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--neon-color);
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--neon-color) }
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

@media (max-width: 768px) {
    .glitch {
        font-size: 3rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    section {
        margin: 3rem 0;
    }
}
.typewriter span {
	text-wrap:auto;
}
