/* =========================================
   ESTILOS DA PÁGINA INÍCIO
   ========================================= */

.section-container {
    padding: 3rem 0;
    border-bottom: 1px solid #eaeaea;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 2rem;
}

/* =========================================
   1. HERO / TOPO (GRADIENTE E FADE)
   ========================================= */
.hero-section {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, #000000 0%, #333333 60%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 10%;
    box-sizing: border-box;
    transition: opacity 0.1s ease-out; /* Suaviza a animação via scroll */
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 3rem;
}

.hero-card {
    background-color: #ffffff;
    padding: 2.5rem;
    max-width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 4px;
}

.hero-card h1 {
    font-size: 45px;
    color: #1a1a1a;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-card p {
    font-size: 20px;
    color: #555;
    line-height: 1.5;
}

.hero-logo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo img {
    max-width: 150%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

/* =========================================
   2. ÁREAS DE ATUAÇÃO (LAYOUT SOBRE)
   ========================================= */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 0;
}

.about-section.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
    max-width: 50%;
}

.about-text h3 {
    font-size: 25px;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
}

.about-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
}

.about-media img {
    max-width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.text-left .about-text { text-align: left; }
.text-right .about-text { text-align: right; }

/* =========================================
   3. DIFERENCIAIS
   ========================================= */
.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.diferencial-card {
    background-color: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.diferencial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.diferencial-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    color: #fff;
    padding: 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.diferencial-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.diferencial-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* =========================================
   4. CARROSSEL HORIZONTAL INFINITO (PROJETOS)
   ========================================= */
.carousel-horizontal-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 1rem 0;
    /* Efeito de esfumaçado nas bordas laterais */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.carousel-horizontal-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scrollHorizontal 30s linear infinite;
}

.carousel-horizontal-track:hover {
    animation-play-state: paused;
}

.project-carousel-card {
    width: 220px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.project-carousel-card:hover {
    transform: scale(1.03);
}

.project-carousel-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-carousel-card h4 {
    font-size: 1rem;
    padding: 1rem 0.5rem;
    color: #222;
}

@keyframes scrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   5. MODAL (POP-UP)
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden { display: none; }

.modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
}

.modal-content img {
    max-width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.modal-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .hero-container, .about-section, .about-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    .about-text, .about-media {
        max-width: 100%;
    }
    .text-left .about-text, .text-right .about-text {
        text-align: center;
    }
}