/* General Styles */
/* Sets the font for the entire document, removes default margins and paddings, and ensures consistent box-sizing across all elements. */

html {
    scroll-behavior: smooth;
}



body {
    font-family: Verdana, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Styles the header with a background color and padding. */
header {
    background-color: gray;
    padding: 10px 20px;
}

/* Logo and Menu Container */
/* Fixes the logo and menu container at the top, gives it a background color, adds padding, ensures it stays above other elements, and adds a shadow. */
.logo-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: black;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sets the height of the logo image. */
.logo {
    height: 60px;
}

/* Styles the navigation menu, removes default list styling, and arranges the items horizontally. */
nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

/* Adds space between menu items. */
nav ul li {
    margin-left: 20px;
}


/* Styles the menu links, removes underline, and adds padding and transition effects. */
nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 13px;
    padding: 5px 10px;
    transition: all 0.3s ease; /* Smooth transition for all changes */
}


/* Menu Link Hover Effect */
nav ul li a {
    color: white; /* Text color */
    position: relative; /* Needed for pseudo-element positioning */
    text-decoration: none; /* Remove default underline */
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* Height of the underline */
    bottom: -2px; /* Position underline slightly below the text */
    left: 0;
    background-color: lightgreen; /* Color of the underline */
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover::before {
    visibility: visible;
    width: 100%; /* Slide the underline to cover the full width */
}





/* Home Section */
/* Sets the home section to fill the entire viewport height and hides overflow. */
#home {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Styles the background video to cover the entire home section, positions it, and ensures it stays behind other content. */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    margin-top: 60px;
}


/* Styles the overlay content on the home section, centers it both horizontally and vertically, and sets the text color. */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

/* Sets the font size and margin for the main heading in the overlay. */
.overlay h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Sets the font size and margin for the paragraph in the overlay. */
.overlay p {
    font-size: 24px;
    margin-bottom: 40px;
}

/* Styles the button in the overlay with background color, padding, font size, and hover effects. */
.btn {
    background-color: lightgreen;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

/* Changes the button background and text color on hover. */
.btn:hover {
    background-color: green;
    color: white;
}

/* About Section */
/* Adds padding, background color, and text alignment for the about section. */
#sobre {
    padding: 110px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

/* Styles the heading in the about section. */
#sobre h2 {
    margin-bottom: 20px;
}

/* Styles the paragraph in the about section, including font size and line height. */
#sobre p {
    font-size: 16px;
    line-height: 1.5;
}

/* Solutions Section */
/* Adds padding, background color, and text alignment for the solutions section. */
#solucoes {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

/* Styles the container for product boxes, using flexbox to space them out evenly. */
.product-boxes {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
}

/* Styles individual product boxes, adds a hover effect that slightly enlarges the box. */
.product-box {
    width: 30%;
    cursor: pointer;
    transition: transform 0.3s;
    text-align: center;
}

/* Adds a scaling effect on hover for product boxes. */
.product-box:hover {
    transform: scale(1.1);
}

/* Styles the images inside product boxes, makes them fully responsive, and adds rounded corners at the top. */
.image-half img {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

/* Styles the title section of product boxes with padding, background color, text color, and rounded corners at the bottom. */
.title-half {
    padding: 10px;
    background-color: #333;
    color: white;
    border-radius: 0 0 10px 10px;
}

/* Product Section */
/* Adds margin to the bottom of the product section. */
.product-section {
    margin-bottom: 40px;
}

/* Styles the heading in the product section. */
.product-section h2 {
    margin-bottom: 20px;
}

/* Styles the container for videos, using flexbox to space them out evenly. */
.videos {
    display: flex;
    justify-content: space-around;
}

/* Styles the iframe for videos, setting width, height, and removing borders. */
.videos iframe {
    /*
    width: 42%;
    height: 400px;
    */
    border: none;
}

/* R&D Section */
/* Adds padding, background color, text alignment, and positions the R&D section. */
#pd {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
    position: relative;
}

/* Styles the overlay box with background color, padding, rounded corners, and inline-block display. */
.overlay-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

/* Team Section */
/* Adds padding, background color, text alignment, and font size for the team section. */
#equipe {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
    font-size: 13px;
}

