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

body, html {
    width: 100%;
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden; 
}

/* Canvas fixo no fundo */
#trail-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* Seção principal (Hero) */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.presentation-card {
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    max-width: 650px;
    text-align: center;
    pointer-events: none; 
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #d1d1d1;
}

.highlight {
    color: #4facfe;
    font-weight: bold;
}

/* --- Estilos do Carrossel (Linha do Tempo) --- */
.timeline-section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.timeline-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #ffffff;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    align-items: center;
}

.carousel-container {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: center;
}

.timeline-content {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.2);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: border-color 0.3s ease;
}

.timeline-content:hover {
    border-color: rgba(79, 172, 254, 0.8);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.1);
}

.timeline-date {
    display: inline-block;
    color: #00f2fe;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.timeline-role {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 10px;
}

.timeline-desc {
    color: #aaa;
    font-size: 1.1rem;
}

/* Botões de Navegação */
.carousel-btn {
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #4facfe;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.carousel-btn:hover {
    background: #4facfe;
    color: #000;
    box-shadow: 0 0 15px #4facfe;
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

/* Indicadores (Bolinhas) */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #4facfe;
    box-shadow: 0 0 10px #00f2fe;
    transform: scale(1.2);
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .prev-btn { left: 0; }
    .next-btn { right: 0; }
    .carousel-wrapper { padding: 0 40px; }
}

/* --- Estilos da Seção de Projetos --- */
.projects-section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 80vh;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #ffffff;
}

.projects-grid {
    display: grid;
    /* Isso cria um grid responsivo automático: 1 coluna no celular, várias no PC */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
}

.project-card {
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(79, 172, 254, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.8);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05); /* Pequeno zoom na imagem ao passar o mouse */
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    color: #00f2fe;
    margin-bottom: 12px;
}

.project-info p {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #4facfe;
    color: #4facfe;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #4facfe;
    color: #000;
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.5);
}

@media (max-width: 768px) {
    /* Diminui os botões e os aproxima da borda */
    .prev-btn { left: 0px; width: 40px; height: 40px; font-size: 1.2rem; }
    .next-btn { right: 0px; width: 40px; height: 40px; font-size: 1.2rem; }
    
    /* Cria um espaço seguro para os botões não sobreporem a caixa de texto */
    .carousel-wrapper { padding: 0 50px; } 

    /* Reduz o espaçamento interno da caixa para caber mais texto */
    .timeline-content {
        padding: 25px 15px; 
    }

    /* Reduz o tamanho das fontes para não quebrar as palavras */
    .timeline-role {
        font-size: 1.4rem; 
    }

    .timeline-date {
        font-size: 0.85rem; 
    }

    .timeline-desc {
        font-size: 1rem;
    }

    /* Reduz o título principal da seção */
    .timeline-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* --- Seções Sobre e Contato --- */
.about-section, .contact-section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p, .contact-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #d1d1d1;
    margin-bottom: 20px;
}

.contact-btn {
    margin-top: 20px;
    font-size: 1.2rem;
    padding: 15px 30px;
}

/* --- Rodapé --- */
footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

footer p {
    color: #888;
    font-size: 1rem;
    margin-bottom: 10px;
}

footer a {
    color: #4facfe;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00f2fe;
    text-decoration: underline;
}