
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #0d1117;
    color: #c9d1d9;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(88, 166, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(88, 166, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.9);
    padding: 1.2rem 2rem;
    z-index: 1000;
    border-bottom: 2px solid #21262d;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: #8b949e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    font-weight: 500;
}

nav a:hover {
    color: #58a6ff;
}

section {
    min-height: auto;
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: left;
    padding-top: 8rem;
}

.hero-content {
    width: 100%;
    max-width: 700px;
}

.typing-prefix {
    color: #58a6ff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.subtext {
    font-size: 1.3rem;
    color: #8b949e;
    margin-bottom: 2rem;
}

.quick-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.quick-links a {
    padding: 0.7rem 1.5rem;
    background: transparent;
    color: #58a6ff;
    text-decoration: none;
    border: 1px solid #30363d;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.quick-links a:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.1);
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f0f6fc;
    border-left: 3px solid #58a6ff;
    padding-left: 1rem;
}

.about-text {
    font-size: 1rem;
    line-height: 1.9;
    color: #8b949e;
    margin-top: 1.5rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.skill-tag {
    background: #161b22;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.skill-tag:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
}

.projects-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    background: #161b22;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.2s;
}

.project-item:hover {
    border-color: #58a6ff;
    background: #1c2128;
    transform: translateX(5px);
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.7rem;
}

.project-title {
    font-size: 1.1rem;
    color: #58a6ff;
    font-weight: 600;
}

.project-lang {
    font-size: 0.8rem;
    color: #8b949e;
    background: #0d1117;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.project-desc {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.6;
}

.view-more {
    margin-top: 1.5rem;
    text-align: center;
}

.view-more a {
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.95rem;
}

.view-more a:hover {
    text-decoration: underline;
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    background: #161b22;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #30363d;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.social-link:hover {
    border-color: #58a6ff;
    background: #1c2128;
}

.social-icon {
    font-size: 1.8rem;
}

.social-info h3 {
    color: #f0f6fc;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.social-info p {
    color: #8b949e;
    font-size: 0.85rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #6e7681;
    font-size: 0.85rem;
    border-top: 1px solid #21262d;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        justify-content: center;
        gap: 1.5rem;
    }

    .quick-links {
        flex-direction: column;
    }

    section {
        padding: 3rem 1.5rem;
    }

    #home {
        padding-top: 6rem;
    }
}

.code-comment {
    color: #6e7681;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}