:root {
    --neon-cyan: #00ffff;
    --neon-pink: #ff00ff;
    --neon-purple: #b000ff;
    --neon-blue: #0066ff;
    --neon-orange: #ff6600;
    --dark-bg: #0a0a0f;
    --darker-bg: #050508;
    --card-bg: rgba(20, 20, 35, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15) 0px,
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    z-index: 9999;
    animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    perspective: 1000px;
    transform: rotateX(60deg) translateZ(-100px);
    pointer-events: none;
    z-index: 0;
}

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

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
}

.glitch-wrapper {
    margin-bottom: 20px;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--neon-cyan);
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-cyan);
}

.tagline {
    font-size: 1.5rem;
    color: var(--neon-pink);
    text-shadow: 
        0 0 10px var(--neon-pink),
        0 0 20px var(--neon-pink);
    margin-bottom: 30px;
    letter-spacing: 4px;
}

.hero-description {
    max-width: 700px;
    margin: 0 auto;
}

.hero-description p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin: 80px 0 50px;
    color: var(--neon-cyan);
    text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.title-line {
    height: 2px;
    width: 100px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--neon-cyan),
        transparent
    );
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* Projects Section */
.projects {
    padding: 40px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.project-card {
    background: var(--card-bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.1),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
}

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

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

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-pink);
    box-shadow: 
        0 0 30px rgba(255, 0, 255, 0.3),
        inset 0 0 30px rgba(255, 0, 255, 0.1);
}

.project-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.project-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.project-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 40px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card-bg);
    border: 2px solid var(--neon-purple);
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(176, 0, 255, 0.2),
        inset 0 0 20px rgba(176, 0, 255, 0.05);
}

.about-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--darker-bg);
    border: 1px solid var(--neon-pink);
    border-radius: 5px;
    color: var(--neon-pink);
    font-weight: 600;
    text-shadow: 0 0 5px var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(255, 0, 255, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
}

/* Contact Section */
.contact {
    padding: 40px 0;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-button {
    display: inline-block;
    position: relative;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--darker-bg);
    border: 2px solid var(--neon-orange);
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 20px rgba(255, 102, 0, 0.3),
        inset 0 0 20px rgba(255, 102, 0, 0.1);
}

.button-text {
    position: relative;
    z-index: 2;
    text-shadow: 0 0 10px var(--neon-orange);
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 102, 0, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.contact-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 40px rgba(255, 102, 0, 0.6),
        inset 0 0 30px rgba(255, 102, 0, 0.2);
}

.contact-button:hover .button-glow {
    width: 300px;
    height: 300px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: var(--text-secondary);
}

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

    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .title-line {
        width: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-description p,
    .about-content p,
    .contact-content p {
        font-size: 1rem;
    }

    .about-content {
        padding: 20px;
    }
}

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

    .tagline {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 20px;
    }
}
