/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #121212;
}

header {
    background-color: #1e1e1e;
    color: #fff;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.logo {
    position: absolute;
    left: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #00d4aa;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 400;
}

nav a:hover {
    color: #00d4aa;
}

.github-link {
    position: absolute;
    right: 1.5rem;
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.github-link:hover {
    color: #00d4aa;
}

main {
    margin-top: 80px;
}

section {
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 1000px;
    background-color: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-bottom: 2rem;
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
    color: #fff;
    padding: 5rem 2rem;
    margin-top: 0;
}

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

.avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid #00d4aa;
}

h1, h2 {
    margin-bottom: 1rem;
    color: #00d4aa;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

/* Center h2 in specific sections */
#about h2,
#skills h2,
#portfolio h2,
#projects h2,
#tech h2,
#stats h2,
#languages h2,
#activity h2 {
    text-align: center;
}

p {
    margin-bottom: 1rem;
    color: #b0b0b0;
}

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

.skill-card, .project-card {
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.skill-card h3, .project-card h3 {
    color: #00d4aa;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-card p, .project-card p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

ul li i {
    margin-right: 0.5rem;
    color: #00d4aa;
}

a {
    color: #00d4aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #1e1e1e;
    color: #b0b0b0;
    position: relative;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 1rem;
    }
    
    .logo {
        left: 1rem;
        font-size: 1.4rem;
    }
    
    nav {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #1e1e1e;
        padding: 0.5rem;
        border-top: 1px solid #2c2c2c;
        width: 100%;
    }
    
    nav a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
    }
    
    .github-link {
        right: 1rem;
        font-size: 1.2rem;
    }
    
    main {
        margin-top: 120px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 2rem 1rem;
        margin: 1rem auto;
    }
    
    #hero {
        padding: 3rem 1rem;
    }
    
    .avatar {
        width: 120px;
        height: 120px;
    }
    
    .skills-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .github-stats {
        grid-template-columns: 1fr;
    }
    
    .activity-graph, .github-card {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.6rem 0.8rem;
    }
    
    .logo {
        left: 0.8rem;
        font-size: 1.1rem;
    }
    
    .github-link {
        right: 0.8rem;
        font-size: 1rem;
    }
    
    nav {
        padding: 0.3rem 0.5rem;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 0.25rem 0.4rem;
    }
    
    main {
        margin-top: 110px;
    }
    
    section {
        padding: 1.5rem 0.8rem;
        margin: 0.8rem auto;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    #hero {
        padding: 2rem 0.8rem;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .stat-card, .language-card, .skill-card, .project-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* 404 Page Styles */
.error-page footer {
    display: none;
}

#error {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
    text-align: center;
    padding: 2rem;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 10px rgba(0, 212, 170, 0.5);
}

.error-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.error-content p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: #00d4aa;
    color: #121212;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #00b894;
    transform: translateY(-2px);
}

/* Recent Projects Section */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-item {
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #00d4aa;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.project-item h3 {
    color: #00d4aa;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tech-tag {
    display: inline-block;
    background-color: #00d4aa;
    color: #000000 !important;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.project-item p {
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.project-link {
    color: #00d4aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-link:hover {
    color: #00b894;
}

/* Tech Stack Section */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tech-category h3 {
    color: #00d4aa;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
}

.skill-icons {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00d4aa;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.95rem;
}

/* Languages Section */
.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.language-card {
    background-color: #2c2c2c;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.language-card:hover {
    transform: translateY(-3px);
}

.language-card h3 {
    color: #00d4aa;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.fluency {
    color: #e0e0e0;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.note {
    color: #b0b0b0;
    font-size: 0.9rem;
    font-style: italic;
}

/* GitHub Activity Section */
.github-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-items: center;
}

@media (max-width: 640px) {
    .github-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.activity-graph {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.github-card {
    max-width: 100%;
    width: 100%;
    border-radius: 8px;
}