/* ==========================================================================
   1. VARIÁVEIS DE CONTROLE (ROOT)
   ========================================================================== */
:root {
    --axel-speed: 30s;
    --axel-gap: 20px;
    --axel-bg-color: #0f1113;
}


@keyframes fade-up {
  0% { opacity: 0; filter: blur(10px); transform: translateY(20px); }
  100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

/* estado inicial (evita piscar durante o delay) */
.hero-text h1,
.hero-text .box-hero,
.hero-text .sub-hero {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  animation: fade-up 0.6s ease-out both; /* 'both' segura antes e depois */
}

.hero-text h1 { animation-delay: 0.3s; }
.hero-text .sub-hero { animation-delay: 0.6s; }
.hero-text .box-hero { animation-delay: 0.1s; }

/* ==========================================================================
   2. ESTRUTURA DA SEÇÃO (LAYOUT PRINCIPAL)
   ========================================================================== */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start; /* Ajustado para colar no topo */
    overflow: hidden;
}

.section-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1032px;
    background-image: url('/home-pura/image/bg-hero.jpg');
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-wrapper {
    /* O container já limita os 1440px aqui */
    display: flex;
    align-items: flex-start; /* Ajustado para colar no topo */
    height: 100vh;
    gap: 50px;
}

/* ==========================================================================
   3. TEXTO E TIPOGRAFIA
   ========================================================================== */
.hero-text {
    width: 50%;
    margin-top: 300px; /* Removido para alinhar ao topo do wrapper */
}

.hero-text h1 {
    font-size: 50px;
    font-weight: 300;
    line-height: 1.2em;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.hero-text span {
    color: var(--color-primary);
    font-weight: 700;
}

.box-hero {
    width: fit-content;
    padding: 10px 30px 10px 30px;
    margin-bottom: 30px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: #25A550;
    border-radius: 1px 1px 1px 1px;
}

.sub-hero {
    font-size: 30px;
    font-weight: 300;
    line-height: 1.6em;
    color: #FFFFFF;
    margin-left: 60px;
    padding-top: 40px;
}

/* ==========================================================================
   4. CONTAINER DE IMAGENS DINÂMICAS (AXEL MAIN)
   ========================================================================== */
.axel-main-container {
    width: 50%;
    height: 1032px;
    position: relative;
    overflow: hidden;
}

.axel-columns-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    gap: var(--axel-gap);
}

.axel-column {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.axel-scroll-track {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.axel-scroll-track img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: var(--axel-gap);
    display: block;
}

/* ==========================================================================
   5. ANIMAÇÕES E EFEITOS VISUAIS
   ========================================================================== */

/* Animações Lineares */
.axel-col-left .axel-scroll-track {
    animation: axelScrollDown var(--axel-speed) linear infinite;
}

.axel-col-right .axel-scroll-track {
    animation: axelScrollUp var(--axel-speed) linear infinite;
}

@keyframes axelScrollUp {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes axelScrollDown {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

/* Efeito de Gradiente (Fades) */
.axel-main-container::before,
.axel-main-container::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 2;
    pointer-events: none;
}

.axel-main-container::before {
    top: 0;
    background: linear-gradient(to bottom, var(--axel-bg-color) 0%, transparent 100%);
}

.axel-main-container::after {
    bottom: 0;
    background: linear-gradient(to top, var(--axel-bg-color) 0%, transparent 100%);
}

/* ==========================================================================
   6. AJUSTES DE RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */

/* Tablet e Dispositivos Médios */
@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --axel-speed: 20s;
        --axel-gap: 10px;
    }

    .axel-main-container {
        width: 100%;
        height: 1032px;
        position: relative;
        overflow: hidden;
        background-color: var(--axel-bg-color);
    }

    .hero-text {
        width: 100%;
        max-width: 500px;
        margin-top: 200px;
    }

    .hero-text h1 {
        font-size: 24px;
    }

    .box-hero {
        font-size: 16px;
        padding: 8px 15px;
        text-align: left;
    }

    .sub-hero {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 30px;
        padding: 0;
        font-size: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --axel-speed: 20s; /* Um pouco mais rápido em telas menores */
        --axel-gap: 10px;
    }
    
    .hero-wrapper {
        flex-direction: column;
    }
    
    .hero-text {
    margin-top: 120px;
    width: 100%;
    }
    .hero-text h1 {
    font-size: 28px;
    text-wrap: balance;
    }
    .sub-hero{
        font-size: 16px;
        margin-left: 0;
        padding-top: 0;
    }
    
    .axel-main-container {
        width: 100%;
    }
}

@media (min-width: 1025px) and (max-width: 1340px) {

    .hero-text {
        width: 100%;
        max-width: 500px;
        margin-top: 30px;
        padding-top: 200px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .box-hero {
        font-size: 16px;
        padding: 8px 15px;
        text-align: left;
    }

    .sub-hero {
        margin-left: 0;
        margin-top: 0;
        margin-bottom: 30px;
        padding: 0;
        font-size: 16px;
    }
}





/* Estilo do Popup */
.axel-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px); /* Efeito de desfoque ao fundo */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.axel-lightbox.active {
    display: flex;
    opacity: 1;
}

/* Imagem dentro do popup */
.lightbox-content {
    max-width: 85%;
    max-height: 80vh;
    position: relative;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.axel-lightbox.active img {
    transform: scale(1);
}

/* Botões de Navegação */
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close { top: 30px; right: 40px; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover {
    color: #ffd700; /* Cor de destaque (ex: ouro/amarelo engenharia) */
    transform: scale(1.1);
}

/* Cursor nas imagens da galeria para indicar clique */
.axel-scroll-track img {
    cursor: pointer;
    transition: 0.3s;
}

.axel-scroll-track img:hover {
    filter: brightness(0.8);
}
