:root {
    --bg-color: #0d1117;       
    --card-bg: #161b22;        
    --text-main: #c9d1d9;      
    --text-muted: #8b949e;     
    --accent-main: #2ea043;    
    --accent-bright: #3fb950;  
    --border-color: #30363d;   
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', monospace, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.logo {
    color: var(--accent-main);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
    border-bottom: 2px solid var(--accent-main);
    padding-bottom: 2px;
}

main {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

h1 { 
    font-size: 2.5rem; 
    margin-bottom: 1rem; 
    color: var(--text-main);
}

.highlight {
    color: var(--accent-main);
}

p { 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    font-size: 1.05rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.mod-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.mod-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-bright);
    box-shadow: 0 4px 20px rgba(46, 160, 67, 0.1);
}

.mod-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mod-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #000;
}

.mod-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-main);
}

.mod-meta {
    display: flex;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.mod-desc {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.mod-btn {
    text-align: center;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-main);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.mod-btn:hover {
    background: var(--accent-main);
    color: #fff;
    border-color: var(--accent-main);
}

.loading {
    text-align: center;
    color: var(--accent-main);
    grid-column: 1 / -1;
    font-family: monospace;
}

.terminal-box {
    background: #090c10;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    color: var(--text-main);
    margin-top: 1.5rem;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    font-size: 0.95rem;
}

#typewriter {
    color: var(--accent-bright);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background-color: var(--accent-bright);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink { 
    50% { opacity: 0; } 
}

.mod-btn-outline {
    text-align: center;
    padding: 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.mod-btn-outline:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-badge {
    background: rgba(46, 160, 67, 0.05);
    color: var(--accent-main);
    border: 1px solid rgba(46, 160, 67, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
}

.skill-badge:hover {
    background: var(--accent-main);
    color: var(--bg-color);
    transform: translateY(-2px);
}

footer {
    margin-top: 5rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.contact-card {
    margin-top: 3rem;
    margin-bottom: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 150px;
    background: var(--accent-main);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.contact-card h2, .contact-card p, .contact-card a {
    position: relative;
    z-index: 1;
}

.contact-card h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    border: none;
    margin-bottom: 1rem;
}

.contact-card p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.email-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid var(--accent-main);
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.email-link:hover {
    background: var(--accent-main);
    color: var(--bg-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(46, 160, 67, 0.25);
}

.email-icon {
    font-size: 1.4rem;
}
@media (max-width: 600px) {
    .contact-card {
        padding: 2rem 1rem;
    }
    
    .email-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box; 
        word-break: break-word;
    }
}
.hardware-icon {
    font-size: 2.5rem;
    background: rgba(46, 160, 67, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hardware-card {
    justify-content: space-between;
}

.specs-list li {
    font-size: 0.95rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

    .specs-list li span {
        color: var(--text-muted);
        min-width: 80px;
    }

    .specs-list li strong {
        color: var(--text-main);
        font-weight: 500;
        text-align: right;
    }
.multi-line {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

html, body {
    overflow-x: hidden;
}

.gh-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gh-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.gh-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-main);
}

.gh-header-info h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.gh-header-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.gh-btn {
    margin-left: auto;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--accent-main);
    color: var(--accent-main);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

    .gh-btn:hover {
        background: var(--accent-main);
        color: var(--bg-color);
    }

.gh-stats-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

    .gh-stats-grid img {
        width: 48%;
        object-fit: contain;
    }

.gh-graph {
    background: var(--bg-color);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow-x: auto; 
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .contact-card {
        padding: 2rem 1rem;
    }

    .email-link {
        padding: 0.8rem 1rem;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
        word-break: break-word;
    }

    .gh-header {
        flex-direction: column;
        text-align: center;
    }

    .gh-btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }
    .gh-stats-grid {
        flex-direction: column;
    }

    .gh-stats-grid img {
        width: 100%; 
    }
}