﻿/* ======================================== */
/* VARIÁVEIS ALINHADAS AO INDEX             */
/* ======================================== */
:root {
    --nav-bg-start: #000000;
    --nav-bg-end: #000000;
    --footer-bg-start: #000000;
    --footer-bg-end: #000000;
    --brand-red: #E31E24;
    --text-primary: #FFFFFF;
    --text-muted: #9AA3B2;
    --text-light: #CFD7E3;
    --text-secondary: #9AA3B2;
    --edge-line: rgba(255,255,255,0.12);
    --panel: #000000;
    --halo: rgba(255,255,255,0.03);
    --glow: rgba(0,0,0,0.35);
    --card-bg: #111318;
    --card-hover: #191D24;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --info-blue: #3B82F6;
    --bg-primary: #000000;
    --bg-secondary: #000000;
    --border-color: var(--edge-line);
}

/* ======================================== */
/* TIPOGRAFIA GLOBAL                        */
/* ======================================== */
html,
body {
    font-family: "Ebrima", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-primary);
    background-color: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ======================================== */
/* GLASS PANEL                              */
/* ======================================== */
.glass-panel {
    background: rgba(0, 0, 0, 0.9);
    border-radius: 18px;
    border: 1px solid var(--edge-line);
    box-shadow: 0 24px 60px rgba(0,0,0,0.9);
    padding: 3rem 3.5rem;
}

/* ======================================== */
/* HERO                                     */
/* ======================================== */
.news-hero-bg-fill {
    position: absolute;
    inset: 0;
    background: url('https://media.aircraft-technics.com/image/mainimage.webp') center/cover no-repeat;
    /* background-attachment herdado do index.css,
       nas telas pequenas o index força scroll para evitar problemas em mobile */
    filter: blur(18px) brightness(0.75);
    transform: scale(1.08);
    z-index: 0;
}

.news-hero-bg-image {
    position: absolute;
    inset: 0;
    background: url('https://media.aircraft-technics.com/image/mainimage.webp') center/contain no-repeat;
    /* não forçar background-attachment aqui, deixar o index.css controlar desktop e mobile */
    z-index: 1;
    filter: brightness(0.98) contrast(1.02);
}

.news-hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 300px at 70% -50%, rgba(227, 30, 36, 0.18), transparent 60%), radial-gradient(600px 250px at 30% 100%, rgba(227, 30, 36, 0.15), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.85) 75%);
    z-index: 2;
    animation: subtlePulse 10s ease-in-out infinite;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 3;
}

.particles-container,
#particles-js {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.news-hero-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

/* ======================================== */
/* TÍTULO HERO BAND                         */
/* ======================================== */
.hero-title-band {
    display: inline-block;
    padding: 1.5rem 3.5rem;
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    border: 2px solid rgba(255,255,255,0.18);
    box-shadow: 0 12px 35px rgba(0,0,0,0.55);
}

.hero-title-band-text {
    font-size: clamp(2.2rem, 3.4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0;
    color: var(--text-primary);
}

@media (min-width: 1400px) {
    .hero-title-band {
        background: transparent;
        border: none;
        padding: 3rem 0;
        width: 100%;
        text-align: center;
        box-shadow: none;
    }
}

/* ======================================== */
/* ANIMAÇÃO DO HERO                         */
/* ======================================== */
@keyframes subtlePulse {
    0%, 100% {
        opacity: 0.92;
    }

    50% {
        opacity: 1;
    }
}

/* ======================================== */
/* MAIN WRAPPER                             */
/* ======================================== */
.projects-main {
    background-color: #000000;
    border-top: 1px solid var(--edge-line);
    padding-bottom: 4rem;
}

/* ======================================== */
/* TIMELINE                                 */
/* ======================================== */
.projects-details-section {
    padding: 5rem 0 3rem 0;
}

.projects-details-content {
    max-width: 900px;
    margin: 0 auto;
}

.projects-main-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.projects-main-title {
    font-size: clamp(2rem, 3vw, 2.4rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.projects-main-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-style: italic;
}

.projects-timeline {
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.timeline-year-group {
    margin-bottom: 3rem;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 3px solid var(--brand-red);
    padding-left: 1rem;
}

.timeline-projects {
    margin-left: 1rem;
}

.timeline-project {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--edge-line);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

    .timeline-project::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--brand-red);
        opacity: 0.8;
    }

    .timeline-project:hover {
        transform: translateX(8px);
        border-color: var(--brand-red);
        box-shadow: 0 12px 40px rgba(0,0,0,1);
        background: var(--card-hover);
    }

    .timeline-project.coming-soon {
        opacity: 0.7;
        cursor: default;
    }

        .timeline-project.coming-soon::before {
            background: var(--text-muted);
        }

.project-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-red);
    min-width: 120px;
    margin-right: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.timeline-project.coming-soon .project-title {
    color: var(--text-muted);
}

