* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: #ffffff;
    padding: 0 1.5rem 3rem 1.5rem;
    color: #000000;
}

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

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 2rem;
}

.logo {
    text-decoration: none;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.3px;
}

.menu-toggle {
    background: none;
    border: 1px solid #eaeaea;
    font-size: 1.2rem;
    color: #000000;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background 0.2s;
    z-index: 1001;
}

.menu-toggle:hover {
    background: #f5f5f5;
}

.menu-toggle i {
    transition: transform 0.3s ease;
}

.menu-toggle i.rotated {
    transform: rotate(90deg);
}

/* MENU LATERAL */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.5rem;
    transition: right 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1000;
    overflow-y: auto;
}

.side-menu.open {
    right: 0;
}

.side-menu .close-btn {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #666;
    cursor: pointer;
    float: right;
    padding: 0.2rem 0.4rem;
}

.side-menu .close-btn:hover {
    color: #000;
}

.side-menu .menu-title {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
    margin: 2.5rem 0 1.2rem 0;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.side-menu ul li a {
    display: block;
    padding: 0.6rem 0.8rem;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 400;
    transition: background 0.2s;
}

.side-menu ul li a:hover {
    background: #f5f5f5;
}

.side-menu ul li a i {
    width: 24px;
    color: #888;
    margin-right: 0.8rem;
    font-size: 0.9rem;
}

.side-menu .social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
}

.side-menu .social-links a {
    color: #888;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.side-menu .social-links a:hover {
    color: #000;
}

/* ===== GRID DE PROJETOS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

/* TABLET: 2 colunas */
@media (min-width: 640px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* DESKTOP: 3 colunas */
@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.8rem;
    }
}

/* ===== CARD DO PROJETO ===== */
.project-card {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #ffffff;
}

.project-card:hover {
    border-color: #ddd;
}

/* CARROSSEL - UMA IMAGEM POR VEZ */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #fafafa;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
}

.carousel-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* BOTÕES DE NAVEGAÇÃO DO CARROSSEL */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eaeaea;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: background 0.2s, opacity 0.2s;
    z-index: 2;
    opacity: 0.7;
}

.carousel-btn:hover {
    background: #ffffff;
    opacity: 1;
}

.carousel-btn.prev {
    left: 8px;
}

.carousel-btn.next {
    right: 8px;
}

/* INDICADORES (pontinhos) */
.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
}

.carousel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dots span.active {
    background: #ffffff;
}

/* HEADER DO PROJETO */
.project-header {
    padding: 0.8rem 1rem 0.2rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.project-header h2 {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: -0.2px;
}

.project-header i {
    color: #888;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.project-header i.rotated {
    transform: rotate(180deg);
}

/* DETALHES (expansível) */
.project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 1rem;
    color: #444;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-details.open {
    max-height: 400px;
    opacity: 1;
    padding: 0.2rem 1rem 1rem 1rem;
}

.project-details p {
    margin-bottom: 0.6rem;
}

.project-details .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.project-details .tags span {
    background: #f5f5f5;
    color: #333;
    padding: 0.1rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 400;
    border: 1px solid #eee;
}

/* RESPONSIVO - MOBILE */
@media (max-width: 640px) {
    body {
        padding: 0 1rem 2rem 1rem;
    }
    .logo-text {
        font-size: 1rem;
    }
    .project-header h2 {
        font-size: 1rem;
    }
    .side-menu {
        width: 240px;
        right: -250px;
    }
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
}
