@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

:root {
    /* Brand Colors - Mix Instalações Identity */
    --brand-blue: #0F4A72;
    --brand-orange: #F7963B;
    --brand-white: #FFFFFF;

    /* Theme Colors - Tech Dark Mode */
    --bg-color: #05111A;
    /* Deep Petrol Blue (Fundo Principal) */
    --surface-color: #0A1E2E;
    /* Lighter Petrol Blue (Cards & Rodapé) */
    --surface-hover: #112B40;

    --primary-color: var(--brand-orange);
    /* Elements of Highlight */
    --secondary-color: var(--brand-blue);

    --text-primary: var(--brand-white);
    /* Pure White for Titles */
    --text-secondary: #B8C6D1;
    /* Light Gray for Body Text */

    --accent-gradient: linear-gradient(135deg, #FFFFFF 0%, var(--brand-orange) 100%);
    /* Updated to Orange tones */

    --glow-primary: 0 0 25px rgba(247, 150, 59, 0.3);
    --glow-secondary: 0 0 40px rgba(15, 74, 114, 0.2);

    --border-color: rgba(15, 74, 114, 0.3);
    --nav-height: 80px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-secondary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(10, 30, 46, 0.4) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 17, 26, 0.95);
    /* Deep Petrol Blue with transparency */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
    /* Removes potential extra space from inline display */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: var(--glow-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.social-icons a {
    color: var(--primary-color);
    /* Icons in Orange */
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
    text-shadow: var(--glow-primary);
}

.social-icons a::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.hero h1 {
    background: linear-gradient(90deg, #FFFFFF 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Updated Button Style - Solid Orange */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(247, 150, 59, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-color);
    /* Lighter Orange on Hover */
    z-index: -1;
    transition: width 0.3s ease;
}

.btn:hover {
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(247, 150, 59, 0.5);
}

.btn:hover::before {
    width: 100%;
}

/* Services Section */
.section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    background: var(--surface-hover);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    /* White */
}

.service-card p {
    color: var(--text-secondary);
    /* Light Gray */
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card i {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.service-card a {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.service-card a:hover {
    text-shadow: 0 0 10px rgba(247, 150, 59, 0.4);
    transform: translateX(5px);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Metrics Section */
.metrics {
    background: linear-gradient(rgba(5, 17, 26, 0.97), rgba(5, 17, 26, 0.97)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.metric-item h3 {
    font-size: 3.5rem;
    color: var(--primary-color);
    /* Highlights in Orange */
    margin-bottom: 10px;
    text-shadow: var(--glow-primary);
    font-weight: 700;
}

.metric-item p {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    /* Descriptions in White */
}

/* Clients Section */
.clients {
    text-align: center;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.client-logo {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 20px 40px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(10, 30, 46, 0.3);
}

.client-logo:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(10, 30, 46, 0.6);
    box-shadow: var(--glow-primary);
}

/* Footer */
footer {
    background: var(--surface-color);
    /* Lighter Petrol Blue */
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--text-primary);
    /* Titles in White */
    margin-bottom: 25px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Service Detail Page Styles */
.service-detail-container {
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.service-main-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    display: block;
}

.service-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.service-title {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-features {
    max-width: 800px;
    margin: 0 auto;
}

.service-features ul {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 15px;
    margin-top: 6px;
    flex-shrink: 0;
}

.service-cta {
    text-align: center;
    margin-top: 60px;
}

.service-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .social-icons {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
        justify-content: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .service-title {
        font-size: 2rem;
    }

    .service-features li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }
}

/* Clients Carousel Styles */
.clients-carousel-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
}

.clients-track-container {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.clients-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.client-item {
    flex: 0 0 33.333%;
    /* 3 items per slide on desktop */
    max-width: 33.333%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Placeholder styling since images are missing */
.client-item span,
.client-item img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 160px;
    /* Increased height to allow logos to be larger */
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    padding: 10px;
    /* Reduced padding to maximize logo size */

    /* Default State: Grayscale & Reduced Opacity */
    filter: grayscale(100%);
    opacity: 0.8;
    /* Increased base opacity for better visibility */
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Hover/Focus State */
.client-item span:hover,
.client-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Using primary color glow */
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation Buttons */
.carousel-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: var(--glow-primary);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .client-item {
        flex: 0 0 50%;
        /* 2 items per slide on tablet */
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .client-item {
        flex: 0 0 100%;
        /* 1 item per slide on mobile */
        max-width: 100%;
    }

    .clients-carousel-container {
        padding: 0 10px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
    }
}

/* Floating WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.4);
    background-color: #20b85a;
    color: #fff;
}