:root {
    --primary-color: #1d1d1f;
    --secondary-color: #010E21;
    --text-color: #1d1d1f;
    --background-color: #ffffff;
    --white: #ffffff;
    --text-button: #00CCFF;
    --gray-light: #f5f5f7;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1rem 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--gray-light);
    color: var(--primary-color);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

#action-button {
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--gray-light);
    color: var(--primary-color);
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding-right: 2rem;
}

.cta-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-image .photo-bg {
    display: inline-block;
    background: linear-gradient(135deg, #f5f5f7 0%, transparent 100%);
    padding: 24px;
    border-radius: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: block;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.005em;
}

#hero h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    line-height: 1.08349;
    letter-spacing: -0.003em;
    text-align: left;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    font-weight: 400;
    line-height: 1.47059;
}

.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--secondary-color);
    color: var(--text-button);
    text-decoration: none;
    border-radius: 980px;
    font-weight: 400;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--text-button);
    color: var(--secondary-color);
    transform: scale(1.02);
}

section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

#sobre {
    background-color: var(--white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--secondary-color);
}

.timeline-item {
    position: relative;
    background-color: var(--white);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: calc(50% - 30px);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
}

.timeline-item:nth-child(even) {
    margin-right: auto;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd)::before {
    left: -37.5px;
}

.timeline-item:nth-child(even)::before {
    right: -37.5px;
}

.timeline-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.timeline-item p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.skill {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.skill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.skill i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.skill span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

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

.social-links a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
}

.social-badges {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 0.5rem;
}

.footer-social-link i {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.footer-social-link span {
    font-size: 0.9rem;
}

.footer-social-link:hover {
    transform: translateY(-3px);
    color: var(--text-button);
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-item::before {
        left: -37.5px !important;
        right: auto !important;
    }
}

.fade-out {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

nav a.active {
    color: var(--secondary-color);
    font-weight: bold;
}

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

.cta-container {
    margin-top: 2rem;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-link i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-link span {
    font-size: 0.9rem;
    font-weight: 400;
}

.social-link:hover {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .cta-container {
        justify-content: center;
        margin-top: 1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-item::before {
        left: -37.5px !important;
        right: auto !important;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.5rem;
    }

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

    .social-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-item {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.education-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.education-content {
    padding: 2rem;
}

.education-content h3 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.education-content .institution {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-content .period {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.education-content .description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .education-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

#certificados {
    background-color: var(--gray-light);
    padding: 5rem 0;
}

.certificates-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 3rem;
}

.certificates-container {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1rem 0;
}

.certificate-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background-color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

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

.certificate-card h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    padding-bottom: 0.2rem;
}

.certificate-card .institution {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    height: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.certificate-card .date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
    height: 1.2rem;
}

.certificate-card .icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    height: 2rem;
    display: flex;
    align-items: center;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-button:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .certificate-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 480px) {
    .certificate-card {
        flex: 0 0 100%;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
    }
}

/* Estilos do Popup de Habilidades */
.skill-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-popup.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.skill-popup.active .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--secondary-color);
}

.popup-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.popup-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 1.5rem;
    }
    
    .popup-title {
        font-size: 1.3rem;
    }
    
    .popup-description {
        font-size: 0.95rem;
    }
}

/* Modal de Formação Acadêmica */
.modal-formacao {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-formacao.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: var(--white);
    margin: auto;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-formacao.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-title {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: left;
    width: 100%;
}

.modal-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    text-align: left;
}

.modal-competencias {
    width: 100%;
}

.modal-competencias ul {
    margin: 0;
    padding-left: 1.2rem;
}

.modal-competencias li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
    .modal-title {
        font-size: 1.2rem;
    }
    .modal-description, .modal-competencias li {
        font-size: 0.95rem;
    }
}

#contato{
    background-color: var(--gray-light);
    padding: 5rem 0;
}

/* Estilos para o formulário de contato */
#contato h2 {
    margin-bottom: 1.5rem;
}

.contato-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 150px;
}

.contato-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contato-form .form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    width: 100%;
}

.contato-form label {
    width: 100px;
    margin-right: 1rem;
    margin-top: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    text-align: right;
}

.contato-form input,
.contato-form textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contato-form .error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0;
    margin-left: 115px;
    display: none;
}

.contato-form input:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contato-form input.invalid,
.contato-form textarea.invalid {
    border-color: #e74c3c;
}

.contato-form button {
    background-color: var(--secondary-color);
    color: var(--text-button);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 115px;
}

.contato-form button:hover {
    background-color: var(--text-button);
    color: var(--secondary-color);
    transform: scale(1.02);
}

#contato-status {
    margin-top: 1rem;
    margin-left: 115px;
    color: var(--secondary-color);
}

.cf-turnstile {
    margin: 0.5rem 0 1.5rem 115px;
    display: flex;
}

@media (max-width: 768px) {
    .contato-form {
        padding: 1.2rem 0.5rem;
        max-width: 98vw;
    }
    .contato-form .form-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .contato-form label {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    .contato-form input,
    .contato-form textarea {
        width: 100%;
    }
    .contato-form button {
        font-size: 1rem;
        margin-left: 0;
    }
    .contato-form .error-message {
        margin-left: 0;
    }
    .cf-turnstile {
        margin-left: 0;
    }
    #contato-status {
        margin-left: 0;
    }
}