/* Base Styles */
:root {
    --primary-color: #14213d; /* Navy blue */
    --secondary-color: #e5e5e5; /* Light gray */
    --accent-color: #fca311; /* Light blue */
    --accent2-color: #5774c5;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --section-padding: 80px 0;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h2 span {
    color: var(--accent-color);
}

p {
    margin-bottom: 15px;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}



.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    transition: padding 0.3s ease;
}

header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header nav ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

header.scrolled nav ul li a {
    color: #333;
}

header.scrolled nav ul li a.active {
    color: #376ea8;
}

header.scrolled nav ul li a:after {
    background-color: var(--accent-color);
}

header.scrolled .header-content {
    padding: 15px 0;
}

.logo img {
    height: 50px;
    max-width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
}

.phone {
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: var(--light-text);
}

header.scrolled .phone {
    color: var(--primary-color);
}

.phone i {
    margin-right: 5px;
    color: var(--accent-color);
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    color: var(--light-text);
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--light-text);
    transition: width 0.3s ease, background-color 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

.social-media a {
    margin-left: 15px;
    font-size: 1rem;
    color: var(--light-text);
}

header.scrolled .social-media a {
    color: var(--primary-color);
}

.social-media a:hover {
    color: var(--accent-color);
}

/* Custom styles for the Brazil map */
.about-image img {
    box-shadow: none !important;
    max-width: 100%;
    height: auto;
}

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 2px 0;
    transition: all 0.3s ease;
}

header.scrolled .mobile-menu-btn span {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    position: relative;
    z-index: 1;
    overflow: visible;
}

/* Estilos para o vídeo de background */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-video-background .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(rgba(20, 33, 61, 0.6), rgba(20, 33, 61, 0.7));*/
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin-left: 10%;
    color: var(--light-text);
    position: relative;
    z-index: 5;
}

.hero-content h1 {
    color: var(--light-text);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.6s;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color) 0%, var(--primary-color) 100%);
    background-size: 200% auto;
    color: var(--light-text);
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
    cursor: pointer;
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent2-color) 0%, var(--primary-color) 100%);
    z-index: -1;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.cta-button:hover {
    border-color: var(--accent2-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover:before {
    transform: scaleX(1);
    transform-origin: left;
    
}





/* About Preview Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.about-text h2 {
    margin-bottom: 25px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: 15px;
}

.text-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.text-link:hover i {
    transform: translateX(5px);
}

/* Featured Projects Section */
.featured-projects {
    background-color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    max-width: 100%;
    height: auto;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.location {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.location i {
    color: var(--accent-color);
    margin-right: 5px;
}

.cta-center {
    text-align: center;
}

/* Projects Carousel */
.projects-carousel {
    margin: 50px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 250px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-item {
    flex: 0 0 32%;
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Testimonials Section */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial {
    background-color: var(--background-color);
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 20px;
}

.testimonial-content p:before,
.testimonial-content p:after {
    content: '\201C';
    font-size: 50px;
    position: absolute;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial-content p:before {
    top: -20px;
    left: -10px;
}

.testimonial-content p:after {
    content: '\201D';
    bottom: -40px;
    right: 0;
}

.client-info h4 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.client-info p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background-image: linear-gradient(rgba(20, 33, 61, 0.9), rgba(20, 33, 61, 0.9)), url('../images/cta-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--light-text);
}

.cta-content h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 70px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 15px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after,
.footer-social h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 5px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.3s;
}

.animate-fade-in-delay-2 {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.6s;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Page Hero Section */
.page-hero {
    height: 50vh;
    background-image: linear-gradient(rgba(20, 33, 61, 0.8), rgba(20, 33, 61, 0.8)), url('../images/page-hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin-top: 80px;
}

.page-hero-content {
    max-width: 800px;
    color: var(--light-text);
    padding: 0 20px;
}

.page-hero-content h1 {
    color: var(--light-text);
    margin-bottom: 20px;
}

/* About Page Styles */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.value-card {
    background-color: var(--background-color);
    border-radius: 5px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 80px;
}

.mission, .vision {
    background-color: var(--background-color);
    border-radius: 5px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-section {
    margin-top: 80px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-member {
    background-color: var(--background-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.member-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    max-width: 100%;
}

.member-info {
    padding: 25px;
}

.member-position {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

/* Projects Page Styles */
.projects-filter {
    padding-top: 0;
    padding-bottom: 40px;
}

.filter-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.projects-grid-large {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.project-card.large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project-card.large .project-image {
    height: 100%;
    position: relative;
}

.project-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.project-features span {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.project-features span i {
    margin-right: 5px;
    color: var(--primary-color);
}

.investment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.investment-benefits {
    list-style: none;
    margin-top: 20px;
}

.investment-benefits li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.investment-benefits li i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Contact Page Styles */
.contact-section {
    position: relative;
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-methods {
    margin: 40px 0;
}

.contact-method {
    display: flex;
    margin-bottom: 30px;
}

.method-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.social-contact {
    margin-top: 40px;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 10px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
}

.map-section {
    padding-top: 0;
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-grid,
    .projects-grid,
    .testimonials-slider,
    .mission-vision-grid,
    .team-grid,
    .project-card.large,
    .investment-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.large .project-image {
        height: 300px;
    }
    
    .contact-info {
        display: none;
    }
    
    .social-media {
        display: none;
    }
    
    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 0;
        z-index: 1000;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.5s ease, background-color 0.3s ease;
        text-align: center; /* Keep text centered at all times */
    }
    
    nav ul.active {
        max-height: 300px;
        opacity: 1;
        padding: 20px 0;
        transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.5s ease, background-color 0.3s ease;
    }
    
    /* Add styles for the closing class */
    nav ul.closing {
        max-height: 300px; /* Keep the height during closing animation */
        opacity: 0.5; /* Fade out gradually */
        padding: 20px 0; /* Keep padding consistent during closing */
        text-align: center; /* Ensure text stays centered */
        transition: opacity 0.3s ease; /* Make opacity transition faster than height */
    }
    
    /* Transparent menu for home page when header is not scrolled */
    header:not(.scrolled) nav ul.active,
    header:not(.scrolled) nav ul.closing {
        background-color: rgba(20, 33, 61, 0.9);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    header:not(.scrolled) nav ul.active li a,
    header:not(.scrolled) nav ul.closing li a {
        color: var(--light-text);
    }
    
    nav ul li {
        margin: 10px 0;
        text-align: center;
        width: 100%; /* Ensure full width */
    }
    
    nav ul.active li,
    nav ul.closing li {
        margin: 10px 0;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-content {
        margin-left: 5%;
        margin-right: 5%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}



