:root {
    /* Blue Palette - Dark Mode Focus */
    --primary-color: #4da6ff;
    /* Lighter blue for better contrast on dark */
    --primary-dark: #0066cc;
    --secondary-color: #00d2ff;
    --accent-color: #edf6ff;
    /* Very light blue background */
    --text-color: #ffffff;
    --light-text: #e0e0e0;
    --background-color: #001f3f;
    /* Deep Navy fallback */
    --white: #ffffff;
    --section-bg: #f8f9fa;
    --wave-color: #ffffff;
    /* Match with section background usually, or white */
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 100px;

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(-45deg, #001f3f, #003366, #004080, #001f3f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Header */
.header {
    background-color: rgba(0, 31, 63, 0.85);
    /* Semi-transparent dark blue */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Logo stays white, invert logic handled if needed, assuming PNG is white */
.logo-img {
    height: 80px;
    width: auto;
    /* No filter needed if logo is white */
}

/* If the PNG is already white, remove the filter above. Assuming user said "it is all white" */

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.portal-btn {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: transparent;
    /* Let body gradient show */
    /* Optional: subtle grid overlay */
    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: 40px 40px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

/* Wave Divider */
.custom-shape-divider-bottom-1679879200 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.custom-shape-divider-bottom-1679879200 svg {
    position: relative;
    display: block;
    width: calc(157% + 1.3px);
    height: 100px;
    transform: rotateY(180deg);
}

.custom-shape-divider-bottom-1679879200 .shape-fill {
    fill: var(--wave-color);
}

/* Old overlay removed, keeping css logic clean */
.hero-bg-overlay {
    display: none;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero .btn-secondary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.3);
}

.hero .btn-secondary:hover {
    background-color: var(--primary-dark);
}

.hero .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero .btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Floating Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-content {
    animation: float 6s ease-in-out infinite;
}

/* Scroll Animations */
.animate-hidden {
    opacity: 0;
    /* transition handled in JS or class addition */
}

.slide-left.animate-visible {
    animation: slideInLeft 1s ease-out forwards;
}

.slide-right.animate-visible {
    animation: slideInRight 1s ease-out forwards;
}

.fade-up.animate-visible {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats styles removed */

/* Services */
.services {
    background-color: transparent;
}

.services-grid {
    display: grid;
    /* Force 4 columns on large screens to prevent 3-1 split */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1100px) {
    .services-grid {
        /* Force 2 columns on medium screens */
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 layout */
    }
}

@media (max-width: 600px) {
    .services-grid {
        /* 1 column on mobile */
        grid-template-columns: 1fr;
    }
}

/* Modern Card Enhancements */
.service-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 16px;
    /* More rounded */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

/* Old hover removed, new one covers it */

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(77, 166, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 15px;
}

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

/* Stats and Testimonials styles removed */

/* About styles removed */

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(77, 166, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #888;
}

.footer-links ul {
    list-style: none;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

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

.social-icons a {
    color: #fff;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
}

.footer-bottom .cnpj {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #555;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 31, 63, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(150%);
    transition: transform 0.5s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    color: var(--white);
    font-size: 0.9rem;
    margin: 0;
}

.cookie-banner a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--primary-color);
        /* Blue background for mobile menu */
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .portal-btn {
        display: none;
        /* Hide in header, maybe move to nav list for mobile if requested, but generally space is tight */
    }

    /* Add portal button to mobile menu logic if needed, or just keep it simple */

    .mobile-menu-btn {
        display: block;
    }

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

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}