/* Estilos base e variáveis */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-color: #374151;
    --bg-color: #f9fafb;
}

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

body {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Add these new styles for the profile photo */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-info {
    text-align: center;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.profile-title {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

/* Update existing header styles */
header {
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    padding: 4rem 0;
    margin-bottom: 20px;
    position: relative;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
}

.social-links i {
    font-size: 1.5rem;
}

main {
    padding: 4rem 0;
}

section {
    margin-bottom: 4rem;
}

h2 {
    font-size: 1.875rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.course-year {
    margin-bottom: 2rem;
}

.course-year h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

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

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.course-name {
    font-weight: 500;
    font-size: 0.95rem;
}

.course-grade {
    font-weight: 600;
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border-radius: 4px;
    transition: width 0.5s ease;
}

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

.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

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

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

.skill-list li {
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #e0e7ff;
    color: var(--primary-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    margin: 0.25rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: var(--primary-dark);
}

.download-btn i {
    margin-right: 0.5rem;
}

footer {
    background-color: #f3f4f6;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.year-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.year-header:hover {
    background-color: #f8fafc;
}

.year-header h3 {
    margin: 0;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.year-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.year-average {
    padding: 0.25rem 0.75rem;
    background-color: #e0e7ff;
    color: var(--primary-color);
    border-radius: 9999px;
    font-weight: 600;
}

.toggle-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.year-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.year-content.active {
    display: block;
    opacity: 1;
}

.rotate-icon {
    transform: rotate(180deg);
}

.hobby-description {
    color: var(--text-color);
    margin-top: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

#skills .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#skills .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#skills .skill-category h3 i {
    font-size: 1.2rem;
}

#hobbies .card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#hobbies .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#hobbies .skill-category h3 i {
    font-size: 1.2rem;
}

.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.language-btn {
    background: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.language-btn.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

.language-btn img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
}

.language-btn span {
    color: white;
    font-size: 0.875rem;
}

/* Melhorias para Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    header {
        padding: 3rem 0;
    }

    main {
        padding: 2rem 0;
    }

    .profile-name {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .profile-title {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    h1 {
        font-size: 2rem;
    }

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

    .course-grade {
        margin-top: 0.25rem;
    }

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

    .year-header {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .year-info {
        width: 100%;
        justify-content: space-between;
    }

    .download-btn {
        width: 100%;
        margin-bottom: 0.5rem;
        justify-content: center;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

/* Otimizações para Telas Muito Pequenas */
@media (max-width: 480px) {
    .language-switcher {
        top: 0.5rem;
        right: 0.5rem;
    }

    .language-btn {
        padding: 0.25rem 0.5rem;
    }

    .language-btn img {
        width: 20px;
        height: 14px;
    }

    .language-btn span {
        font-size: 0.75rem;
    }

    .profile-photo {
        width: 140px;
        height: 140px;
    }

    .card {
        padding: 1rem;
    }

    .year-average {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .course-name {
        font-size: 0.875rem;
    }

    section {
        margin-bottom: 2.5rem;
    }
}