/* ======================================== */
/* GALERIA                                  */
/* ======================================== */
.projects-gallery-section {
    padding: 4rem 0;
    background-color: #000000;
    border-top: 1px solid var(--edge-line);
    border-bottom: 1px solid var(--edge-line);
}

.projects-gallery-content {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--edge-line);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

    .gallery-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 48px rgba(0,0,0,1);
        border-color: var(--brand-red);
    }

.gallery-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

    .gallery-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(227, 30, 36, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view-btn {
    background: var(--text-primary);
    color: var(--brand-red);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .gallery-view-btn:hover {
        background: #000000;
        color: var(--text-primary);
        transform: scale(1.05);
    }

.gallery-info {
    padding: 1.5rem;
}

.gallery-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.gallery-item-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.gallery-item-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ======================================== */
/* CONFIDENCIALIDADE                        */
/* ======================================== */
.confidentiality-section {
    padding: 4rem 0;
    background-color: #000000;
}

.confidentiality-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.confidentiality-icon {
    margin-bottom: 2rem;
}

    .confidentiality-icon svg {
        color: var(--brand-red);
    }

.confidentiality-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.confidentiality-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.confidentiality-assurance {
    font-size: 1.1rem;
    color: var(--brand-red);
    line-height: 1.6;
}

.confidentiality-actions {
    margin-top: 2rem;
}

.confidentiality-btn {
    background: var(--brand-red);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(227, 30, 36, 0.35);
}

    .confidentiality-btn:hover {
        background: #C41A20;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(227, 30, 36, 0.45);
    }

/* ======================================== */
/* MODAL                                    */
/* ======================================== */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 11, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

    .project-modal.active {
        display: flex;
    }

.project-modal-content {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--edge-line);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 60px rgba(0,0,0,0.9);
}

.project-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--edge-line);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
}

    .project-modal-close:hover {
        background: var(--brand-red);
        border-color: var(--brand-red);
    }

.project-modal-body {
    padding: 3rem;
}

/* ======================================== */
/* RESPONSIVO 1024px                        */
/* ======================================== */
@media (max-width: 1024px) {

    .container {
        padding: 0 1.5rem;
    }

    .glass-panel {
        padding: 2.5rem 2.5rem;
    }

    .projects-timeline {
        margin-bottom: 3rem;
    }
}

/* ======================================== */
/* RESPONSIVO 768px - CORREÇÕES IMPORTANTES */
/* ======================================== */
@media (max-width: 768px) {

    .container {
        padding: 0 1.25rem;
    }

    /* remover fundo escuro do título no mobile */
    .hero-title-band {
        padding: 1rem 2rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .hero-title-band-text {
        font-size: 1.8rem;
    }

    .glass-panel {
        padding: 2rem 1.75rem;
    }

    .timeline-project {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-date {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .project-modal-body {
        padding: 2rem 1.5rem;
    }

    .modal-project-details {
        grid-template-columns: 1fr;
    }

    .modal-project-actions {
        flex-direction: column;
    }

    .modal-btn {
        width: 100%;
        text-align: center;
    }

    /* botão menor no mobile */
    .confidentiality-btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.9rem;
        max-width: 260px;
        width: 100%;
        white-space: normal;
        line-height: 1.3;
    }
}

/* ======================================== */
/* RESPONSIVO 480px - CORREÇÃO FINAL        */
/* ======================================== */
@media (max-width: 480px) {

    .container {
        padding: 0 1rem;
    }

    .hero-title-band {
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .hero-title-band-text {
        font-size: 1.5rem;
    }

    .glass-panel {
        padding: 1.75rem 1.5rem;
        border-radius: 14px;
    }

    .projects-main-title {
        font-size: 1.7rem;
    }

    .gallery-title {
        font-size: 1.5rem;
    }

    .project-modal {
        padding: 1rem;
    }

    /* botão ainda menor */
    .confidentiality-btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
        max-width: 220px;
    }
}
