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

:root {
    --primary-color: #f1f5f9;
    --secondary-color: #64b5f6;
    --accent-color: #ff6b6b;
    --text-color: #e4e4e7;
    --text-light: #a1a1aa;
    --bg-color: #0f1419;
    --white: #18212f;
    --border-color: #2d3748;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    color: var(--text-color);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.title {
    font-size: 1.5rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

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

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--secondary-color);
}

.icon {
    font-size: 1.2rem;
}

/* Navigation */
.nav {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav .container {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 15px;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.nav-list a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.nav-list a:hover::after {
    width: 100%;
}

/* Main content */
main {
    padding: 40px 20px;
}

.section {
    background-color: var(--white);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--secondary-color);
}

/* Summary */
.summary-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Featured Projects Section */
.featured-section {
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(100, 181, 246, 0.05) 100%);
    border: 2px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.featured-section .section-title {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.project-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.3);
}

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

.project-name {
    font-size: 2rem;
    margin: 0;
}

.project-link {
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--accent-color);
}

.external-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.project-link:hover .external-icon {
    transform: translate(3px, -3px);
}

.project-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: var(--bg-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.tech-tag:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Experience */
.experience-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.experience-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

.date {
    color: var(--text-light);
    font-style: italic;
}

.role {
    font-weight: 600;
    color: var(--secondary-color);
    margin: 10px 0;
}

.experience-list {
    list-style-position: inside;
    margin-left: 20px;
}

.experience-list li {
    margin: 8px 0;
    color: var(--text-light);
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.skill-category {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    border: 1px solid var(--border-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.skill-category p {
    color: var(--text-light);
    line-height: 1.6;
}

.key-skills {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.key-skills h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.skills-list li {
    padding: 10px 15px;
    background-color: var(--white);
    border-radius: 5px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Education */
.education-item,
.languages,
.volunteering {
    margin-bottom: 30px;
}

.education-item h3,
.languages h3,
.volunteering h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.education-item p,
.languages p,
.volunteering p {
    color: var(--text-light);
    margin: 5px 0;
}

/* Certifications */
.cert-list {
    list-style: none;
}

.cert-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    margin-bottom: 10px;
    background-color: var(--bg-color);
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
    border: 1px solid var(--border-color);
}

.cert-name {
    font-weight: 500;
    color: var(--text-color);
}

.cert-date {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: #1a1f2e;
    color: var(--text-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Responsive design */
@media (max-width: 768px) {
    .name {
        font-size: 2rem;
    }

    .title {
        font-size: 1.2rem;
    }

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

    .mobile-menu-toggle {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
    }

    .nav-list.active {
        max-height: 400px;
        padding: 20px 0;
    }

    .nav-list li {
        text-align: center;
        padding: 10px 0;
    }

    .section {
        padding: 25px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-name {
        font-size: 1.5rem;
    }

    .project-card {
        padding: 20px;
    }

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

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

    .cert-list li {
        flex-direction: column;
        gap: 5px;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {

    .nav,
    .footer {
        display: none;
    }

    .section {
        box-shadow: none;
        page-break-inside: avoid;
    }

    body {
        background-color: #ffffff;
    }

    :root {
        --text-color: #333;
        --text-light: #666;
        --bg-color: #f8f9fa;
        --white: #ffffff;
        --border-color: #e0e0e0;
    }
}