﻿:root {
    --primary: #1E3C91;
    --primary-light: #2c52bd;
    --secondary: #47BBC3;
    --secondary-hover: #369bA2;
    --tertiary: #99D3D8;
    --white: #FFFFFF;
    --dark: #0a1128;
    --text-main: #334155;
    --bg-light: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Reusable Components */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 10px 20px -10px rgba(71, 187, 195, 0.5);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(71, 187, 195, 0.6);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    box-shadow: 0 10px 20px -10px rgba(37, 211, 102, 0.5);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -10px rgba(37, 211, 102, 0.6);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 5px solid var(--secondary);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    background: var(--white);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

header.scrolled .nav-link {
    color: var(--primary);
}

header.scrolled .logo-text {
    color: var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
}

.logo img {
    height: 84px;
    width: auto;
    object-fit: contain;
    transform: scale(2.1);
    transform-origin: left center;
}

.logo-text {
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.header-social {
    display: flex;
    gap: 8px;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 24px;
}

.header-social a {
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.header-social a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    color: var(--primary);
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
}

/* Hero Carousel */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--dark);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 5s ease;
    transform: scale(1.05);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 17, 40, 0.9) 0%, rgba(30, 60, 145, 0.7) 50%, rgba(71, 187, 195, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    padding-top: 130px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide.active .hero-title {
    animation: fadeUpTitle 0.8s forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--tertiary);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 400;
}

.slide.active .hero-subtitle {
    animation: fadeUpTitle 0.8s forwards 0.5s;
}

.hero-actions {
    opacity: 0;
    transform: translateY(30px);
}

.slide.active .hero-actions {
    animation: fadeUpTitle 0.8s forwards 0.7s;
}

.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.indicator-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--secondary);
}

.indicator.active .indicator-progress {
    animation: progress 5s linear forwards;
}

.hero-section.paused .indicator.active .indicator-progress {
    animation-play-state: paused;
}

@keyframes progress {
    form {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

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

/* Empresa Section */
.empresa-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

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

.empresa-content h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.empresa-content h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--primary);
}

.empresa-content p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 16px;
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.stat-card h4 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.empresa-image {
    position: relative;
}

.empresa-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(30, 60, 145, 0.15);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    background: linear-gradient(135deg, var(--tertiary), var(--secondary));
    border-radius: 24px;
    z-index: 1;
}

.dec-1 {
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

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

.portfolio-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    group: portfolio;
    position: relative;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 60, 145, 0.1);
}

.portfolio-img {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 60, 145, 0.8), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 32px 24px;
}

.portfolio-tag {
    background-color: rgba(71, 187, 195, 0.1);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.portfolio-content p {
    color: #64748b;
}

/* Contato Section */
.contato-section {
    padding: 80px 0;
    background-color: var(--bg-light);
    position: relative;
}

.contato-wrapper {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 48px 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    box-shadow: 0 15px 35px rgba(30, 60, 145, 0.15);
}

.contato-info h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 16px;
}

.contato-info p {
    font-size: 1.125rem;
    color: var(--tertiary);
    max-width: 480px;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    color: #94a3b8;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 180px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.footer-logo-text {
    font-family: 'Outfit';
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
}

.footer-desc {
    max-width: 300px;
    margin-bottom: 24px;
}

.footer-title {
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 16px;
}

.footer-links a {
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .empresa-grid {
        grid-template-columns: 1fr;
    }

    .contato-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .contato-info p {
        margin: 0 auto 40px;
    }

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

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

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80vw;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-link {
        color: var(--primary);
        font-size: 1.25rem;
    }

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

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

/* Barra de Rolagem (Scrollbar) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background-color: #99D3D8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary);
}