
    /* Variables */
:root {
    --primary-color: #285c7c; /* New primary - Deep blue */
    --secondary-color: #f7b731; /* Kept the yellow accent */
    --tertiary-color: #e37459; /* New accent - Terracotta */
    --text-color: #333;
    --light-text: #f5f5f5;
    --dark-text: #1a1a1a;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --grey: #6c757d;
    --dark-grey: #343a40;
    --light-blue: #dae8f2;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.2rem;
}

/* Container */
.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.6rem 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espaço entre a imagem e o texto */
}

.logo-container img {
    width: 100px;
    height: 60px;
    object-fit: contain; /* Garante que a imagem mantém proporção */
    border-radius: 6px; /* Opcional: cantos arredondados */
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #131313;
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

.logo span {
    color: var(--secondary-color);
    font-weight: 300;
    font-size: 1.4rem;
    margin-left: 0.5rem;
}

    @media (max-width: 768px) {
        .header-content {
            position: relative; /* Para o absolute positioning funcionar */
        }

        .logo-container {
            position: absolute;
            left: 50%;
            transform: translateX(-50%); /* Centraliza perfeitamente */
        }

        .mobile-menu {
            margin-left: auto; /* Empurra o menu para a direita */
        }
    }


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

nav ul li {
    margin-left: 2.5rem;
}

nav ul li a {
    color: var(--dark-grey);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    font-size: 1.05rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--tertiary-color);
    transition: var(--transition);
}

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

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu-overlay ul {
    list-style: none;
    text-align: center;
}

.mobile-menu-overlay ul li {
    margin: 1.5rem 0;
}

.mobile-menu-overlay ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.mobile-menu-overlay ul li a:hover {
    color: var(--secondary-color);
}

.mobile-menu-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    background-color: transparent;
    border: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 92, 124, 0.8), rgba(26, 26, 26, 0.50)), url('titulos-fotos/32.jpeg') center/cover no-repeat;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    position: relative;
    z-index: 1;
    margin-left: 10%;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 3.0rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.hero h1 span {
    color: var(--secondary-color);
    display: block;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 1.05rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    box-shadow: 0 4px 15px rgba(247, 183, 49, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(247, 183, 49, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 7rem 0;
    position: relative;
}

.section.angled {
    position: relative;
    z-index: 1;
}

.section.angled::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: inherit;
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    z-index: -1;
}

.about {
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--grey);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    padding-left: 15px;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background-color: var(--secondary-color);
}

.about-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 70%;
    height: 70%;
    border: 5px solid var(--secondary-color);
    border-radius: var(--border-radius);
    z-index: -1;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 2rem;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 1.5rem;
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: var(--white);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item:hover .stat-number {
    color: var(--white);
}

.stat-text {
    font-size: 1rem;
    font-weight: 500;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

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

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #fff;
}

.service-image {
    height: 180px;
    width: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--tertiary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.service-icon {
    transition: var(--transition);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.service-card:hover .service-content h3::after {
    width: 60px;
}

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

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 350px;
    box-shadow: var(--box-shadow);
    grid-column: span 6;
}

.project-card:nth-child(1), .project-card:nth-child(4) {
    grid-column: span 8;
}

.project-card:nth-child(2), .project-card:nth-child(3) {
    grid-column: span 4;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(40, 92, 124, 0.9), transparent);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.project-overlay p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.project-tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light-blue);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(40, 92, 124, 0.1), rgba(255, 255, 255, 0.1));
    z-index: 0;
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    flex: 0 0 100%;
    padding: 2rem;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 1rem;
    position: relative;
}

.testimonial-item::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 6rem;
    color: var(--secondary-color);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    color: var(--grey);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-control {
    background-color: var(--white);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-control:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color), #173a4f);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info, .contact-cta {
    flex: 1;
    min-width: 300px;
}

.contact-info h3, .contact-cta h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.contact-info h3::after, .contact-cta h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.contact-detail {
    margin-bottom: 1.8rem;
    display: flex;
    align-items: flex-start;
}

.contact-icon {
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.contact-detail:hover .contact-icon {
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    transform: translateY(-3px);
}

.contact-cta p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.contact-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

/* Map */
.map-container {
    margin-top: 4rem;
    height: 400px;
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
}

    /* Partners Section */
    .partners {
        background-color: var(--light-bg);
        position: relative;
    }

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

    .partner-card {
        background-color: var(--white);
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--box-shadow);
        transition: var(--transition);
        position: relative;
    }

    .partner-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .partner-link {
        display: block;
        text-decoration: none;
        color: inherit;
        height: 100%;
    }

    .partner-logo {
        height: 120px;
        width: 100%;
        background-color: var(--white);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid var(--light-bg);
        position: relative;
        overflow: hidden;
    }

    .partner-logo::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(247, 183, 49, 0.1), transparent);
        transition: var(--transition);
    }

    .partner-card:hover .partner-logo::before {
        left: 100%;
    }

    .partner-logo img {
        max-width: 100%;
        max-height: 80px;
        width: auto;
        height: auto;
        object-fit: contain;
        transition: var(--transition);
        filter: grayscale(20%);
    }

    .partner-card:hover .partner-logo img {
        transform: scale(1.05);
        filter: grayscale(0%);
    }

    .partner-content {
        padding: 2rem;
    }

    .partner-content h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.5rem;
        position: relative;
        padding-bottom: 0.8rem;
    }

    .partner-content h3::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 3px;
        background-color: var(--secondary-color);
        transition: var(--transition);
    }

    .partner-card:hover .partner-content h3::after {
        width: 60px;
    }

    .partner-content p {
        color: var(--text-color);
        line-height: 1.7;
        margin-bottom: 0;
    }

    /* Footer */

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--tertiary-color));
}

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

