/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #FFFFFF; /* White text for readability */
    background: url('images/PalmSillo.jpg') no-repeat center center; /* Background image */
    background-size: cover; /* Ensure the image covers the entire viewport */
    background-attachment: fixed; /* Keeps the background static while scrolling */
    background-color: #003F87; /* Fallback color */
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(0, 63, 135, 0.8); /* Transparent blue */
    color: #FFFFFF; /* White text */
    padding: 1rem 0;
    display: flex;
    align-items: center; /* Vertically align all elements */
    justify-content: center; /* Center the content */
    flex-wrap: wrap;
}

header .logo img {
    width: 150px;
}

header nav {
    flex-grow: 1;
    display: flex;
    justify-content: center; /* Center the navigation links */
}

header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Adjusted font size */
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #E66000; /* Orange hover effect */
}

header .cta {
    display: flex;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    text-align: center;
    background: #E66000;
    color: #FFFFFF;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 14px; /* Adjusted font size */
}

.cta-button:hover {
    background: #FF8F33;
    transform: scale(1.05);
    text-decoration: none;
}
.header-instagram i {
    color: #FFFFFF; /* Makes the icon white */
    font-size: 2.25rem; /* 50% larger than the default size */
    transition: transform 0.3s ease; /* Adds a smooth hover effect */
}

.header-instagram i:hover {
    transform: scale(1.2); /* Slight zoom effect on hover */
}

/* Hero Section */
.hero {
    background: rgba(230, 96, 0, 0.8);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 80vh;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 2rem; /* Reduced font size */
    text-align: center;
}

.hero p {
    color: #003F87;
    font-size: 1.5rem; /* Reduced font size */
    text-align: center;
}

/* Section Titles */
section h2 {
    font-size: 1.8rem; /* Adjusted for smaller screens */
    text-align: center;
    margin-bottom: 1rem;
}

/* About Section */
.about {
    padding: 2rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
}

/* About Section Text */
.about p {
    font-size: 1.2rem; /* Adjusted for smaller screens */
    color: #E66000;
    line-height: 1.8;
    text-align: center;
}

.about h2 {
    font-size: 2rem; /* Adjusted font size */
    color: #003F87;
    text-align: center;
}

/* Services Section */
.services {
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.9);
    color: #E66000;
}

.services h2 {
    color: #003F87;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: rgba(0, 63, 135, 0.8);
    border: 1px solid #E66000;
    border-radius: 5px;
    padding: 1.5rem;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-card i {
    font-size: 2.5rem; /* Adjusted size */
    color: #E66000;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem; /* Adjusted size */
    margin-bottom: 0.5rem;
}

/* Gallery Section */
.gallery {
    padding: 2rem 0;
    background: rgba(0, 63, 135, 0.8);
    text-align: center;
    color: #FFFFFF;
}

.gallery h2 {
    color: #FFFFFF;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-images img {
    width: 100%;
    flex-shrink: 0;
}

.carousel button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #FFFFFF;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s ease;
}

.carousel button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel .prev {
    left: 10px;
}

.carousel .next {
    right: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 2rem 0;
    background: rgba(230, 96, 0, 0.8);
    color: #FFFFFF;
}

.testimonials h2 {
    color: #FFFFFF;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    color: #003F87;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.testimonial-card p {
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card h4 {
    font-weight: bold;
}

.testimonial-card .testimonial-nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.testimonial-card .testimonial-nav button {
    background-color: transparent;
    border: 1px solid #E66000;
    color: #E66000;
    padding: 0.5rem 1rem;
    margin: 0 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.testimonial-card .testimonial-nav button:hover {
    background-color: #E66000;
    color: #FFFFFF;
}

/* Contact Section */
.contact {
    padding: 2rem 0;
    text-align: center;
    background: rgba(0, 63, 135, 0.8); /* Transparent blue */
    color: #FFFFFF;
}

.contact h2 {
    color: #FFFFFF; /* White for contrast */
}

/* Owner Contact Card */
.owner-contact-card {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white */
    padding: 1.5rem;
    margin-right: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #003F87; /* Blue text */
    text-align: left;
}

.owner-contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.owner-contact-card p {
    margin-bottom: 0.5rem;
}

.owner-contact-card a {
    color: #003F87; /* Blue links */
    text-decoration: none;
}

.owner-contact-card a:hover {
    color: #E66000; /* Orange on hover */
}

/* Contact Form */
.contact-content {
    display: grid; /* Using grid layout */
    grid-template-columns: 1fr 1fr; /* Two equal-width columns */
    gap: 2rem; /* Space between columns */
    justify-items: center; /* Center content in the grid items */
    align-items: start; /* Align items to the start of their grid space */
}

.contact form {
    max-width: 800px; /* Increased width */
    margin: 0;
}

.contact .form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.contact label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
}

.contact button {
    margin-top: 1rem;
}

/* Separator above Footer */
.footer-separator {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* Footer */
footer {
    background: rgba(0, 63, 135, 0.8);
    color: #FFFFFF;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-logo img {
    width: 150px;
}

.footer-text p {
    margin: 0.5rem 0;
}

.footer-text .social-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-top: 10px;
}

.footer-text .social-links li {
    margin: 0 10px;
}

.footer-text .social-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-text .social-links a:hover {
    color: #E66000;
    transform: scale(1.2);
}

/* Media Query for Mobile */
@media screen and (max-width: 768px) {
    body {
        background-attachment: scroll; /* Change fixed to scroll for mobile */
    }

    /* Section Background Transparency Fix for Mobile */
    section {
        background: rgba(0, 63, 135, 0.8); /* Ensure transparency works on mobile */
    }

    .contact-content {
        grid-template-columns: 1fr; /* Stack the form and owner contact on mobile */
        gap: 1rem; /* Adjust space between them */
    }

    /* Hero Section Adjustments */
    .hero h1 {
        font-size: 1.5rem; /* Adjust font size for mobile */
    }

    .hero p {
        font-size: 1.2rem; /* Adjust font size for mobile */
    }
}
