.lang-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Prevents horizontal scrolling on small screens */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Default container setup */
.container {
    width: 90%; /* Slightly less wide */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Typography */
h1, h2, h3, h4 {
    font-weight: 700; /* Stronger bold */
    color: #ffffff; /* Darker heading color */
}

/* Make images flexible */
img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit; /* Inherit color from parent */
    transition: color 0.3s ease; /* Smooth hover effect */
}

a:hover {
    color: #695f00; /* Darker brown on hover */
}

/* Language Flag */
.lang-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    vertical-align: middle;
    border-radius: 2px; /* Rounded corners for flags */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Company Logo */
.company-logo {
    position: absolute;
    top: 30px; /* Adjusted top position */
    left: 30px; /* Adjusted left position */
    width: 150px; /* Slightly smaller */
    height: 80px;
    border-radius: 15%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    transition: all 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.fixed-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 100px;
    height: 60px;
    z-index: 1000;
    cursor: pointer;
    border-radius: 15%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.fixed-logo:hover {
    transform: scale(1.1);
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .company-logo {
        width: 50px;
        height: 50px;
        top: 70px;
        left: 20px;
    }
}

.second-logo {
    position: absolute;
    top: 30px; /* Adjusted top position */
    right: 30px; /* Position it in the right corner */
    width: 80px; /* Adjust the size */
    height: 80px;
    border-radius: 50%; /* Optional: Make it circular */
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow for better appearance */
    transition: all 0.3s ease;
}

.second-logo:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Adjust for mobile */
@media (max-width: 600px) {
    .second-logo {
        width: 50px;
        height: 50px;
        top: 140px;
        left: 20px;
    }
}

.language-switch {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
}

.lang-btn.active {
    background-color: #695f00;
    border: 2px solid #ffffff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lang-btn {
    background-color: #807300;
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    padding: 10px 18px;
    border-radius: 6px;
    transition: background 0.2s, border 0.2s;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* Lighter background */
    color: #333;
    line-height: 1.6; /* Improved readability */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header */
header {
    background-color: #807300;
    color: white;
    padding: 15px 0; /* Reduced padding */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    position: relative; /* For logo positioning */
    z-index: 10;
}

header h1 {
    margin: 0;
    text-align: center;
    font-size: 28px; /* Slightly larger */
    font-weight: 800; /* Even bolder */
    letter-spacing: 0.5px; /* Slight letter spacing */
}

header nav {
    margin-top: 10px;
    text-align: center;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    list-style: none;
}

header nav ul li {
    margin: 0 10px; /* More space between items */
}

header nav ul li a {
    color: white;
    font-weight: 600; /* Slightly bolder */
    padding: 8px 12px; /* Add padding for better click area */
    border-radius: 4px; /* Rounded corners */
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Light background on hover */
    text-decoration: none;
}

@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
        text-align: center;
    }

    header nav ul li {
        margin: 5px 0;
    }
}

/* Hero Section */
#hero {
    background-image: url('Images/residential-cleaning_schedule_2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 20px; /* Increased padding */
    border-bottom-left-radius: 12px; /* Rounded bottom-left corner */
    border-bottom-right-radius: 12px; /* Rounded bottom-right corner */
    text-align: center;
    position: relative; /* For overlay */
    overflow: hidden; /* Hide overflow */
    height: 50vh; /* Makes the section fill one page */
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h2 {
    font-size: 42px; /* Larger heading */
    font-weight: 800;
    margin: 0 0 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Text shadow */
}

#hero p {
    font-size: 20px; /* Larger paragraph */
    margin: 0 0 30px; /* More space below */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#hero .btn-primary {
    background-color: #807300;
    color: white;
    padding: 12px 25px; /* Larger button */
    border-radius: 6px; /* More rounded */
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Button shadow */
    transition: all 0.3s ease;
    display: inline-block;
    z-index: 2;
}

#hero .btn-primary:hover {
    background-color: #5e5400;
    transform: translateY(-2px); /* Lift on hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    #hero {
        padding: 70px 15px;
    }

    #hero h2 {
        font-size: 32px;
    }

    #hero p {
        font-size: 18px;
    }
}

/* Services Section */
#services {
    position: relative;
    padding: 60px 20px; /* Increased padding */
    background-color: #fff;
    text-align: center;
    margin: 40px auto; /* Increased margin */
    height: 89vh; /* Make the section fill the viewport height */
    border-radius: 12px; /* More rounded */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); /* Stronger shadow */
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px; /* Increased gap */

}

#services h2 {
    font-size: 32px; /* Larger heading */
    font-weight: 800;
    margin-bottom: 0px; /* Increased margin */
    width: 100%;
}

