/* =========================================
   VARIÁVEIS E RESET
   ========================================= */
:root {
    --magenta: #d6006e;
    --cyan: #00a3e0;
    --yellow: #ffd100;
    --dark-grey: #2c2d31;
    --black-bg: #111111;
    
    --primary-gradient: linear-gradient(135deg, var(--magenta) 0%, #9c27b0 100%);
    
    --text-white: #ffffff;
    --text-gray: #cccccc;
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: #f4f4f4;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* =========================================
   HEADER & NAVEGAÇÃO
   ========================================= */
header {
    background-color: #ffffff;
    height: 90px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: visible;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    height: 210px;
    width: auto;
    display: block;
    margin-top: 5px; 
    transition: transform 0.3s ease;
    filter: none !important;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
}
.nav-links a {
    color: var(--dark-grey);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--magenta);
}

.menu-toggle {
    display: none;
    color: var(--dark-grey);
    font-size: 2rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding-top: 50px;
    padding-bottom: 100px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.btn-orcamento {
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    background-color: white;
    color: var(--magenta);
}

.btn-orcamento:hover {
    transform: scale(1.05);
    color: var(--dark-grey);
}

/* =========================================
   HERO SLIDER
   ========================================= */
.hero-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
    margin-top: -50px;
}

.hero-slider {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 4px solid white;
    background-color: #000;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-controls button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: 0.3s;
}

.slider-controls button:hover {
    background: var(--magenta);
}

#prevBtn { left: 20px; }
#nextBtn { right: 20px; }

/* =========================================
   BARRA DE CLIENTES
   ========================================= */
.clients-bar {
    background: var(--black-bg);
    padding: 40px 0;
    overflow: hidden;
    border-bottom: 1px solid #333;
    white-space: nowrap;
    position: relative;
}

.clients-marquee {
    display: inline-flex;
    align-items: center;
    gap: 0; 
    animation: marquee 40s linear infinite;
}

.clients-marquee img {
    height: 70px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
    transition: 0.3s;
    margin: 0 40px;
}

.clients-marquee img:hover {
    opacity: 1;
    transform: scale(1.1);
}

.dot {
    color: #444;
    font-size: 1.5rem;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* =========================================
   SEÇÃO DE SERVIÇOS
   ========================================= */
.services-section { 
    background-color: var(--dark-grey);
    color: white;
    padding: 80px 0; 
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    border-bottom: 2px solid #444;
    padding-bottom: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-right: 30px;
    color: white;
}

.section-header p {
    color: var(--text-gray);
    max-width: 400px;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid #444;
    transition: 0.3s;
    cursor: pointer;
}

.service-item:hover {
    background-color: rgba(255,255,255,0.05);
    padding-left: 15px;
}

.service-item img {
    width: 130px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 30px;
    border: 2px solid #555;
    transition: 0.3s;
}

.service-item:hover img {
    border-color: var(--cyan);
}

.service-info { flex: 1; }

.service-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 700;
}

.service-info p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* Esconder seta original */
.service-arrow {
    display: none !important;
}

/* =========================================
   PORTFÓLIO
   ========================================= */
.portfolio-section {
    background: #f9f9f9;
    padding: 70px 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark-grey);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #333; 
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--magenta);
}

.card-content {
    display: flex;          
    align-items: stretch;   
    background-color: var(--dark-grey);
    min-height: 160px;
}

.portfolio-card .portfolio-image-box {
    width: 40%;
    position: relative;
    cursor: pointer;
}

.portfolio-card .portfolio-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-caption {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.portfolio-caption h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 800;
}

.portfolio-caption p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ddd;
    margin: 0;
}

.video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 50%;
    pointer-events: none;
}

/* =========================================
   MODAL PADRÃO (VÍDEO)
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background-color: #000;
    width: 90%;
    max-width: 800px;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

.close-modal {
    color: white;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 35px;
    cursor: pointer;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* =========================================
   MODAL DE SERVIÇOS (GALERIA)
   ========================================= */
.service-modal-content {
    background-color: transparent;
    box-shadow: none;
    max-width: 900px;
    width: 95%;
    text-align: center;
}

.service-slider-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#service-img-display {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border: 2px solid #333;
    object-fit: contain;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.service-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.service-controls button {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: all;
    border-radius: 50%;
    margin: 0 -20px;
    transition: 0.3s;
}

.service-controls button:hover {
    background-color: var(--magenta);
    transform: scale(1.1);
}

.close-service-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 3001;
    transition: 0.3s;
}

.close-service-modal:hover {
    color: var(--magenta);
}

.service-counter {
    color: #fff;
    margin-top: 15px;
    font-size: 1rem;
    font-weight: 600;
    background: rgba(0,0,0,0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* =========================================
   QUEM SOMOS E FOOTER
   ========================================= */
.about-section {
    background-color: var(--dark-grey);
    color: white;
    padding: 80px 0;
    border-top: 1px solid #444;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-video video {
    width: 100%;
    max-width: 400px;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    border: 1px solid #555;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    border-left: 5px solid var(--magenta);
    padding-left: 15px;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

.about-text strong {
    color: #ffffff;
    font-weight: 700;
}

.footer-cta {
    background: var(--primary-gradient);
    text-align: center;
    padding: 70px 20px;
    color: white;
}

.footer-cta h2 { font-size: 2.2rem; font-weight: 800; }

footer {
    background: var(--dark-grey);
    color: var(--text-gray);
    padding: 70px 0 30px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-col h4 { color: white; margin-bottom: 25px; text-transform: uppercase; }

.footer-col ul li:hover {
    color: var(--cyan);
    transform: translateX(5px);
    cursor: pointer;
}

.social-icons { display: flex; gap: 15px; }

.social-icons a {
    width: 45px; height: 45px;
    background: #444;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: white;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: white;
    width: 65px; height: 65px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    z-index: 2000;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */
@media (max-width: 992px) {
    .menu-toggle { display: block; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 30px 0;
        gap: 25px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        text-align: center;
    }

    .nav-links.active { display: flex; }
    
    .logo-img { height: 70px; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-slider { height: 250px; }
    .about-content { flex-direction: column; gap: 30px; }
    .about-text h2 { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; }
    .card-content { flex-direction: column; }
    .portfolio-card .portfolio-image-box, .portfolio-caption { width: 100%; }
    
    .service-controls button {
        margin: 0;
        padding: 10px 15px;
        font-size: 1.2rem;
    }
}