:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --section-bg: #f5f5f5;
  --border-color: #dddddd;
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --light-gray: #ecf0f1;
  --border-radius: 8px;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --section-bg: #2d2d2d;
    --border-color: #404040;
    --primary-color: #ffffff;
    --light-gray: #333333;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

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

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--section-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.title {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.section {
    background-color: var(--section-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.theme-switch {
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px;
    border-radius: 50%;
    background: var(--section-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-switch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.theme-switch i {
    margin: 0;
    font-size: 1.2rem;
}h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

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

.experience-header {
    margin-bottom: 0.5rem;
}

.company, .institution {
    color: var(--secondary-color);
    font-weight: 500;
    display: block;
}

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

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

.project-item {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.project-item:hover {
    transform: translateY(-5px);
}

.project-subtitle {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

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

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.3rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.proficiency {
    color: var(--secondary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .contact-info {
        flex-direction: column;
        gap: 0.5rem;
    }

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

.fas, .fab {
    margin-right: 10px;
    color: var(--secondary-color);
}

.contact-info i {
    width: 20px;
    text-align: center;
}

.section h2 i {
    font-size: 1.2em;
}

.skill-category h3 i {
    font-size: 1.1em;
}


.lang-switch {
    cursor: pointer;
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px;
    border-radius: 50%;
    background: var(--section-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lang-switch:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.lang-switch i {
    margin: 0;
    font-size: 1.2rem;
}
.download-section, .back-to-top {
    position: fixed;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--section-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.download-section {
    bottom: 120px;
}

.back-to-top {
    bottom: 60px;
}

.download-button, .top-button {
    color: var(--secondary-color);
    border: none;
    background: none;
    cursor: pointer;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.download-section:hover, .back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.download-button i, .top-button i {
    margin: 0;
    font-size: 1.2rem;
}