@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

html, body {
  margin: 0 !important;
  width: 100%;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background-color: #1d1d1f;
  color: white;
  font-family: 'Poppins', sans-serif;
}

body.menu-open {
    overflow: hidden;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

*:focus-visible {
    outline: 2px solid #f5f5f7;
    outline-offset: 2px;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

nav.scrolled {
    padding: 1rem 0;
    background-color: rgba(29, 29, 31, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-wrap: nowrap;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav-links {
    display: flex;
    gap: 4rem;
}

li a {
    position: relative;
    color: white;
    font-weight: 500;
}

li a::before {
    position: absolute;
    content: '';
    width: 0;
    left: 0;
    height: 2px;
    top: 25px;
    border-radius: 1rem;
    transition: 0.3s ease-in-out;
    background: linear-gradient(90deg, #0071e3, #00c2ff);
}

li a:hover::before {
    width: 100%;
}

.visit-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    background: linear-gradient(135deg, #0071e3, #00c2ff);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 113, 227, 0.4);
    filter: brightness(1.1);
}

.visit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
    filter: brightness(1.1);
}   

#menu-icon {
    display: none;
    font-size: 2rem;
}

@media (max-width: 968px) {
    nav {
        padding: 1rem 0;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: 100vh;
        background: #1d1d1f;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-links li a {
        font-size: 1.6rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-block;
    }

    .nav-links li a:hover {
        color: #fff;
        transform: translateX(8px);
    }

    /* Ajuste do pseudo-elemento de underline para o mobile */
    .nav-links li a::before {
        top: auto;
        bottom: -8px;
        height: 3px;
        background: linear-gradient(90deg, #0071e3, #00c2ff);
        border-radius: 10px;
    }

    #menu-icon {
        display: block;
        z-index: 1001;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    #menu-icon.ri-close-line {
        transform: rotate(90deg);
    }

    .visit-btn {
        margin-right: 0;
        width: 80%;
        text-align: center;
    }
}

section {
    min-height: 100vh;
    padding: 10rem 0;
    width: 100%;
    position: relative;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about .about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem
}

.info-box {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 9rem;
}

.info-box h3 {
    font-size: 1.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.info-box h1 {
    font-size: 4rem;
    font-weight: 600;
}

.info-box span {
    background-clip: text;
    color: white;
    font-size: 2rem;
}

.sociais {
    display: flex;
    gap: 2rem;
}

.sociais a {
    font-size: 2.5rem;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    color: #f5f5f7;
}

.sociais a:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .info-box h3 {
        font-size: 1.4rem;
    }
    .info-box h1 {
        font-size: 2.8rem;
    }
    .info-box span {
        font-size: 1.5rem;
    }
    .sociais a {
        font-size: 2rem;
    }
}

.section-title {
    text-align: center;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 3rem;
}

/* ... (estilos globais e de nav, header) ... */

/* --- Título da seção (centralizado) --- */
.title-experience {
    font-size: 50px;
    font-weight: 500; 
    margin-bottom: 4rem; /* Espaço para o grid */
}

/* --- Layout Principal (Grid de 2 Colunas) --- */
.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas iguais */
    gap: 4rem; /* Espaço entre as colunas */
    align-items: start; /* Alinha o conteúdo ao topo */
}

/* --- Coluna da Esquerda (Texto) --- */
.text-column {
    display: flex;
    flex-direction: column;
}

.description {
    font-size: 1.1rem;
    color: #b3b3b7;
    line-height: 1.6;
    margin-bottom: 2rem; /* Espaço entre parágrafos */
}

/* --- Estatísticas --- */
.stats-container {
    display: flex;
    gap: 3rem; /* Espaço entre os itens */
    margin-top: 2rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: #b3b3b7;
}

/* --- Estilo dos Cartões --- */
.cards-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
    min-width: 280px;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Ícone */
.about-card i {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #0071e3, #00c2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Conteúdo do Cartão - experience */
.experience-section .card-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #f5f5f7;
}

.experience-section .card-content p {
    font-size: 0.95rem;
    color: #86868b;
    line-height: 1.4;
    margin: 0   ;
}

/* --- Animação de Revelação --- */
/* Definição única centralizada abaixo, perto dos estilos de projects */

/* --- Responsividade --- */
@media (max-width: 968px) {
    .experience-layout {
        grid-template-columns: 1fr; /* Empilha as colunas em tablets/celulares */
        gap: 3rem;
    }

    .title-experience {
        margin-bottom: 3rem;
    }

    .stats-container {
        justify-content: center; /* Centraliza as estatísticas */
    }
}

@media (max-width: 600px) {
    .cards-column {
        grid-template-columns: 1fr; /* Empilha os cartões em celulares menores */
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }
}

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

/* --- Seção Projects --- */
.projects-section {
    padding: 8rem 0; /* Espaçamento vertical generoso */
}

.section-header {
    text-align: left;
    margin-left: 3rem;
    margin-bottom: 3rem;
}

.section-header .section-title {
    font-size: 3rem;
    text-align: left;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #b3b3b7;
    line-height: 1.6;
    max-width: 700px;
}

/* --- Grid de Projetos --- */
.projects-grid {
    gap: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: center;
}

/* --- Estilo dos Cards --- */
.project-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 490px;
    margin: 0 auto;
    height: auto;
    min-height: 300px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estilo específico para a imagem do dashboard (fundo claro) */
.dashboard-image img {
    background-color: #f5f5f7; /* Cor de fundo clara para o dashboard */
    padding: 2rem; /* Espaçamento interno */
    object-fit: contain; /* Mostra a imagem inteira sem cortar */
}

/* Conteúdo do Card - projects */
.project-card .card-content {
    padding: 2.5rem; /* Padding generoso */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Faz o conteúdo crescer para preencher o card */
}

.project-card .card-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-card .card-content p {
    font-size: 1.1rem;
    color: #b3b3b7;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Tags de Tecnologia */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background-color: rgba(255, 255, 255, 0.08); /* Fundo sutil */
    color: #b3b3b7;
    padding: 0.6rem 1.2rem;
    border-radius: 3rem; /* Bordas arredondadas (pílula) */
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hover nos Cards */
.project-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.project-card:hover .card-image-container img {
    transform: scale(1.05);
}

/* --- Animação de Revelação (definição única) --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Garante que o hover dos cards funcione APÓS a revelação ser concluída */
.reveal.visible.about-card:hover,
.cards-column .reveal.visible:hover {
    transform: translateY(-8px);
}

.reveal.visible.project-card:hover,
.projects-grid .reveal.visible:hover {
    transform: translateY(-8px);
}

/* --- Responsividade --- */
@media (max-width: 968px) {
    .section-title {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr; /* Empilha os cards em uma coluna */
        gap: 2rem;
    }

    .card-image-container {
        height: 300px;
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2.5rem;
    }

    .project-card .card-content {
        padding: 1.5rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

.contact-content {
    width: 100%;
    min-height: auto;
    padding: 4rem 1rem 1.5rem;
    text-align: center;
}

.title-contact {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-size: 3rem;
    color: #f5f5f7;
    margin-bottom: 4rem;
    margin-top: 4rem;
}

.contact p {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: #d9d9db;
    line-height: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
}

.btn-mailto {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 100px;
    border: 1px solid #5d5d5d;
    color: #f5f5f7;
    background-color: #1d1d1f;
    cursor: pointer;

    transition: background-color 0.3s ease, 
                transform 0.2s ease, 
                color 0.3s ease;
}

.btn-mailto:hover {
    background-color: #f5f5f7;
    color: #1d1d1f;
    transform: scale(1.03);
}

.end-page {
    min-height: auto;
    padding: 1.5rem 1rem 2rem;
    text-align: center;
    color: #b3b3b7;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .reveal.visible {
        opacity: 1;
        transform: none;
    }
}