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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a33 100%);
    color: #e0e0ff;
    line-height: 1.6;
    overflow-x: hidden;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 100, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 100, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.neon-text {
    font-size: 4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        0 0 5px #00f, 
        0 0 10px #00f, 
        0 0 20px #00f, 
        0 0 40px #00f, 
        0 0 80px #00f;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 5px #00f, 0 0 10px #00f, 0 0 20px #00f, 0 0 40px #00f, 0 0 80px #00f; }
    to { text-shadow: 0 0 10px #00f, 0 0 20px #00f, 0 0 40px #00f, 0 0 80px #00f, 0 0 160px #00f; }
}

.subtitle {
    font-size: 1.5rem;
    margin: 20px 0;
    color: #b0b0ff;
}

.neon-border {
    display: inline-block;
    padding: 2px;
    background: linear-gradient(45deg, #00f, #f0f, #00f);
    border-radius: 10px;
    margin-top: 40px;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.profile-card {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 30px;
    min-width: 300px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #00f, #f0f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(15, 15, 35, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.profile-card h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

.profile-card p {
    color: #b0b0ff;
}

section {
    padding: 80px 20px;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 255, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: rgba(26, 26, 51, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(100, 100, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.3);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.skill-card p {
    color: #b0b0ff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(26, 26, 51, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 30px;
    border: 1px solid rgba(100, 100, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 255, 0.3);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-header h3 {
    font-size: 1.2rem;
    color: #fff;
}

.project-tag {
    background: linear-gradient(45deg, #00f, #f0f);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.project-content canvas {
    width: 100% !important;
    height: 200px !important;
    margin-bottom: 20px;
}

.project-content p {
    color: #b0b0ff;
}

.contact {
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-icon {
    font-size: 1.5rem;
}

footer {
    background: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(100, 100, 255, 0.3);
}

footer p {
    color: #b0b0ff;
}

@media (max-width: 768px) {
    .neon-text {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
}