.service-items {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0; /* Remove default margin */
    width: 220px; /* Slightly wider */
    background-color: #f8f8f8; /* Light background */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.service-item img {
    width: 160px; /* Slightly larger */
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
}

.service-item p {
    margin-top: 0; /* Remove default margin */
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

@media (max-width: 600px) {
    .service-item img {
        width: 50px;
        height: 50px;
    }
}

/* Swipe Animation (Needs JavaScript to trigger) */
#swipe-animation {
    position: absolute;
    width: 1500px;
    height: 1500px;
    background-image: url('Images/pngfind.com-cleaning-png-919465.png');
    background-size: contain;
    background-repeat: no-repeat;
    left: 50%;
    top: -150px;
    transform: translateX(-50%);
    z-index: 9999;
    transition: top 3s ease-in-out;
    visibility: hidden;
    pointer-events: none; /* Prevent interaction */
}

.service-item.active #swipe-animation {
    visibility: visible;
}

#about {
    position: relative;
    background: url("Images/About_us.jpg") no-repeat center center;
    background-size: cover;
    padding: 80px 20px;
    color: white;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 40px auto; /* Increased margin */
    height: 89vh; /* Make the section fill the viewport height */
    display: flex; /* Center content vertically */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Add a dark overlay to improve text readability */
#about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity for readability */
    border-radius: 8px;
}

/* Ensure text is on top of the background */
#about .container {
    position: relative;
    z-index: 2;
}

/* Style headings */
#about h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

#about h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}


.about-gauges {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    z-index: 2;
}

.gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.gauge svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.gauge circle {
    fill: none;
    stroke-width: 10;
    stroke: rgba(255, 255, 255, 0.2);
    r: 45;
    cx: 50;
    cy: 50;
}

.gauge circle:nth-child(2) {
    stroke: #00e676;
    stroke-dasharray: 282.6; /* 2πr (r=45) */
    stroke-dashoffset: calc(282.6 - (282.6 * var(--percentage) / 100));
    transition: stroke-dashoffset 1s ease-out;
}

.gauge h3 {
    margin: 10px 0 5px;
    font-size: 20px;
}

.gauge p {
    font-size: 14px;
}

/* Hide the logo inside the section since the background is now an image */
#about .company-logo {
    display: none;
    z-index: 1000; /* Ensure it stays on top of other elements */
}

/* Make section responsive */
@media (max-width: 768px) {
    #about {
        padding: 40px 15px;
    }

    #about h1 {
        font-size: 24px;
    }

    #about h2 {
        font-size: 18px;
    }
    .gauge svg {
        width: 60px; /* Smaller width */
        height: 60px; /* Smaller height */
        transform: rotate(-90deg); /* Ensure the gauge starts at the top */
    }

    .gauge circle {
        fill: none;
        stroke-width: 7; /* Adjust stroke width for smaller size */
        stroke: rgba(255, 255, 255, 0.2); /* Background stroke */
        r: 25; /* Adjust radius for smaller size */
        cx: 30; /* Center X for smaller size */
        cy: 30; /* Center Y for smaller size */
    }

    .gauge circle:nth-child(2) {
        stroke: #00e676; /* Foreground stroke */
        stroke-dasharray: 157.07; /* Full circumference: 2πr (r=28) */
        stroke-dashoffset: calc(157.07 - (157.07 * var(--percentage) / 100)); /* Adjust based on percentage */
        transition: stroke-dashoffset 1s ease-out; /* Smooth animation */
    }

    .gauge h3 {
        font-size: 14px; /* Smaller font size for headings */
    }

    .gauge p {
        font-size: 10px; /* Smaller font size for descriptions */
    }

    .about-gauges {
        gap: 15px; /* Reduce gap between gauges */
    }
    #about .company-logo {
        display: block; /* Make the logo visible */
        position: absolute; /* Ensure proper positioning */
        top: 20px; /* Adjust as needed */
        left: 20px; /* Adjust as needed */
        z-index: 1000; /* Ensure it stays on top of other elements */
    }
}

#contact {
    position: relative;
    background: url("Images/Contact_us.jpg") no-repeat center bottom;
    background-size: 2000px 1000px;
    padding: 80px 20px;
    color: white;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    margin: 40px auto; /* Increased margin */
    height: 87vh; /* Make the section fill the viewport height */
    display: flex; /* Center content vertically */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Dark overlay for better readability */
#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Adjust opacity for readability */
    border-radius: 8px;
}

/* Ensure text is on top of the background */
#contact .container {
    position: relative;
    z-index: 2;
}

/* Style the headings */
#contact h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

