/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Colors from logo */
:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #2563eb;
    --primary-orange: #ff6b35;
    --secondary-orange: #ff8c42;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --text-gray: #666666;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon svg {
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon svg {
    transform: rotate(15deg);
}

.logo-text h1 {
    font-size: 2.3rem;
    font-weight: 900;
    margin: 0;
}

.logo-text .guin {
    color: var(--primary-blue);
}

.logo-text .tec {
    color: var(--primary-orange);
}

.logo-text p {
    font-size: 1rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin: 0;
}

/* Navigation */
.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary-orange);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('assets/img/fundo_hero_novo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 220px 0 180px;
    min-height: 100vh;
    display: flex;
    align-items: center;
  }

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    /* Removido o espaço da imagem ao lado para centralizar ou deixar mais livre, já que tiramos o logo */
    gap: 4rem;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-orange);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--primary-blue);
    color: var(--white);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

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

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

/* Services Section */
.services {
    padding: 140px 80;
    background: var(--light-gray);
    position: relative;
    z-index: 2;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    /* Espaço para a barra de rolagem */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-orange) transparent;
}

.services-grid::-webkit-scrollbar {
    height: 8px;
}

.services-grid::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.services-grid::-webkit-scrollbar-thumb {
    background-color: var(--primary-orange);
    border-radius: 4px;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 0 0 calc(33.333% - 1.33rem);
    /* 3 cards visíveis no desktop */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.service-icon svg {
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-card h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url('assets/img/bg2.jpg');
    background-size: cover;
    background-position: top center;
    background-attachment: fixed;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 3rem;
}

.about-text h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.values {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-orange);
}

.value-item h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.value-item p {
    color: var(--text-gray);
    margin: 0;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-icon svg {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--light-gray);
}

.contact h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 3rem auto 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-text h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-gray);
    margin: 0;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 2rem 0;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin: 0;
}

.footer-logo .guin {
    color: var(--white);
}

.footer-logo .tec {
    color: var(--primary-orange);
}

.footer-logo p {
    font-size: 0.8rem;
    margin: 0;
    opacity: 0.9;
}

.footer-info p {
    margin: 0;
    text-align: right;
    opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero .container,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .service-card {
        flex: 0 0 85%;
        /* No celular mostra 1 card e um pedaço do próximo para dar dica de rolagem */
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-info p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .services,
    .about,
    .contact {
        padding: 60px 0;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav.active ul {
        flex-direction: column;
        padding: 1rem;
    }

    .nav.active li {
        margin: 0.5rem 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Gallery Styles */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.main-image:hover {
    transform: scale(1.02);
}

.gallery-main {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Partners Section */
.partners {
    background-color: #ffffff;
    padding: 5rem 0;
}

.partners h2 {
    text-align: center;
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.partners-grid img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
}

.partners-grid img:hover {
    transform: scale(1.05);
}

.gallery-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Gallery Responsive */
@media (max-width: 768px) {
    .gallery-main {
        height: 200px;
    }

    .gallery-thumb {
        height: 100px;
    }
}
.services-carousel {
    position: relative;
}

.services-grid {
    scrollbar-width: none;
}

.services-grid::-webkit-scrollbar {
    display: none;
}