* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --text-color: #ffffff;
    --background-dark: #001f3f;
    --accent-color: #2c3e50;
    --transparent-overlay: rgba(0, 0, 0, 0.4);
    --font-main: 'Arial', sans-serif;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    overflow-x: hidden;
     /* Adiciona espaço no topo da página para o header fixo */
}

.main-header {
    position: fixed; /* O header agora ficará fixo no topo da tela */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100; /* Garante que o header fique acima de todo o conteúdo */
    background-color: var(--background-dark);
    padding: 1rem 5%;
    opacity: 0.8;
    transition: all 0.3s ease; /* Transição para dar um efeito suave */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo-link:hover {
    color: #a4c4e7;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #a4c4e7;
}

.menu-toggle {
    display: none; /* Esconde o botão em telas de computador por padrão */
}

/* Estilo para o link da página atual */
.nav-links a.active {
    font-weight: bold;
    padding: 8px;
    border: 1px solid var(--text-color);
}

.hero-section {
    width: 100%;
    height: 100vh;
    background-image: url('assets/montanha.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.hero-overlay {
    width: 100%;
    height: 100%;
    background-color: var(--transparent-overlay);
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.hero-content {
    max-width: 500px;
    margin-top: 5rem;
}

.headline {
    font-size: 3.5rem;
    margin: 0 0 1rem 0;
    font-weight: bold;
}

.subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.btn-primary, .btn-secondary {
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-primary:hover {
    background-color: #3b5066;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--accent-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
    display: block;
    margin-top: 10px;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: #a4c4e7;
}

.social-links .fab {
    margin-right: 10px;
}
/* Seção de Serviços */
.services-section {
    padding: 60px 20px; /* Adiciona espaçamento horizontal para telas pequenas */
    text-align: center;
}

.services-section .container {
    max-width: 1100px;
    margin: 0 auto; /* Centraliza o container */
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Adiciona uma transição para a borda e a sombra */
    border: 1px solid transparent; /* Borda transparente por padrão */
}

.service-card:hover {
    transform: translateY(-5px); /* Efeito suave de elevação */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Aumenta a sombra */
    border: 1px solid var(--accent-color); /* Borda visível com a cor do tema */
}

.service-card h3 {
    font-size: 1.5rem;
    color: #001f3f;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Botão "Ver Todos os Serviços" */
.btn-all-services {
    display: inline-block;
    padding: 12px 30px;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-all-services:hover {
    background-color: #3b5066;
}

/* Estilo para os ícones nos cards de serviço */
.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Efeito de cor ao passar o mouse sobre o card */
.service-card:hover {
    background-color: #f8f8f8;
    transform: translateY(-10px);
}

/* Seção Sobre Nós */
.about-us-section {
    padding: 80px 20px;
    background-color: #f8f8f8; /* Cor de fundo suave para destacar a seção */
    text-align: left;
}

.about-us-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px; /* Espaço entre o texto e a imagem */
}

.about-text {
    flex: 1; /* Permite que o texto ocupe o espaço disponível */
    line-height: 1.6;
    color: #333;
}

.about-text p {
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    max-width: 300px; /* Limita o tamanho da imagem */
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Seção de Portfólio */
.portfolio-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.portfolio-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* Container do Carrossel */
.carousel-container {
    position: relative;
    overflow: hidden; /* Esconde os cards que estão fora da vista */
    margin-bottom: 20px;
}

.carousel-track {
    display: flex; /* Alinha os cards em uma linha */
    width: 100%; /* Inicia com 100% de largura para uma tela, ajustado pelo JS */
    transition: transform 0.5s ease-in-out;
}

/* Cards do Portfólio */
.portfolio-card {
    flex: 0 0 33.33%; /* Cada card ocupa 1/3 da largura do carrossel */
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
    text-align: left;
}

.portfolio-card img {
    width: 100%;
    height: 200px; /* Altura fixa para a imagem */
    object-fit: cover; /* Garante que a imagem preencha sem distorcer */
    border-radius: 5px;
    margin-bottom: 15px;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    color: #001f3f;
    margin-bottom: 10px;
}

.portfolio-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.btn-card {
    display: inline-block;
    padding: 8px 20px;
    background-color: #2c3e50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-card:hover {
    background-color: #3b5066;
}

/* Navegação do Carrossel */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.carousel-nav button {
    background: #ccc;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: background-color 0.3s ease;
}

.carousel-nav button:hover {
    background: #aaa;
}

/* Seção de Contatos */
.contact-section {
    padding: 80px 20px;
    background-color: #f0f0f0; /* Fundo cinza suave */
}

.contact-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    gap: 40px;
}

/* Formulário */
.contact-form {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 20px;
}

.contact-form textarea {
    resize: vertical; /* Permite redimensionar apenas na vertical */
}

.submit-btn {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #3b5066;
}

/* Informações de Contato */
.contact-info {
    flex: 1;
    text-align: left;
    color: #333;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #001f3f;
    margin-bottom: 15px;
}

.contact-details p {
    margin: 10px 0;
}

.contact-details i {
    margin-right: 10px;
    color: var(--accent-color);
}

.contact-info .social-links a {
    color: #333;
    font-size: 1rem;
    margin: 10px 0;
    font-weight: normal;
}

/* Responsividade para telas menores que 768px */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }
}

/* Seção do Rodapé */
.main-footer {
    background-color: var(--background-dark);
    color: var(--text-color);
    padding: 10px 10px;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

/* Links das redes sociais no rodapé */
.footer-social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: #a4c4e7;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
    
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #a4c4e7;
}

/* Responsividade para o rodapé */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

/* Responsividade para telas menores que 768px */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column; /* Empilha a imagem e o texto */
        text-align: center;
    }

    .about-image {
        margin-bottom: 20px;
    }
}


@media (max-width: 768px) {
    /* Estilos para o menu sanduíche */
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 60%;
        background-color: var(--background-dark);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-links li {
        opacity: 0;
        transition: opacity 0.3s ease-in-out 0.2s;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.nav-open {
        transform: translateX(0);
    }

    .nav-links.nav-open li {
        opacity: 1;
    }
    
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 101;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        content: '';
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        transition: all 0.3s ease-in-out;
    }

    .hamburger::before {
        transform: translateY(-8px);
    }

    .hamburger::after {
        transform: translateY(5px);
    }
    
    /* Ajustes para o cabeçalho */
    .main-header {
        padding: 1rem 20px; /* Usa valor fixo para evitar problemas */
    }

    .navbar {
        width: 100%;
        gap: 10px;
        justify-content: space-between;
    }

    /* Ajuste para a seção principal em telas menores */
    .hero-section {
        justify-content: center;
        padding: 0 20px; /* Usa valor fixo para o espaçamento lateral */
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 0;
        padding-top: 5rem;
    }

    .headline {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    .buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .portfolio-card {
        flex: 0 0 100%; /* Faz o card ocupar a largura total da tela */
        margin-right: 0; /* Remove a margem lateral */
        padding: 20px;
    }
}

/* Container do Modal: Fundo escuro e transparente */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Escondido por padrão */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Conteúdo do Modal: A caixa branca */
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 90%;
    position: relative;
    color: #333;
}

/* Título do Modal */
.modal-title {
    font-size: 2rem;
    color: var(--background-dark);
    margin-bottom: 20px;
}

/* Botão de Fechar */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
}

