:root {
    --primary-color: #2d3436;
    --secondary-color: #636e72;
    --accent-color: #6c5ce7;
    --background-color: #e6e9ec;
    --card-bg: #ffffff;
    --text-color: #2d3436;
    --light-text: #dfe6e9;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(11, 113, 153, 0.349);
    --transition: all 0.3s ease;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

mark{
    background-color: rgba(0, 204, 255, 0.26);
    border-radius: 20%;
}

em{
    color: rgba(21, 151, 90, 0.699)
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.full-width-container {
    max-width: 1400px; /* Aumenta a largura máxima para esta seção específica */
}

.section {
    padding: 5rem 0;
}

.section-title {
    display: flex;
    font-size: 2.5rem;
    text-align: center;
    justify-content: center;
    margin-bottom: 3rem;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.bg-light {
    background-color: #ffffff;
}

.bg-dark {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.text-white {
    color: #ffffff !important;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #ffffff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* Overlay para fechar o menu ao clicar fora */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 998; /* Abaixo do menu */
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    max-width: 500px;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 400px;
    height: 400px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid #ffffff;
    animation: morph 8s ease-in-out infinite;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morph {
    0% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

/* About Section */
.about-content {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}


.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--secondary-color);
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item .label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item .value {
    color: var(--secondary-color);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 3rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 4px solid var(--accent-color);
    position: absolute;
    border-radius: 50%;
    left: 11px;
    top: 15px;
    z-index: 1;
}

.timeline-date {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.role-group {
    margin-bottom: 1.5rem;
}

.role-group:last-child {
    margin-bottom: 0;
}

.role-group h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.role-group ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.role-group li {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.soft-skills-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.soft-skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    text-align: center;
    background-color: var(--card-bg);
    padding: 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}

.soft-skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: var(--shadow);
    
}

.soft-skill-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.soft-skill-title {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: var(--secondary-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

/* =================
   Education Section (New Styles)
   ================= */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    padding: 2rem;
    border: 5px solid  #3dff8771;
}


.education-grid:hover {
    transition: all 1.5s ease;;
    border-color: #0cbaff75;
}

.education-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    border: 15px solid var(--background-color);
}

.education-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.education-card h4 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.education-date {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.education-status {
    margin-top: auto; /* Pushes status to the bottom */
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    text-align: center;
    align-self: flex-start; /* Aligns to the left */
}

.education-status.in-progress {
    background-color: #e0f2fe; /* Light blue */
    color: #0c4a6e; /* Dark blue */
}

.education-status.completed {
    background-color: #dcfce7; /* Light green */
    color: #166534; /* Dark green */
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category h3 i {
    color: var(--accent-color);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tags span {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Projects Section */
.project-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent-color);
}

.projects-grid {
    display: grid;
    grid-template-rows: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    border-radius: 10%;
    box-shadow: var(--shadow);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tech span {
    background-color: rgba(108, 92, 231, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Contact Section */
.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    /* Kept accent color for visibility */
}

.text-white .contact-card i {
    color: #ffffff;
}

.contact-card span {
    display: block;
    font-size: 1rem;
    word-break: break-all;
}

/* Footer */
footer {
    background-color: #2d3436;
    color: #dfe6e9;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0; /* Remove a margem que empurrava o botão para a direita */
    }

    .social-links {
        justify-content: center; /* Centraliza os ícones */
    }


    .hero-text h1 {
        font-size: 2.5rem;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; /* Começa fora da tela, à direita */
        width: 280px; /* Largura do menu lateral */
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        padding: 6rem 2rem 2rem 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
        z-index: 999;
        align-items: center;
    }
    .nav-links.active {
        display: flex;
        right: 0; /* Posição final quando ativo */
    }

    .hamburger {
        display: block;
        z-index: 1001; /* Garante que o hamburger fique acima de outros elementos */
    }

    /* Animação do Hamburger para 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Mostra o overlay quando o menu está ativo */
    .overlay.active {
        display: block;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
        padding-right: 0;
    }
}

/* Animação de revelação no scroll */
.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* =================
   Certifications Section
   ================= */

.certifications-wrapper {
    overflow-x: scroll;
    padding: 1rem 0 2rem 0; /* Espaço para a barra de rolagem */
    -webkit-overflow-scrolling: touch; /* Rolagem suave em mobile */
}

/* Estilização da barra de rolagem */
.certifications-wrapper::-webkit-scrollbar {
    height: 8px;
}
.certifications-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.certifications-wrapper::-webkit-scrollbar-thumb {
    background: #bdbdbda4;
    border-radius: 10px;
}
.certifications-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.certifications-container {
    display: flex;
    gap: 2rem;
    width: max-content; /* Permite que o container expanda */
    padding: 0 5px; /* Evita que a sombra seja cortada */
}

.certification-card {
    flex: 0 0 320px; /* Largura fixa para cada card */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 4px solid #e9cf3c;
    min-height: 220px;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cert-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.cert-issuer {
    font-weight: 600;
    color: var(--secondary-color);
}

.cert-title {
    font-size: 1.25rem;
    line-height: 1.4;
    flex-grow: 1;
}

.btn-cert {
    align-self: flex-start;
    font-weight: 600;
    color: var(--accent-color);
}

.btn-cert:hover {
    text-decoration: underline;
}


.tech-marquee {
            background-color: #f4f4f4;
            padding: 1rem 0;
            overflow: hidden;
            white-space: nowrap;
            border-top: 1px solid #68ffff86;
            border-bottom: 1px solid #00d8b473;
        }

        .marquee-content {
            display: inline-block;
            animation: marquee 40s linear infinite;
        }

        .marquee-content span {
            font-family: 'Inter', sans-serif;
            font-weight: 500;
            font-size: 1.3rem;
            color: var(--accent-color);
            margin: 0 3rem;
        }

        @keyframes marquee {
            0% {
                transform: translateX(0%);
            }
            100% {
                transform: translateX(-50%);
            }
        }

/* =================
   Custom Cursor
   ================= */

body, a, button, .btn, .hamburger {
    cursor: none;
}

.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out, width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out;
    z-index: 10001;
    background-color: transparent;
}

.cursor-outline {
    position: fixed;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 200, 255, 0.336);
    border-radius: 35%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease-out, width 0.4s ease-out, height 0.4s ease-out, background-color 0.4s ease-out, opacity 0.3s ease-out;
    z-index: 10001;
}

/* Estilo do cursor ao passar por elementos interativos */
.cursor-dot.grow {
    opacity: 0;
}

.cursor-outline.grow {
    width: 60px;
    height: 60px;
    background-color: rgba(231, 92, 219, 0.521);
    border: none;
}

/* Garante que o cursor padrão apareça se o JS falhar ou em iframes */
@media (pointer: coarse) {
    .cursor-dot, .cursor-outline { display: none; }
    body, a, button, .btn, .hamburger { cursor: auto; }
}
