* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1A2F4D;
    --primary-blue: #2C4A6F;
    --primary-light: #3B5B82;
    --accent-purple: #6B4C9A;
    --accent-orange: #FF8C00;
    --success-green: #25D366;
    --bg-light: #F8F9FA;
    --text-dark: #2D3748;
    --text-light: #718096;
    --border-gray: #E2E8F0;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    --primary-color: #2C4A6F;
    --secondary-color: #FF8C00;
    --dark-color: #2D3748;
    --light-gray: #F8F9FA;
    --cta-green: #25D366;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 165px;
    width: auto;
    background: transparent !important;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
}

.dropdown .arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 1rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.hero {
    margin-top: 70px;
    min-height: 90vh;
    background: linear-gradient(135deg, rgba(26, 47, 77, 0.85), rgba(44, 74, 111, 0.75)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%232C4A6F" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1920" height="1080" fill="%231A2F4D"/><rect width="1920" height="1080" fill="url(%23grid)"/><circle cx="300" cy="200" r="120" fill="%232C4A6F" opacity="0.1"/><circle cx="1600" cy="800" r="180" fill="%233B5B82" opacity="0.08"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 47, 77, 0.85) 0%, 
        rgba(44, 74, 111, 0.75) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--cta-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e67e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.btn-tertiary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-tertiary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.btn-cta {
    background-color: var(--cta-green);
    color: var(--white);
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
}

.btn-cta:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--primary-color);
    gap: 0.8rem;
}

.technologies {
    background-color: var(--white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-item {
    padding: 1.5rem;
    border-left: 4px solid var(--secondary-color);
    background-color: var(--light-gray);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-left-color: var(--primary-color);
    background-color: #fff;
    box-shadow: var(--shadow);
}

.tech-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-item p {
    color: #666;
    font-size: 0.95rem;
}

.why-choose {
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--cta-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
    font-weight: bold;
}

.feature-item h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #666;
}

.cases {
    background-color: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.case-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary-color);
}

.case-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.case-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.case-card h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.case-description {
    color: #666;
    margin-bottom: 1rem;
}

.case-result {
    background-color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.case-result strong {
    color: var(--cta-green);
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.stats {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.testimonials {
    background-color: var(--light-gray);
}

.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
}

.testimonials-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonials-slider::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.testimonials-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.testimonial-card {
    flex: 0 0 350px;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
}

.testimonial-stars {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonial-author span {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

.cta-final {
    background: linear-gradient(135deg, var(--primary-color), #5a3d7f);
    color: var(--white);
    text-align: center;
    padding: 5rem 2rem;
}

.cta-final h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 165px;
    margin-bottom: 1rem;
    background: transparent !important;
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.contact-info svg {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #999;
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
        display: none;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-gray);
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .services-grid,
    .cases-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid,
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

.page-hero,
.hero-section {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    margin-top: 70px;
}

.page-hero .hero-overlay,
.hero-section .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.page-hero .container,
.hero-section .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.page-hero h1,
.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    color: var(--white);
}

.page-hero p,
.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

.hero-home .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(26, 47, 77, 0.85) 0%, 
        rgba(44, 74, 111, 0.75) 100%);
}

.hero-cpd .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(44, 74, 111, 0.88) 0%, 
        rgba(26, 47, 77, 0.78) 100%);
}

.hero-monitoramento .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(26, 47, 77, 0.9) 0%,
        rgba(107, 76, 154, 0.65) 50%,
        rgba(44, 74, 111, 0.82) 100%);
}

.hero-redes .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(59, 91, 130, 0.85) 0%, 
        rgba(44, 74, 111, 0.78) 100%);
}

.hero-suporte .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(44, 74, 111, 0.85) 0%, 
        rgba(59, 91, 130, 0.75) 100%);
}

.hero-consultoria .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(107, 76, 154, 0.75) 20%, 
        rgba(44, 74, 111, 0.85) 100%);
}

.hero-projetos .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(255, 140, 0, 0.85) 0%,
        rgba(230, 115, 0, 0.78) 35%,
        rgba(44, 74, 111, 0.88) 100%);
}

.hero-sobre .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(26, 47, 77, 0.88) 0%, 
        rgba(59, 45, 95, 0.75) 100%);
}

.hero-blog .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(33, 118, 210, 0.85) 0%, 
        rgba(44, 74, 111, 0.78) 100%);
}

.hero-contato .hero-overlay {
    background: linear-gradient(135deg, 
        rgba(37, 211, 102, 0.82) 0%, 
        rgba(32, 201, 151, 0.75) 50%,
        rgba(44, 74, 111, 0.85) 100%);
}

@media (max-width: 768px) {
    .page-hero h1,
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .page-hero p,
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .page-hero,
    .hero-section {
        min-height: 400px;
        padding: 80px 20px 60px;
    }
}
