:root {
    --dark-blue: #234660; /* Extracted from logo */
    --light-blue: #74ADC8; /* Extracted from logo */
    --grey: #F0F0F0; /* Light grey for background */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-light: #555555;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

header .logo {
    height: 60px; /* Adjust as needed */
    width: auto;
}

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

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: bold;
    transition: color 0.3s ease;
}

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

/* Main Content Sections */
main section {
    padding: 60px 0;
}

main section:nth-child(odd) {
    background-color: var(--grey);
}

main section h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(35, 70, 96, 0.8), rgba(35, 70, 96, 0.8)), url('../images/background.jpg') no-repeat center center/cover; /* Add a background image if desired */
    background-color: var(--dark-blue); /* Fallback color */
    color: var(--white);
    height: 70vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--light-blue);
    color: var(--white);
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #5a97b8; /* Darker shade of light-blue */
}

/* Sobre Section */
#sobre .about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

#sobre .profile-image {
    max-width: 300px; /* Adjust size as needed */
    height: auto;
    border-radius: 8px; /* Optional rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#sobre h3 {
    color: var(--dark-blue);
    margin-bottom: 10px;
}

/* Serviços Section - Slideshow */
/* Slideshow container */
.slideshow-container {
  max-width: 800px; /* Adjust max-width as needed */
  position: relative;
  margin: auto;
  overflow: hidden; /* Hide parts of images that might overflow */
  border-radius: 8px; /* Optional: Add rounded corners */
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.mySlides img {
  vertical-align: middle;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  max-height: 500px; /* Limit max height if needed */
  object-fit: cover; /* Cover the container, might crop */
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background */
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Contato Section */
#contato .contact-info {
    margin-top: 20px;
}

#contato .contact-info p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

#contato .contact-info a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

#contato .contact-info a:hover {
    color: var(--light-blue);
}

/* Utility class for text centering */
.text-center {
    text-align: center;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Footer Icons */
.footer-icons {
    margin-top: 15px;
}

.footer-icons a {
    color: var(--white);
    font-size: 1.8rem; /* Adjust icon size */
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-icons a:hover {
    color: var(--light-blue);
}

/* Contact Icons */
#contato .contact-info i {
    margin-right: 10px;
    color: var(--dark-blue);
    width: 20px; /* Align icons */
    text-align: center;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float img {
    width: 35px; /* Adjust icon size within the button */
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Darker shade on hover */
}


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: center;
    }

    header .logo {
        margin-bottom: 15px;
    }

    /* Adjusted Mobile Navigation */
    nav {
        width: 100%;
        text-align: center; /* Center the list container */
    }

    nav ul {
        display: flex; /* Use flexbox for alignment */
        justify-content: space-around; /* Distribute items evenly */
        align-items: center; /* Vertically align items */
        padding: 0 5px; /* Add slight padding */
        margin-top: 10px;
        flex-wrap: nowrap; /* Ensure items stay on one line */
        overflow: hidden; /* Hide overflow if absolutely necessary, but aim to fit */
    }

    nav ul li {
        margin: 0 5px; /* Reduce margin between items */
        display: inline-block; /* Keep items inline */
    }

    nav ul li a {
        font-size: 0.9rem; /* Slightly reduce font size */
        padding: 5px; /* Add padding for easier tapping */
    }
    /* End Adjusted Mobile Navigation */

    .hero {
        height: 50vh;
    }

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

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

    main section {
        padding: 40px 0;
    }

    main section h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    #sobre .about-content {
        flex-direction: column;
        text-align: center;
    }

    #sobre .profile-image {
        max-width: 250px;
        margin-bottom: 20px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float img {
        width: 30px;
    }
}

/* Further adjustments for very small screens if needed */
@media (max-width: 480px) {
    header .logo {
        height: 50px;
    }

    nav ul li a {
        font-size: 0.8rem; /* Further reduce font size */
        padding: 5px 3px;
    }
    nav ul li {
        margin: 0 3px; /* Further reduce margin */
    }

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

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    footer p {
        font-size: 0.8rem;
    }
    .footer-icons a {
        font-size: 1.6rem;
        margin: 0 10px;
    }
}

