/* =========================
   VARIÁVEIS DE COR
========================= */
:root {
    --primary: #C1121F;
    --primary-dark: #8A0F18;

    --accent: #F77F00;
    --accent-light: #FF9F1C;

    --black-main: #0B090A;
    --black-soft: #161A1D;

    --steel: #2B2D42;
    --gray-light: #E8E8E8;

    --white: #FFFFFF;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gray-light);
    color: var(--steel);
    line-height: 1.6;
}

/* =========================
   HEADER
========================= */
header {
    background: var(--black-main);
    color: white;
    padding: 18px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-bottom: 3px solid var(--primary);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.marca {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-light);
}

.sub {
    font-size: 12px;
    letter-spacing: 2px;
}

/* =========================
   MENU
========================= */

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* =========================
   HERO
========================= */
.hero {
    height: 90vh;
    background-image: url("./images/banner_trabalhador.png") !important;
    background-size: cover;
    background-position: center right; /* puxa o engenheiro mais pra direita */
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-start; /* ESQUERDA */
    text-align: left;
    padding: 0 8%;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.85) 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.1) 100%
    ); /* degradê mais profissional */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero h1 {
    font-size: 64px; /* maior */
    color: var(--accent-light);
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 22px;
    color: white;
    margin-bottom: 30px;
}

.hero .btn {
    font-size: 18px;
    padding: 14px 32px;
    border-radius: 30px;
}
/* =========================
   BOTÕES
========================= */

.btn {
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 30px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* =========================
   SECTIONS
========================= */

section {
    padding: 100px 8%;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
    color: var(--primary);
}

h2::after {
    content: "";
    width: 60px;
    height: 4px;
    background: var(--accent);
    display: block;
    margin: 10px auto 0;
}

/* =========================
   SOBRE
========================= */

.sobre-texto {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.sobre-texto h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.sobre-texto h3 {
    font-size: 28px;
    margin: 40px 0 20px;
}

.sobre-texto p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sobre-texto ul {
    list-style: none;
    padding: 0;
}

.sobre-texto ul li {
    font-size: 18px;
    margin: 10px 0;
    position: relative;
}

.sobre-texto ul li::before {
    content: "✔";
    color: #ff7a00;
    margin-right: 10px;
}

/* =========================
   CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    border-top: 4px solid var(--primary);
}
.icon-service {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}


/* =========================
   SEÇÃO ESCURA
========================= */

.dark {
    background: var(--black-soft);
    color: white;
}

.dark h2 {
    color: var(--accent-light);
}

.dark .card {
    background: #1f1f1f;
    color: white;
}

/* =========================
   PORTFOLIO
========================= */

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 10px;
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.5s;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(to top,
            rgba(193, 18, 31, 0.95),
            rgba(0, 0, 0, 0.3));

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;

    color: white;
    opacity: 0;
    transition: 0.4s;
}

.overlay h3 {
    color: var(--accent-light);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}.portfolio:hover {
    animation-play-state: paused;
}

@keyframes carrosselDireita {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   CARROSSEL
========================= */


.portfolio-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.portfolio {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: carrosselDireita 25s linear infinite;
}

.portfolio-item {
    min-width: 320px;
    flex-shrink: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.portfolio-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

@keyframes carrosselDireita {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}



/* =========================
   CONTATO
========================= */

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    color: var(--accent);
    font-size: 36px;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 12px;
}

.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    color: white;

    border-radius: 50%;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-4px);
}

/* =========================
   FORMULÁRIO
========================= */

.formulario {
    flex: 1;
    background: var(--black-soft);
    padding: 40px;
    border-radius: 10px;
}

.input-group {
    margin-bottom: 20px;
}

.formulario input,
.formulario textarea {
    width: 100%;
    padding: 15px;
    border-radius: 6px;
    border: none;
    background: #1f1f1f;
    color: white;
}

.formulario input:focus,
.formulario textarea:focus {
    outline: 1px solid var(--accent);
}

.btn-form {
    width: 100%;
}

/* =========================
   MODAL
========================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.modal.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #1f1f1f;
    padding: 30px;
    border-radius: 10px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    color: white;
}

.modal-content img {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    margin-bottom: 20px;
}

.close-btn {
    margin-top: 15px;
    background: var(--primary);
    padding: 10px 20px;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */

footer {
    background: var(--black-main);
    color: white;
    text-align: center;
    padding: 20px;
    border-top: 3px solid var(--primary);
}

/* =========================
   MENU MOBILE
========================= */

.menu-mobile {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

.custom-alert {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    padding: 20px;
}

.custom-alert.active {
    opacity: 1;
    pointer-events: all;
}

.custom-alert-box {
    background: linear-gradient(145deg, #111, #1b1b1b);
    color: #fff;
    width: 100%;
    max-width: 420px;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    transform: scale(0.9);
    transition: 0.3s ease;
}

.custom-alert.active .custom-alert-box {
    transform: scale(1);
}

.custom-alert-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    background: linear-gradient(145deg, #d4af37, #b8860b);
    color: #111;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.25);
}

.custom-alert-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #fff;
}

.custom-alert-box p {
    font-size: 16px;
    line-height: 1.5;
    color: #d6d6d6;
    margin-bottom: 22px;
}

.custom-alert-btn {
    background: linear-gradient(145deg, #d4af37, #b8860b);
    color: #111;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.25);
}

/* =========================
   RESPONSIVO
========================= */

@media(max-width:900px) {

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }

    section {
        padding: 80px 6%;
    }

    .contact-container {
        flex-direction: column;
    }

}

@media(max-width:768px) {

    .menu-mobile {
        display: block;
        color: white;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: var(--black-main);
        display: none;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
    }

    nav.active {
        display: block;
    }

    .hero {
        height: 80vh;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 15px;
    }

    h2 {
        font-size: 24px;
    }

}

/* =========================
   HEADER SCROLL EFFECT
========================= */

header.scrolled {
    background: rgba(11, 9, 10, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* =========================
   SCROLL ANIMATION
========================= */

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {

    position: fixed;

    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background: #25D366;

    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

    z-index: 999;

    transition: 0.3s;

}

.whatsapp-float:hover {

    transform: scale(1.1);

}