:root {
    --primary-color: #f5f5fa;
    --primary-color-light: #e3e3ff;
    --secondary-color: #e0f7fa;
    --accent-color: #7c3aed ou #00bfae;
    --dark-color: #d6d6d6;
    --light-color: #fff;
    --text-color: #23243a;
    --text-color-light: #222 ou #333;
}

@media (max-width: 900px) {
    :root {
        --primary-color: #f5f5fa;
        --primary-color-light: #e3e3ff;
        --secondary-color: #e0f7fa;
        --accent-color: #7c3aed;
        --dark-color: #d6d6d6;
        --light-color: #fff;
        --text-color: #23243a;
        --text-color-light: #222;
    }

    body, .about-text p, .project-info p, .course-card, .footer-content p, #contato, #contato input, #contato textarea {
        color: var(--text-color) !important;
        background: var(--light-color) !important;
    }

    #desc-box {
        color: var(--text-color);
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 80%) !important;
    }
}

@media (max-width: 900px) {
    .about-img-container, .about-img, .about-img-hover, .about-img-border {
        margin: 0px auto;
        width: 140px !important;
        height: 140px !important;
    }

    .intro-img {
        margin: 0px auto;
        display: none;
        width: 100px !important;
        height: 100px !important;
    }

    .project-image {
        height: 120px !important;
        background-size: contain !important;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: flex;
        flex-direction: column;
        gap: 1.2rem;
        background: var(--light-color);
        position: fixed;
        top: 0px;
        right: 0px;
        height: 100vh;
        width: 260px;
        max-width: 90vw;
        border-radius: 0px 0px 0px 24px;
        box-shadow: rgba(0, 0, 0, 0.1) -4px 0px 24px;
        z-index: 9999;
        padding: 2.5rem 1.5rem 1.5rem;
        align-items: flex-start;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    nav ul.active {
        transform: translateX(0px);
        opacity: 1;
        pointer-events: auto;
    }

    nav a {
        color: var(--text-color);
        padding: 1rem 0.5rem;
        border-bottom: 1px solid rgb(238, 238, 238);
        width: 100%;
        text-align: left;
        background: none;
        font-size: 1.1rem;
    }

    nav a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .about-text h2, #projects h2, #skills h2, .section-title {
        font-size: 1.3rem;
        color: var(--accent-color);
    }

    .about-text p, .project-info p, .course-card p {
        font-size: 0.95rem;
        color: var(--text-color);
    }
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.6;
}

.about-text h2, #projects h2, #skills h2, .section-title {
    color: var(--accent-color);
    text-shadow: rgba(0, 0, 0, 0.1) 0px 2px 8px;
}

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

body {
    background-color: var(--light-color);
    color: var(--text-color);
    font-family: "Plus Jakarta Sans", sans-serif;
    line-height: 1.6;
}

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

header {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 1.5rem 0px;
    box-shadow: rgba(0, 0, 0, 0.08) 0px 2px 10px;
    position: sticky;
    top: 0px;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: rgb(35, 36, 58);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--dark-color);
    cursor: pointer;
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
    padding: 0.5rem 0px;
}

nav a:hover {
    color: rgb(173, 173, 173);
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 0px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    nav ul.active {
        display: flex;
    }
}

.about {
    padding: 4rem 0px;
    background: linear-gradient(135deg, #85858d, var(--secondary-color));
}

.about-img-container {
    position: relative;
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img, .about-img-hover {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 24px;
    opacity: 1;
    transition: border-color 0.3s;
    pointer-events: none;
}

.about-img-container:hover .about-img-border {
    animation: 1.5s linear 0s infinite normal none running spin;
}

.about-img-hover {
    opacity: 0;
    z-index: 2;
    animation: auto ease 0s 1 normal none running none;
}

.about-img-hover.fade-in {
    animation: 2.5s ease 0s 1 normal forwards running fadeInImg;
}

.about-img-hover.fade-out {
    animation: 1.5s ease 0s 1 normal forwards running fadeOutImg;
}

@keyframes fadeInImg {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOutImg {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.about-img-border {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: 2.5s linear 0s infinite normal none running spin;
    transition: animation-direction 0.3s;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 8px 24px;
}

.about-img-container:hover .about-img-border {
    animation-direction: reverse;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.intro {
    padding: 4rem 0px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.intro-img {
    width: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-character img {
    width: 64px;
    animation: 6s linear 0s infinite normal none running run;
}

@keyframes run {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(100%);
    }
}

.download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
}

.about-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: none;
}

.about-text {
    flex: 1 1 0%;
    max-width: 600px;
}

.about-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: "Space Grotesk", sans-serif;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .about-img {
        margin-bottom: 1rem;
    }

    .about-img-container {
        margin-bottom: 1rem;
    }
}

#projects {
    background-color: var(--primary-color);
    padding: 4rem 0px;
}

#projects h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-family: "Space Grotesk", sans-serif;
    text-align: center;
}

#projects p {
    max-width: 700px;
    margin: 0px auto 3rem;
    text-align: center;
    color: rgb(35, 36, 58);
}

.projects-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow: hidden;
    padding-bottom: 2rem;
    position: relative;
    width: 100%;
    min-height: 340px;
}

#galeiriaProjetos {
    overflow: hidden;
    width: 100%;
    position: relative;
}

#skills {
    background: var(--light-color);
    padding: 4rem 0px;
}

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

.skills-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 2.5rem;
}

#skills h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: "Space Grotesk", sans-serif;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: 30s linear 0s infinite normal none running scroll-carousel;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-track {
    background: var(--light-color);
}