/* Styles the carousel container, sets margin, hides overflow, and centers the items vertically. */
.carousel-container {
    margin-left: 180px;
    margin-right: 180px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

/* Styles the team gallery container, uses flexbox to align items, and sets the width. */
.team-gallery {
    display: flex;
    overflow-x: scroll;
    width: 100%;
}

.team-gallery::-webkit-scrollbar {
    display: none;
}

/* Styles the carousel for team members, sets transition, and adjusts width automatically. */
.team-carousel {
    display: flex;
    transition: transform 0.3s ease;
    width: auto;
}

/* Styles each team member, sets width, margin, cursor, and hover effect. */
.team-member {
    flex: 0 0 auto;
    width: 200px;
    margin: 0 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Styles the team member images, sets width, height, and adds rounded corners. */
.team-member img {
    width: 100%;
    height: 80%;
    /*
    border-radius: 10px;
    */
    object-fit: cover;
}

/* Styles the team member description with centered text and color. */
.team-member p {
    text-align: center;
    color: #333;
}

/* Adds a slight scaling effect on hover for team members. */
.team-member:hover {
    transform: scale(1.05);
}

/* Navigation Buttons */
/* Styles the navigation buttons for the carousel, including background color, padding, cursor, and font size. */
.nav-button {
    background-color: #ddd;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    position: absolute;
}

/* Positions the left navigation button. */
.nav-button.left {
    left: -50px;
}

/* Positions the right navigation button. */
.nav-button.right {
    right: -50px;
}

/* Overlay Box */
/* Styles the overlay box with background color, padding, rounded corners, and inline-block display. */
.overlay-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
}

/* Content Box */
/* Styles the content box with background color, padding, margin, max width, box shadow, and rounded corners. */
.content-box {
    background-color: #f0f0f0;
    padding: 20px;
    margin: 20px auto;
    max-width: 90%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Styles the text inside paragraphs and list items, ensuring text is justified and colored. */
.content-box p, .content-box li {
    text-align: justify;
    color: black;
}

/* Ensures headings and bold text inside content boxes are styled appropriately with color. */
.content-box h2, .content-box b {
    color: black;
}

/* Contact Section */
/* Adds padding, background color, and text alignment for the contact section. */
#contato {
    padding: 60px 20px;
    background-color: lightgrey;
    text-align: left;
}


/* Styles the contact form, including max width and centering it horizontally. */
#contact-form {
    max-width: 600px;
    margin: 0 auto;
    color: white
}

/* Styles the labels in the contact form, making them block elements with bottom margin. */
#contact-form label {
    display: block;
    margin-bottom: 10px;
}

/* Styles the input and textarea elements in the contact form, including padding, margin, border, and rounded corners. */
#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Styles the submit button in the contact form, including padding, background color, border, and hover effects. */
#contact-form button {
    padding: 10px 20px;
    background-color: lightgreen;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

/* Changes the background and text color of the submit button on hover. */
#contact-form button:hover {
    background-color: green;
    color: white;
}

/* Captcha */
/* Styles the captcha container, aligns items, and adds bottom margin. */
.captcha {
    display: flex;
    align-items: left;
    margin-bottom: 20px;
}

/* Adds margin to the right of the captcha input field. */
.captcha input {
    margin-right: 10px;
}

/* Footer Section */
/* Adds padding, background color, text color, and center alignment for the footer. */
footer {
    padding: 20px;
    background-color: gray;
    color: white;
    text-align: center;
}

/* Styles the social media links in the footer, including color, margin, and removes underline. */
footer .social a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* General Styling */
/* Adds padding, background color, and text alignment for the news section. */
#news {
    padding: 60px 20px;
    background-color: #f4f4f4;
    text-align: center;
    position: relative;
}

/* Adds margin to the top of the content box inside the news section. */
.content-box {
    margin-top: 20px;
}

/* Info Box Styling */
/* Styles the info box with position, size, padding, background color, text color, rounded corners, and shadow. */
.info-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 600px;
    height: auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: black;
    border-radius: 10px;
    display: none; /* Hidden by default */
    z-index: 1000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Styles the paragraphs inside the info box, ensuring justified text alignment. */
.info-content p {
    text-align: justify;
}

/* Styles the "More Info" button with background color, text color, padding, cursor, rounded corners, and hover effects. */
#more-info-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

/* Changes the background color of the "More Info" button on hover. */
#more-info-btn:hover {
    background-color: #0056b3;
}

/* Styles the "Close Info" button with background color, text color, padding, cursor, rounded corners, and hover effects. */
#close-info-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    float: right;
}

/* Changes the background color of the "Close Info" button on hover. */
#close-info-btn:hover {
    background-color: #c82333;
}


.captcha {
    margin-top: 20px;
    margin-bottom: 20px;
    color: white;
}

.captcha label {
    display: inline-block;
    font-size: 16px;
    color: white;
    margin-right: 15px;
}

.captcha input {
    padding: 8px;
    font-size: 16px;
    width: 25px;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    
}


/* Footer Section */
footer {
    padding: 20px;
    background-color: white;
    color: black;
    text-align: center;
}