/* Formulário do Modal */
.cadastro-form, .login-form {
    display: flex;
    flex-direction: column;
}

.cadastro-form label,
.login-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

.cadastro-form input,
.cadastro-form textarea,
.login-form input {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}


.cadastro-form .submit-btn {
    padding: 15px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cadastro-form .submit-btn:hover {
    background-color: #3b5066;
}

/* Estilo para mostrar o Modal */
.show-modal {
    display: flex;
}

.modal-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.modal-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
}

/* Opções de Login Social */
.social-login-options {
    text-align: center;
    margin-top: 20px;
}

.social-login-options p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.social-btn:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    margin-right: 8px;
}

/* Cores e estilos para o Google */
.google-btn {
    background-color: #DB4437;
    color: #fff;
    border: 1px solid #DB4437;
}

.google-btn:hover {
    background-color: #c43224;
}

/* Cores e estilos para o GitHub */
.github-btn {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
}

.github-btn:hover {
    background-color: #222;
}

/* Seção de Depoimentos */
.testimonials-section {
    padding: 80px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.testimonials-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonials-carousel-container {
    overflow: hidden;
    margin-bottom: 20px;
}

.testimonials-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 100%; /* Cada depoimento ocupa a largura total do carrossel */
    padding: 40px;
    background-color: #fff;
    border-radius: 10px;
   
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 0 10px;
}

.testimonial-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: bold;
    color: #001f3f;
    margin: 0;
}

.author-company {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Navegação do Carrossel de Depoimentos */
.testimonials-carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.testimonials-carousel-nav button {
    background: var(--accent-color);
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease;
}

.testimonials-carousel-nav button:hover {
    background: #3b5066;
}

/* Seção de Blog (Preview) */
.blog-preview-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.blog-post-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: left;
    overflow: hidden;
    height: 100%;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.blog-post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.blog-post-card h3 {
    font-size: 1.2rem;
    color: #001f3f;
    margin: 15px 20px 10px 20px;
}

.blog-post-card p {
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
    margin: 0 20px 20px 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #eee;
    color: var(--accent-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin: 0 20px 20px 20px;
}

.read-more-btn:hover {
    background-color: #ddd;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr; /* Empilha os cartões em uma única coluna */
    }
}