/* --- GERAL & VARIÁVEIS --- */
:root {
    --primary-color: #00A859;
    --dark-color: #0A0A0A;
    --light-color: #FFFFFF;
    --gray-color: #f4f4f4;
    --text-color: #333;
    --font-family: 'Poppins', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--gray-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* --- CABEÇALHO --- */
.header {
    background: var(--light-color);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img{
    height: 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.primary-btn-nav {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 8px 18px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s, transform 0.3s;
}

.primary-btn-nav:hover {
    background-color: #008f4b;
    color: var(--light-color);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: all 0.3s ease-in-out;
}

/* --- SEÇÃO HOME --- */
.home-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(
        to bottom,
        #01401C 10%,    /* preto no topo */
        #03A64A 85%,   /* verde no meio */
        #ffffff 100%   /* branco embaixo */
    );
    color: var(--light-color);
    padding-top: 80px;
}



.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.home-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background: #008f4b;
    transform: translateY(-3px);
}

/* --- SEÇÃO SERVIÇOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-color);
    padding: 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 168, 89, 0.2);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color); /* Cor do traço do SVG */
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* --- SEÇÃO PORTFÓLIO --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: 250px;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o espaço sem distorcer */
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    color: var(--light-color);
    padding: 40px 20px 20px 20px;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h3 {
    margin-bottom: 5px;
}

.details-btn {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.details-btn:hover {
    background: #008f4b;
}

/* --- SEÇÃO SOBRE --- */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
}

.about-content {
    flex: 1.2;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.about-content .section-title::after {
    margin: 10px 0 0 0; /* Alinha o sublinhado à esquerda */
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

/* --- SEÇÃO CONTATO --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--light-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 15px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--dark-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 32px;
    height: 32px;
}


.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 168, 89, 0.5);
}

.error-message {
    color: #d9534f;
    font-size: 0.8rem;
    display: none;
    margin-top: 5px;
}

.form-group.error input,
.form-group.error textarea {
    border-color: #d9534f;
}

.form-group.error .error-message {
    display: block;
}


/* --- RODAPÉ --- */
.footer {
    background: var(--dark-color);
    color: var(--gray-color);
    padding: 30px 0;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-color);
    text-decoration: none;
}

/* --- MODAL --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--light-color);
    margin: 10% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    position: relative;
    animation: slideIn 0.4s;
}

.close-btn {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--dark-color);
}

/* --- BOTÃO VOLTAR AO TOPO --- */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 45px;
    font-size: 20px;
    border-radius: 50%;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    box-shadow: var(--shadow);
    z-index: 999;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background: #008f4b;
    transform: scale(1.1);
}

/* --- ANIMAÇÕES --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in { animation: fadeIn 1s 0.2s ease-in-out forwards; opacity: 0; }
.fade-in-delay { animation: fadeIn 1s 0.6s ease-in-out forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 1s 1s ease-in-out forwards; opacity: 0; }

.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1), opacity 0.6s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- RESPONSIVIDADE --- */
@media(max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .home-content h1 {
        font-size: 2.5rem;
    }

    /* Menu Hambúrguer */
    .menu-toggle {
        display: block;
        z-index: 1002;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: var(--dark-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        padding: 20px;
        display: block;
        width: 100%;
        font-size: 1.5rem;
        color: var(--light-color);
    }
    
    .primary-btn-nav {
        background: none;
        color: var(--primary-color);
        font-weight: bold;
    }

    .primary-btn-nav:hover {
        background: none;
        transform: none;
    }
    
    .bar {
        background-color: var(--dark-color);
    }

    .menu-toggle.active .bar {
        background-color: var(--light-color);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .about-content .section-title, .about-content .section-title::after {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .portfolio-item {
        height: 280px;
    }
}