:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --highlight-color: #f1c40f;
    --background-color: #f9f9f9;
    --text-color: #333;
    --section-bg: #ffffff;
    --section-border: #e0e0e0;
    --section-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 40px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.header-content {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.contact-info a:hover {
    color: var(--highlight-color);
}

.nav-bar {
    background-color: var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 2px solid var(--accent-color);
    height: 60px;
    display: flex;
    align-items: center;
}

.nav-content {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    position: relative;
    font-size: 0.95em;
    white-space: nowrap;
    height: 24px;
    display: flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--highlight-color);
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--highlight-color);
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--highlight-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

@media (max-width: 768px) {
    .nav-bar {
        height: auto;
        padding: 10px 0;
    }

    .nav-content {
        width: 100%;
        padding: 0 10px;
    }
    
    .nav-links {
        gap: 8px;
    }

    .nav-links a {
        padding: 6px 10px;
        font-size: 0.85em;
        height: 20px;
    }

    .container {
        width: 100%;
        padding: 0 15px;
    }

    section {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    .contact-info {
        gap: 12px;
    }

    .contact-info a {
        font-size: 0.9em;
    }

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

    .skill-category {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-links a {
        padding: 5px 8px;
        font-size: 0.8em;
    }

    h1 {
        font-size: 1.8rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 8px;
    }

    section {
        padding: 1.2rem;
    }
}

section {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    scroll-margin-top: 80px;
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

.experience-item, .education-item, .project-item {
    margin-bottom: 1.5rem;
}

.experience-item h3, .project-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill-category {
    margin-bottom: 1rem;
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

li {
    margin-bottom: 0.5rem;
}

.achievement-item {
    margin-bottom: 1rem;
}

.achievement-item h3 {
    margin-bottom: 0.25rem;
}