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

body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

h1, h2, h3 {
    font-family: 'Helvetica', sans-serif;
    font-weight: bold;
    color: #333;
}

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

.row {
    margin-bottom: 30px;
}

header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}
header nav ul {
    list-style: none;
}
header nav ul li {
    display: inline;
    margin-right: 20px;
}
header nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}
header nav ul li a:hover {
    color: #ccc;
    /* transform: scale(1.2);
    background-color: transparent; */
}

.navbar {
    transition: background-color 0.3s ease;
    background-color: #222;
}
.navbar-nav .nav-link {
    color: #fff;
    text-align: center;
}
.navbar-nav .nav-link:hover {
    transform: scale(1.2);
}
.navbar.scrolled {
    background-color: #222; /* Change to desired color */
}
.nav-item img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}
.dropdown-toggle::after {
    display: none;
}
.dropdown-item img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    vertical-align: middle;
}

.btn {
    display: inline-block;
    background-color: #E27F2E;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #555;
}

input[type="text"],
input[type="email"],
textarea {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

section {
    padding-top: 100px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;
}


.card {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.card-title {
    font-size: 24px;
    margin-bottom: 10px;
}
.card-text {
    color: #666;
}
.card-link {
    text-decoration: none;
    color: inherit; /* Inherit color from the parent */
}
.card-link:hover {
    text-decoration: none; /* Ensure no underline on hover */
    color: inherit; /* Inherit color on hover */
}
.card-link:hover .card {
    transform: translateY(-5px);
}

img {
    max-width: 100%;
    height: auto;
}

p {
    font-family: 'Georgia', serif;
    color: #666;
}

.img-fluid {
    width: 150px;
    max-height: auto; /* Adjust the height as needed */
}

.logo {
    max-width: 60px; /* Define the maximum width of the logo */
    height: auto; /* Auto height to maintain aspect ratio */
    margin: 5px 5px;
}
.logo:hover {
    transform: scale(1.2);
}

.description {
    flex: 1;
    padding: 0px 20px;
    position: relative; /* Ensure the absolute child element is relative to this */
}

.card-link .card {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.card-link .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


  /********/
 /* HERO */
/********/
#hero {
    background-color: #f4f4f4; /* Fallback background color */
    text-align: center;
    position: relative;
    height: auto;
    padding-top: 75px;
    overflow: hidden;
    color: #333; /* Text color */
}
#hero .container {
    position: relative;
    background: rgba(255, 255, 255, 0.5); /* Optional: provides a background to enhance text visibility */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow to enhance text readability */
    overflow: hidden; /* Important to prevent slides from spilling out */
}
#hero h1, #hero p, #hero img {
    position: relative;
    color: #333;
}
#hero h1 {
    margin-top: 70px;
    text-shadow: 2px 2px 8px rgba(255,255,255,0.8);
}
#hero p {
    font-size: 18px;
    text-shadow: 1px 1px 4px rgba(255,255,255,0.8);
    margin-bottom: 40px;
}
#hero img {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
}
#slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    opacity: 0; /* Adjust opacity here to make images less dominating */
}
.slide.active {
    opacity: 0.6; /* Maintain consistent opacity for active slides */
}



  /************/
 /* PRODUCTs */
/************/
#products {
    background-color: #333; /* Dark background for the products section */
    color: white; /* Ensures all text is initially set to white for visibility */
    padding-bottom: 50px; /* Adds padding at the bottom for spacing */
}
#products .section-title {
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    color: white; /* Sets section title color to white */
}
#products .product-card {
    background: #444; /* Slightly lighter than the section background for contrast */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px; /* Adds bottom margin for spacing between cards */
}
#products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}
#products .product-logo {
    width: 100%; /* Full width of its container */
    max-width: 150px; /* Maximum width set for the logo */
    height: auto; /* Maintain aspect ratio */
    margin: 10px auto; /* Centers the image and adds spacing */
    display: block; /* Ensures it's a block element to accept margin auto */
}
#products .product-card img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}
#products .product-card:hover img {
    transform: scale(1.05);
}
#products .card-title {
    font-size: 24px;
    color: white; /* White color for card titles */
}
#products .card-text {
    font-size: 16px;
    color: #ccc; /* Light gray color for descriptions */
    line-height: 1.6;
    padding: 0 20px; /* Padding on the sides for better text alignment */
}
#products .card-link {
    text-decoration: none; /* No underline */
    color: inherit; /* Inherits white color for text */
}
#products .card-link:hover {
    text-decoration: none; /* Ensures no underline on hover */
}
#products .consultancy-cta {
    display: block; /* Makes the entire block clickable */
    background: #444; /* Matches the product card background */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-top: 30px;
    text-align: center;
    color: #ccc;
    text-decoration: none; /* Removes underline */
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#products .consultancy-cta:hover {
    color: white; /* Makes text stand out more on hover */
    transform: scale(1.02); /* Subtle enlargement on hover */
}
#products .consultancy-cta p {
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
    color: #E27F2E;
}


  /************/
 /* FEATUREs */
