/* Importação de fontes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Open+Sans:wght@300;400&display=swap');

/* Reset Básico e Estilos Globais */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --background-dark: #1a1a1a;
    --background-light: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--background-light);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

a {
    text-decoration: none;
    color: var(--primary-color);
}

#about,
#services,
#portfolio,
#contact {
  scroll-margin-top: 80px; /* Ajuste este valor para a altura do seu cabeçalho */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: var(--light-color);
    font-weight: 700;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* Efeitos de Animação com CSS */
.reveal-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Atrasos para os efeitos */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Cabeçalho */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: background-color 0.4s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    position: relative;
}

.logo img {
    height: 120px; /* Tamanho da sua logo, ajuste se necessário */
    width: auto;  /* Mantém a proporção */
    display: block; /* Garante que ela se comporte corretamente */
    transition: opacity 0.4s ease; /* Adiciona uma transição suave ao aparecer/desaparecer */
}

.logo .logo-light {
    opacity: 1; /* Visível por padrão */
}

.logo .logo-dark {
    opacity: 0; /* Escondida por padrão */
    position: absolute; /* Para que ela ocupe o mesmo espaço da logo-light, evitando "saltos" */
    top: 0;
    left: 0;
}

.main-header.scrolled .logo .logo-light {
    opacity: 0; /* Esconde a logo clara */
}

.main-header.scrolled .logo .logo-dark {
    opacity: 1; /* Mostra a logo escura */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: var(--light-color);
    font-weight: 700;
    transition: color 0.3s ease;
}

.main-header.scrolled .main-nav a {
    color: var(--dark-color);
}

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin-bottom: 5px;
    transition: transform 0.3s ease;
}

/* Seções */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background: var(--light-color);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-color);
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/fundo.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
   
}

.hero-section .container {
    z-index: 1;
}

.hero-section h1 {
    color: var(--light-color);
    font-size: 3rem;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content img {
    margin-top: 25px;
    width: auto;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mission-values {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 4rem;
    gap: 2rem;
}

.value-item {
    flex: 1;
}

.value-item .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item .icon img {
  width: 2.5rem;  /* Ajusta a largura da imagem */
  height: 2.5rem; /* Ajusta a altura da imagem */
}

/* Services Section */
.services-section h2 {
    text-align: center;
}

h3 {
  background: linear-gradient(90deg, #007bff, #7f00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
}

.icon:hover {
  transform: scale(1.2);
  color: #7f00ff;
  transition: all 0.3s ease;
}

.service-item .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item .icon img {
  width: 2.5rem;  /* Ajusta a largura da imagem */
  height: 2.5rem; /* Ajusta a altura da imagem */
}

/* Portfolio Section */
.portfolio-section h2 {
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: scale(1.03);
}

.portfolio-item img {
    width: 100%;
    display: block;
}

.portfolio-item h3, .portfolio-item p {
    padding: 1rem;
}

.portfolio-item p {
    margin-top: auto;
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

/* Fundo suave para a seção de Missão, Visão e Valores */
.mission-values {
  background: linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
  border-radius: 10px;
  padding: 4rem 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
}

.contact-info {
    line-height: 2;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.social-icons a {
    display: inline-block;
    margin-right: 1rem;
}

.social-icons img {
  margin: 20px;
  height: 50px;
  width: auto;
  transition: transform 0.2s;
}

.social-icons img:hover {
  transform: scale(1.1);
}

/* Estilo da mensagem de sucesso */
.form-message {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    opacity: 0; /* Começa invisível */
    transition: opacity 0.5s ease;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1; /* Fica visível com a classe success */
}

/* Rodapé */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

.footer-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--light-color);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/*
 * ----------------------------------------
 * Media Queries (Responsividade)
 * ----------------------------------------
 */

/* Telas menores que 1024px */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.25rem; }

    .about-content,
    .contact-content {
        gap: 2rem;
    }

    .about-content img {
        height: 300px;
    }
}

/* Telas menores que 1000px */
@media (max-width: 1000px) {
    .main-nav li {
        margin-left: 1.5rem;
    }
}

/* Telas menores que 768px (Tablets, Celulares grandes) */
@media (max-width: 768px) {
    /* Menu Hambúrguer */
    .main-nav {
        display: none;
    }

    .main-nav.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        text-align: center;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    .main-nav.active a {
        color: var(--dark-color);
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: block;
    }

    /* Ajustes Gerais */
    section {
        padding: 4rem 0;
    }
    
    .logo img {
        height: 80px;
    }
    
    /* Centralização do texto e botão do herói */
    .hero-section {
        /* Remove o alinhamento esquerdo anterior */
        text-align: center; 
        /* Alinha o conteúdo verticalmente ao centro */
        align-items: center; 
        padding-top: 150px;
    }

    .hero-section h1,
    .hero-section p {
        text-align: center; 
    }
    
    /* Layout de Colunas */
    .about-content,
    .contact-content,
    .services-grid,
    .portfolio-grid,
    .mission-values {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .about-content .image-content {
        order: -1;
        text-align: center;
    }

    .about-content img {
        width: 100%;
        height: auto;
    }

    .social-icons img {
        margin: 10px;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Telas menores que 480px */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }

    .social-icons img {
        height: 40px;
    }
}

/* Telas menores que 400px */
@media (max-width: 400px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .logo img {
        height: 70px;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* Telas menores que 350px */
@media (max-width: 350px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    
    .logo img {
        height: 60px;
    }
    
    .social-icons img {
        height: 35px;
    }
}