.carousel-item {
    min-width: 120px;
    max-width: 160px;
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 1.2rem 1rem;
    text-align: center;
    color: var(--text-color);
    box-shadow: rgba(0, 0, 0, 0.07) 0px 2px 8px;
    flex: 0 0 auto;
    font-size: 1rem;
    transition: transform 0.2s;
}

.carousel-item:hover {
    transform: translateY(-6px) scale(1.05);
    background: var(--accent-color);
    color: rgb(255, 255, 255);
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes carousel-move {
    0% {
        transform: translateX(0px);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 900px) {
    #skills .container {
        max-width: 100%;
        padding: 0px 10px;
    }

    .carousel-track {
        gap: 1rem;
    }

    .carousel-item {
        min-width: 100px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    #skills {
        padding: 2rem 0px;
    }

    #skills h2 {
        font-size: 1.3rem;
    }

    .carousel-item {
        min-width: 80px;
        font-size: 0.85rem;
        padding: 0.7rem 0.5rem;
    }
}

.projects-container:hover .carousel-track {
    animation-play-state: paused;
}

#carousel-linguagens {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 20px;
    scroll-snap-type: x mandatory;
}

#carousel-linguagens .project-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 120px;
    text-align: center;
}

@media (max-width: 768px) {
    #carousel-linguagens {
        gap: 12px;
        padding: 16px;
    }

    #carousel-linguagens .project-card {
        width: 100px;
    }

    #carousel-linguagens img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    #carousel-linguagens .project-card {
        width: 80px;
    }

    #carousel-linguagens img {
        height: 36px;
    }
}

#carousel-linguagens .project-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 120px;
}

.project-card {
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 5px 15px;
    border: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-width: 300px;
    flex: 0 0 300px;
    transition: transform 0.2s;
}

.project-card:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 12px 24px;
    transform: scale(1.05);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-info p {
    color: rgb(176, 176, 208);
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.project-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    color: rgb(255, 237, 237);
    background-color: rgb(34, 34, 34);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid transparent;
    align-self: center;
    margin-top: auto;
    transition: 0.3s;
}

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

#trajetoria {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color) 80%);
    color: var(--text-color);
}

#trajetoria h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--accent-color);
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    max-width: 700px;
    margin: 0px auto;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0px;
    bottom: 0px;
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    outline: none;
    position: relative;
    padding-left: 3rem;
    animation: 0.6s ease 0s 1 normal forwards running fadeInUp;
    opacity: 0;
    transform: translateY(20px);
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.9s;
}

.timeline-item:focus, .timeline-item:hover {
    color: rgb(169, 140, 216);
}

.circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid rgb(255, 255, 255);
    position: absolute;
    left: 9px;
    transition: background 0.3s;
}

.timeline-item:focus .circle, .timeline-item:hover .circle {
    background: var(--primary-color-light);
    border-color: var(--accent-color);
}

.timeline-item {
    color: var(--text-color);
}

p {
    margin: 0px;
    font-size: 1.1rem;
}

#desc-box {
    max-width: 700px;
    margin: 2rem auto 0px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: rgba(26, 2, 10, 0.98) 0px 0px 15px;
    min-height: 80px;
    transition: background-color 0.3s;
    color: rgb(35, 36, 58);
    background: linear-gradient(135deg, #85858d, var(--secondary-color));
}

@keyframes fadeInUp {
    100% {
        opacity: 1;
        transform: translateY(0px);
    }
}

.cursos-section {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.section-subtitle {
    color: rgb(35, 36, 58);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0px auto;
}

.course-card {
    background-color: var(--light-color);
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 25px;
    box-shadow: rgba(77, 4, 32, 0.4) 0px 0px 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(77, 4, 32, 0.2) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: opacity 0.5s;
    opacity: 0;
}

.course-card:hover::before {
    opacity: 1;
}

.course-card:hover {
    box-shadow: rgba(77, 4, 32, 0.7) 0px 0px 30px;
}

.course-card .icon {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.course-card h3 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.course-card .inst {
    color: white;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.course-card p {
    font-size: 1rem;
    line-height: 1.4;
}

footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 3rem 0px;
}

.footer-content {
    max-width: 600px;
    color: rgb(35, 36, 58);
    margin: 0px auto;
}

.footer-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

#contato {
    background: var(--primary-color);
    color: var(--text-color);
    padding: 4rem 1rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#contato h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

#contato .container {
    max-width: 600px;
    margin: 0px auto;
}

#contato form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

#contato input, #contato textarea {
    background-color: var(--light-color);
    color: var(--text-color);
    border: 1px solid var(--dark-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
}

#contato input:focus, #contato textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

#contato textarea {
    resize: vertical;
    min-height: 120px;
}

#contato button {
    background: rgb(34, 34, 34);
    color: rgb(255, 255, 255);
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

#contato button:hover {
    background: #00bfae;
    transform: scale(1.03);
}

.download-btn {
    display: inline-block;
    margin-top: 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
    color: rgb(35, 36, 58);
}

.download-btn:hover {
    background: var(--accent-color);
    color: rgb(35, 36, 58);
}

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

.social-links a {
    color: white;
    font-size: 1.3rem;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .logo span, .menu-toggle, .container p, .section-subtitle {
        color: rgb(35, 36, 58) !important;
    }
}

@media (min-width: 768px) {
    .close-menu {
        display: none;
    }
}

@media (max-width: 768px) {
    .close-menu {
        display: none;
        position: fixed;
        top: 24px;
        right: 32px;
        background: none;
        border: none;
        font-size: 2rem;
        color: var(--text-color);
        cursor: pointer;
        z-index: 10001;
    }

    nav ul.active ~ .close-menu, .close-menu.active {
        display: block;
    }
}