/************/
#features img {
    margin-bottom: 20px;
}
#features p {
    text-align: justify;
    margin: 0px 10px;
}
.feature {
    text-align: center;
    margin-bottom: 40px;
}
.feature h3 {
    font-size: 24px;
    margin-bottom: 10px;
}
.feature p {
    color: #666;
}


  /********/
 /* NEWs */
/********/
.news-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.news-card:hover {
    transform: translateY(-5px);
}
.news-card h4 {
    margin-bottom: 15px;
    text-align: center;
}
.news-card img {
    width: auto;
    height: 150px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}
.news-date {
    color: gray;
    text-align: center;
}
.news-description {
    height: 150px;
    text-align: justify;
}


  /************/
 /* PARTNERs */
/************/
#partners {
    padding-bottom: 50px;
    background-color: #333; /* Dark background for the entire section */
}
#partners .partner {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent; /* No background color for individual logos */
}
#partners .partner-logo {
    max-width: 100px; /* Uniform width */
    max-height: 50px; /* Uniform height, adjust as necessary */
    filter: grayscale(100%); /* White logos */
    transition: transform 0.3s ease, filter 0.3s ease;
}
#partners .partner-logo:hover {
    transform: scale(1.1); /* Slightly larger on hover */
    filter: none; /* Full color on hover */
}
#partners .section-title {
    color: white; /* White color for the title */
    margin-bottom: 30px; /* Space before logos */
}


  /********/
 /* TEAM */
/********/
.team-member-card {
    text-align: center;
    transition: transform 0.3s ease;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.team-member-card:hover {
    transform: translateY(-5px);
}
.team-member-card h3 {
    margin: 20px 0 10px;
}
.team-member-img {
    height: 550px; /* Set a fixed height for the images */
    object-fit: cover; /* Ensure the image covers the area without stretching */
    width: 100%; /* Ensure the image width is 100% of the parent container */
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.team-member-info {
    padding: 20px;
}
.team-member-description {
    margin: 0px 10px;
    text-align: justify;
}
.team-role{
    color: gray;
}


  /***********/
 /* CONTACT */
/***********/
#contact {
    background-color: #333;
    color: #fff;
    padding-top: 100px;
    padding-bottom: 30px
}
#contact-form {
    text-align: center;
}
#contact-form input,
#contact-form textarea {
    display: block;
    width: 100%;
    margin-bottom: 0px;
    padding: 10px;
    border-radius: 5px;
    border: none;
}
#contact-form button {
    background-color: #E27F2E;
    color: #fff;
    margin-top: 10px;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#contact-form button:hover {
    background-color: #ddd;
    color: #555;
}
#contact h2 {
    text-align: center;
    color: #fff; /* Change text color to white */
}
#contact p {
    text-align: center;
    color: #fff; /* Change text color to white */
    padding-bottom: 20px;
}
#contact .row {
    margin-bottom: 0px;
}
#contact .col-md-6 {
    margin-bottom: 5px;
}

/* For Contact form validation */
.error {
    color: red;
    margin-top: 5px;
    font-size: 14px;
}

footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}
footer p {
    font-size: 14px;
}
footer .social-icon {
    width: 30px;
    height: 30px;
    margin: 0px 10px;
}
footer .social-icon:hover {
    transform: scale(1.2);
}


  /***************/
 /* SMARTPHONEs */
/***************/
@media (max-width: 768px) {
    #products .product-card {
        margin-bottom: 20px;
    }
    #partners .partner {
        flex: 0 0 50%; /* Adjust number of columns on smaller screens */
        max-width: 50%; /* Matching max width to flex-basis */
    }
}