.footer-column h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-column p {
    margin-bottom: 1.5rem;
    color: var(--grey);
    line-height: 1.8;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links li a {
    color: var(--grey);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links li a::before {
    content: '→';
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-left: 20px;
}

.footer-links li a:hover::before {
    color: var(--secondary-color);
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.newsletter-button {
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-button:hover {
    background-color: #e6a91e;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo span {
    color: var(--secondary-color);
    font-weight: 300;
}

.social-links {
    display: flex;
    margin: 1.5rem 0;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    transform: translateY(-5px);
}

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

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
    gap: 1.5rem;
}

.footer-policy-link {
    color: var(--grey);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-policy-link:hover {
    color: var(--secondary-color);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--grey);
}

/* Progress Indicator */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: transparent;
    z-index: 9999;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--secondary-color), var(--tertiary-color));
    width: 0%;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.95);
    color: var(--white);
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    border-top: 3px solid var(--secondary-color);
}

.cookie-consent.visible {
    transform: translateY(0);
}

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
    padding: 0.5rem;
}

.cookie-consent-content h3 {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.cookie-consent-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem;
}

.cookie-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-btn-accept {
    background-color: var(--secondary-color);
    color: var(--dark-grey);
}

.cookie-btn-accept:hover {
    background-color: #e6a91e;
    transform: translateY(-3px);
}

.cookie-btn-settings {
    background-color: transparent;
    border: 1px solid var(--grey);
    color: var(--white);
}

.cookie-btn-settings:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal.active {
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(-50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--light-blue);
}

.modal-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--grey);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--tertiary-color);
    transform: rotate(90deg);
}

.modal-body {
    margin-bottom: 2rem;
}

.modal-body h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.modal-body p, .modal-body li {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: var(--transition);
}

.modal-body a:hover {
    color: var(--tertiary-color);
    border-bottom-color: var(--tertiary-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 1px solid var(--light-blue);
}

/* Cookie Settings */
.cookie-settings-options {
    margin-top: 2rem;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    background-color: var(--light-bg);
    transition: var(--transition);
}

.cookie-option:hover {
    background-color: var(--light-blue);
}

.cookie-option h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--grey);
}

/* Custom Checkbox */
.custom-checkbox {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.custom-checkbox input {
    opacity: 0;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--grey);
    transition: var(--transition);
    border-radius: 34px;
}

.checkmark:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .checkmark {
    background-color: var(--secondary-color);
}

input:checked + .checkmark:before {
    transform: translateX(24px);
}

input:disabled + .checkmark {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        margin-left: 5%;
        margin-top: 60px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section {
        padding: 5rem 0;
    }

    .about-image::before {
        display: none;
    }

    .project-card {
        grid-column: span 6 !important;
    }
}

@media (max-width: 768px) {
    .hero-content {
        margin-left: 0;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        display: none;
    }

    .mobile-menu {
        display: block;
        background-color: white;
        border: none;
    }

    .about-content, .contact-content {
        flex-direction: column;
    }

    .about-image {
        margin-top: 2rem;
    }

    .btn-group {
        justify-content: center;
    }

    .project-card {
        grid-column: span 12 !important;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer-content {
        gap: 2rem;
    }


}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section {
        padding: 4rem 0;
    }

    .service-card, .project-card {
        min-width: 100%;
    }

    .contact-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contact-cta-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }

    .cookie-consent-buttons {
        margin-top: 1rem;
        width: 100%;
    }

    .cookie-consent-buttons .cookie-btn {
        width: 100%;
    }
    .logo{
        display: none !important; /* Garante que o overlay não aparece em desktop */

    }

    .logo-container img {
        width: 100px;
        height: 60px;

    }
}

@media (max-width: 768px) {
    nav ul {
        display: none; /* Oculta o menu normal em ecrãs pequenos */
    }

    #mobileMenuOverlay nav ul {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu {
        display: block; /* Mostra o ícone do menu hamburguer */
    }


}
@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important; /* Garante que o overlay não aparece em desktop */
    }

    nav ul {
        display: flex !important;
    }


}


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

.animate {
    opacity: 0;
}

.animate.fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}