/* Text above the container */
.footer-text {
    margin-bottom: 10px;
}

.footer-text p {
    margin: 0;
    font-size: 14px;
}

/* Container for footer logos */
.footer-container {
    display: flex;
    justify-content: center;
    gap: 80px; /* Adjust spacing between images */
    flex-wrap: wrap; /* Ensure logos wrap if space is constrained */
    background-color: white; /* White background for the logo container */
    padding: 10px;
    border-radius: 10px; /* Optional: Rounded corners for aesthetics */
    display: inline-flex; /* To fit the content properly */
}

/* Style for footer images */
.footer-logo {
    width: 40px; /* Small size for the logos */
    height: auto;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.6; /* Slight opacity change on hover */
}


.map-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}






/* Modal styles */
.modal {
    display: none; 
    position: absolute; /* Fixed position to ensure it stays in view */
    z-index: 1000; /* Ensure it appears on top of other content */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 

    background-color: rgba(0, 0, 0, 0.5); 
}

.modal-content {
    background-color: white;
    margin: 10% auto; /* Center the modal */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 800px; 
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.image-cores {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
}

.image-cores img {
    width: 100%!important;
}

.mobile {
    display: none;
}

#bio-content {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    overflow: auto;
    padding: 40px;
    padding-top: 150px;
    box-sizing: border-box;
}

.contact-form-external {
    width: 50%;
    margin: 0 auto;
}


/* Translate flags */
a.glink img {
    margin-right: 5px!important;
    height: auto!important;
}

a.gt-current-lang img {
    border: 1px solid #fff!important;
    opacity: 1!important;
}









/* For responsiveness */

* Responsive Styles for Mobile and Tablet */
@media (max-width: 768px) {
    /* Hamburger Menu */
    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        text-align: center;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 16px;
        padding: 10px 0;
    }

    /* Adjust section padding */
    section {
        padding: 20px 10px;
    }

    /* "Equipe" Section */
    .carousel-container {
        margin-left: 10px;
        margin-right: 10px;
    }

    .team-member {
        width: 100%;
        margin-bottom: 20px;
    }

    .team-member img {
        width: 100%;
        height: auto;
    }

    /* Modals */
    .info-box {
        width: 90%;
        height: 90vh; /* Adjust height to fit within viewport */
        overflow-y: auto; /* Add scrolling if content overflows */
    }
}



/* Responsividade para Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .logo-menu-container {
        flex-direction: column;
        padding: 15px;
    }

    nav .hamburger .bar {
        height: 2px;
        width: 40px;
        background-color: #fff;
        margin: 0 auto;
        margin-top: 8px;
    }

    nav ul {
        max-height: 0px;
        overflow: hidden;
        transition: max-height 1s ease;
    }

    nav ul.show {
        max-height: 800px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    .carousel-container {
        margin: 0;
    }

    .team-member {
        width: 45%;
        margin: 10px;
    }

    .logos-partners {
        margin: 0 20px!important;
        box-sizing: border-box;
        flex-wrap: nowrap;
    flex-direction: column;
    gap: 40px!important;
    }

    .video {
        width: 100%;
    }

    .videos {
        flex-direction: column;
        align-items: center;
    }

    .videos iframe + iframe {
        margin-top: 20px;
    }

    .contact-form-external {
        width: 70%;
    }
    
}

/* Responsividade para Dispositivos Móveis (até 768px) */
@media (max-width: 768px) {
    p {
        font-size: 14px!important;
    }

    .overlay {
        position: absolute!important;
        padding: 0!important;
        top: 40%;
    }

    .logo-menu-container {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo {
        height: 50px;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Ajustes de padding para seções */
    section {
        padding: 20px 10px;
    }

    .product-boxes {
        flex-direction: column;
    }

    .product-box {
        width: 100%;
        margin-bottom: 20px;
    }

    .video-container video {
        object-position: center;
    }

   
    .videos iframe {
        width: 100%;
        height: 250px;
    }



    .carousel-container {
        margin: 0;
    }

    .team-member {
        width: 100%;
        margin-bottom: 20px;
    }

    .team-member img {
        max-width: 300px;
    }

    /* Ajustes no formulário de contato */
    #contact-form {
        max-width: 100%;
        padding: 20px;
    }

    /* Modal de informações */
    .info-box {
        width: 90%;
        height: 80vh;
        overflow-y: auto;
    }

    footer {
        flex-direction: column;
        row-gap: 20px;
    }

    .no-mobile {
        display: none;
    }

    .mobile {
        display: block;
    }

    .team-carousel {
        flex-direction: column;
    }

    .team-gallery {
        justify-content: center;
    }

    .contact-form-external {
        width: 100%;
    }
}





