@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Colors */
    --primary-blue: #004085;
    --primary-blue-dark: #002752;
    --industrial-gray: #495057;
    --industrial-gray-light: #f8f9fa;
    --emergency-yellow: #FFC107;
    --emergency-yellow-hover: #e0a800;
    --white: #ffffff;
    --black: #121212;
    --text-color: #333333;
    --text-muted: #666666;

    /* Spacing */
    --section-padding: 100px 5%;
    --container-width: 1200px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Borders & Shadows */
    --border-radius: 12px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);

    /* Transition */
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    background-image:
        radial-gradient(var(--industrial-gray-light) 1px, transparent 0);
    background-size: 40px 40px;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    padding-inline: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--emergency-yellow);
    color: var(--black);
}

.btn-primary:hover {
    background-color: var(--emergency-yellow-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title .divider {
    width: 60px;
    height: 4px;
    background-color: var(--emergency-yellow);
    margin: 0 auto;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    /* Consistent padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, box-shadow 0.3s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-medium);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    color: var(--industrial-gray);
}

nav ul li a:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 64, 133, 0.6);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Quem Somos */
.about {
    padding: var(--section-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Culture (Mission, Vision, Values) */
.culture {
    padding: var(--section-padding);
    background-color: var(--industrial-gray-light);
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.culture-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    text-align: center;
    transition: var(--transition);
}

.culture-card:hover {
    transform: translateY(-10px);
}

.culture-card i {
    font-size: 2.5rem;
    color: var(--emergency-yellow);
    margin-bottom: 20px;
    display: block;
}

.culture-card h3 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Services */
.services {
    padding: var(--section-padding);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: var(--transition);
    transform-origin: bottom;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-medium);
    transform: translateY(-5px);
}

.service-card .icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--primary-blue);
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Differences Section */
.differences {
    padding: var(--section-padding);
    background: var(--primary-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.differences::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    transform: skewX(-20deg);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.diff-item {
    display: flex;
    gap: 20px;
}

.diff-item i {
    font-size: 1.5rem;
    color: var(--emergency-yellow);
    flex-shrink: 0;
    margin-top: 5px;
}

.diff-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.diff-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Industries Section */
.industries {
    padding: var(--section-padding);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.industry-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: var(--white);
}

.industry-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: var(--transition);
}

.industry-card:hover img {
    transform: scale(1.1);
}

.industry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.industry-content {
    position: relative;
    z-index: 1;
}

.industry-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* Process Section */
.process {
    padding: var(--section-padding);
    background-color: var(--industrial-gray-light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 700;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-subtle);
}

.process-step h4 {
    margin-bottom: 10px;
}

/* Gallery */
.gallery {
    padding: var(--section-padding);
    background: var(--primary-blue);
    color: var(--white);
}

.gallery .section-title h2 {
    color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item-full {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
}

.gallery-item-full h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--emergency-yellow);
}

.comparison-container {
    display: grid;
    gap: 10px;
    margin-top: 30px;
}

.comparison-item {
    position: relative;
}

.comparison-item span {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--emergency-yellow);
    color: var(--black);
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 2;
}

.comparison-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Sliders (Partners/References) */
.logos-section {
    padding: var(--section-padding);
    text-align: center;
}

.logos-slider {
    display: block;
    /* Changed from flex to block for standard slider behavior */
    overflow: hidden;
    padding: 40px 0;
    width: 100%;
    position: relative;
    /* Basic fade effect without complex masking */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logos-track {
    display: flex;
    width: max-content;
    /* Critical for infinite scroll */
    gap: 100px;
    animation: scroll 40s linear infinite;
    align-items: center;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Halfway because it's duplicated */
}

.logos-track span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logos-track span img {
    height: 50px;
    width: auto;
    filter: grayscale(1) opacity(0.7);
    /* Standard professional look */
    transition: var(--transition);
    display: block;
}

.logos-track span:hover img {
    filter: grayscale(0) opacity(1);
}

/* FAQ Section */
.faq {
    padding: var(--section-padding);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.faq-item {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    border-left: 4px solid var(--emergency-yellow);
}

.faq-item h4 {
    margin-bottom: 15px;
    color: var(--primary-blue);
}

/* Floating Emergency Button */
.emergency-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.emergency-btn {
    background: #ff0000;
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
    animation: pulse-red 2s infinite;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.emergency-btn i {
    font-size: 1.2rem;
}

.whatsapp-float {
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    padding: 80px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 25px;
    font-size: 1.2rem;
    border-left: 4px solid var(--emergency-yellow);
    padding-left: 15px;
}

.footer-col p {
    margin-bottom: 10px;
    color: #999;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .emergency-btn span {
        display: none;
    }

    .emergency-btn {
        width: 60px;
        height: 60px;
        justify-content: center;
        padding: 0;
    }
}