#contact h2 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Make the section responsive */
@media (max-width: 768px) {
    #contact {
        padding: 40px 15px;
    }

    #contact h1 {
        font-size: 24px;
    }

    #contact h2 {
        font-size: 18px;
    }
}

.container {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

/* Prevent the entire page from moving horizontally */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* GALLERY SECTION */
#gallery {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px;
    background-color: #f4f4f4;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: 100vh; /* Make the gallery fill the viewport height */
    overflow: hidden; /* Prevent overflow */
    position: relative; /* Ensure proper positioning for the ribbon */
}

#gallery h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 0; /* Slight margin to avoid overlap */
    padding: 10px 0; /* Add padding for spacing */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    align-self: flex-start; /* Align the title to the top */
}

/* Scrollable Horizontal Ribbon */
.gallery-ribbon {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px 0; /* Remove horizontal padding */
    overflow: hidden; /* Hide overflow to create the effect of images coming from the sides */
    white-space: nowrap;
    animation: scrollLoop 20s linear infinite; /* Infinite scrolling animation */
    position: absolute;
    top: 20vh; /* Align the ribbon to the top of the section */
    left: 0;
    width: 200%; /* Make the ribbon wider than the screen to allow overflow */
}

.gallery-ribbon img {
    height: 700px; /* Adjust height to fit more images */
    width: auto;
    max-width: 20%; /* Allow more images to fit in the visible area */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Keyframes for infinite scrolling */
@keyframes scrollLoop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%); /* Scroll halfway to create a seamless loop */
    }
}

/* Pause animation when the user interacts */
.gallery-ribbon.paused {
    animation-play-state: paused;
}

/* Hide scrollbar on mobile */
@media (max-width: 768px) {
    .gallery-ribbon img {
        height:500px;
        max-width: 30%; /* Adjust for smaller screens */
    }
}

#order {
    padding: 40px 20px;
    background-color: white;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: background-image 0.5s ease;
    position: relative;
    color: #fff; /* Set text color to white for better visibility */
}

#order h2, #order h3, #order label {
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for text */
    padding: 10px;
    border-radius: 4px;
    font-weight: bold; /* Make the text bold */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Add a text shadow for better readability */
}

#order h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.results h3 {
    margin-top: 10px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin-top: 10px;
    font-weight: 500;
}

input, select, button {
    margin-top: 5px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.double-column {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 15px;
}

/* Ensure both columns take equal space */
.double-column .input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Adjust input field width */
.double-column input {
    width: 95%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    margin-top: 20px;
    background-color: #706500;
    color: white;
    cursor: pointer;
    border: none;
    font-weight: 700;
}

button:hover {
    background-color: #5e5400;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

.results {
    margin-top: 20px;
    text-align: center;
}

.price-info-container {
    width: 97.5%;
    position: relative;
}

.price-info-container h3 {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px;
    border-radius: 4px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.price-tooltip {
    display: inline-block;
    position: relative;
    margin-left: 10px;
    position: relative;
    display: inline-block;
}

.price-tooltip i {
    color: #fffb00;
    cursor: help;
}

.price-tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: normal;
    line-height: 1.4;
}

.price-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.price-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 600px) {
    .double-column {
        flex-direction: column;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

footer .social-links {
    margin-top: 10px;
}

footer .social-link {
    color: white;
    font-size: 24px;
    margin: 0 10px;
    text-decoration: none;
}

footer .social-link:hover {
    color: #00796b; /* Change to a hover color of your choice */
}

footer .social-link i {
    vertical-align: middle;
}

.double-column {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 15px;
}

/* Ensure both columns take equal space */
.double-column .input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Adjust input field width */
.double-column input {
    width: 95%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .double-column {
        flex-direction: column;
    }

    .company-logo {
        width: 50px;
        height: 50px;
    }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Touch improvements */
* {
  -webkit-tap-highlight-color: transparent;
}

img, a, button {
  touch-action: manipulation;
}

/* Hero animation: fade in up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero h2 {
  animation: fadeInUp 1.2s ease-out;
}

#hero p {
  animation: fadeInUp 1.5s ease-out;
}

/* Gradient shift for hero background (optional wow effect) */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

#hero.gradient-animated {
  background: linear-gradient(-45deg, #00796b, #004d40, #00695c, #00897b);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

/* Pulse animation for button */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

#hero .btn-primary:hover {
  animation: pulse 0.6s ease-in-out;
}

#hero {
  height: 100svh;
  min-height: 100vh;
}
#about {
  height: 100svh;
  min-height: 100vh;
}
#services {
  height: 100svh;
  min-height: 100vh;
}
#contact {
  height: 87svh;
  min-height: 87vh;
}

#hero .container {
  padding-top: 80px;
}