
.heading {
    position: relative;
    background-image: url('/images/header1.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 1); /* Outline effect */
    text-align: center;
    padding: 10px;
    padding-top: 50px;
    height: 300px;
    overflow: hidden; /* Ensure overlay fits within the header */
}

.heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.623); /* Adjust the color and transparency */
    z-index: 1; /* Ensure the overlay is above the background */
}

.heading * {
    position: relative;
    z-index: 2; /* Ensure text and menu are above the overlay */
}

.body{
    background-color: black;
    border: 2px solid black;
    /*min-height: 100vh; Ensures the body takes up the full viewport height */
}
section{
    background-color: black;
    margin: 10px;
    border: 2px solid black;
    /*min-height: 100vh; Ensures the body takes up the full viewport height */
}
#home {
    display: flex;
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Center items vertically */
    padding: 20px; /* Add padding around the section */
    background-color: black; /* Background color for the section */
    height: fit-content; /* Ensure the section takes the full viewport height */
    padding: 80px 40px;
}
#button-container{
    background-color: white;
    margin: 0px;
    padding: 0px;
}
/* Button Container */
.button-container {
    display: flex;
    justify-content: center;
    margin: auto;
    gap: 20px; /* Space between buttons */
    background-color: white;
    max-width: fit-content;
}

/* Content Container */
.content-container {
    display: flex;
    justify-content: center; /* Push text and logo to opposite sides */
    gap: 50px;
    align-items: center; /* Center vertically */
    width: 100%; /* Take full width of the parent */
    max-width: 1200px; /* Limit the overall width of the content */
}

.intro {
    display: flex; /* Use Flexbox to align items */
    align-items: center; /* Vertically center the content */
    justify-content: space-between; /* Separate text and image */
    padding: 20px; /* Add padding around the section */
    padding-top: 0px;
    padding-bottom: 5px;
    color: white; /* Default text color */
}

/* Text Container */
.intro-text {
    flex: 1; /* Allow the text container to take up space */
    display: flex; /* Enable Flexbox for the text itself */
    flex-direction: column; /* Stack text elements vertically */
    justify-content: center; /* Center text vertically */
    max-width: 80%; /* Limit the text width */
    color: white; /* Text color */
    padding: 20px; /* Optional padding for spacing */
}

/* Heading Styling */
.intro-text h4 {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Paragraph Styling */
.intro-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Image Styling */
.DexIMG {
    max-width: 30%; /* Limit the image width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%; /* Optional for circular image */
    margin: auto 0; /* Ensure vertical centering */
    border: 2px solid black;
    max-width: 100%;
    height: 350px;
    width: 350px; /* Adjust width as per your design */
    animation: slideInFromRight 1s ease-out; /* Apply the animation */
}

/* General Button Styles */
.btn.btn {
    display: inline-block;
    padding: 25px 40px; /* Increased padding for larger buttons */
    font-size: 1.2rem; /* Larger font size */
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    background-color: black; /* Default background color */
}

/* Black with White Border */
.btn.btn-black-white {
    color: black;
    background-color: white;
}

.btn.btn-black-white:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* Black with Red Border */
.btn.btn-black-red {
    color: red;
    background-color: white;
}

.btn.btn-black-red:hover {
    background-color: white;
    color: red;
    border: 2px solid red;

}

h1{
    text-align: center;
}
h2{
    text-align: center;
}
h3{
    line-height: 150%;
}
p{
    font-weight: 500;
    margin: 10px;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 70%;

}
div ul {
    margin: 0;
    padding: 0;

}
div li {
    margin: 10px 0;
    padding: 0;
    display: flex; /* Display the menu items in a row */
    justify-content: center; /* Center align the menu items horizontally */
}
div{
    font-weight: 500;
    margin: 5px;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 100%;
    line-height: 150%;
}

nav{
    text-align: center;
}

main {
    padding: 20px;
    padding-left: 75px;
    padding-right: 75px;
    background-color: black;
}
@keyframes slideInFromRight {
    from {
        transform: translateX(100%); /* Start off-screen to the right */
        opacity: 0; /* Start invisible */
    }
    to {
        transform: translateX(0); /* End in its original position */
        opacity: 1; /* Fully visible */
    }
}
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%); /* Start off-screen to the left */
        opacity: 0; /* Start invisible */
    }
    to {
        transform: translateX(0); /* End in its original position */
        opacity: 1; /* Fully visible */
    }
}

.slide-in-left {
    animation: slideInFromLeft 1s ease-out; /* Apply the animation */
    opacity: 1; /* Ensure it's fully visible after animation */
}


/* Show the menu options at all times */
.menu {
    display: block;
    color: white;
}

/* Additional styling for the menu options */
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 10px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 22px;
    padding: 10px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

nav ul li a:hover {
    background-color: transparent;
    color: #669ff3;
}

#services {
    position: relative;
    background: url('/images/mazdabackground.jpg') no-repeat center center fixed; /* Add your background image */
    background-size: cover; /* Ensure the image covers the section */
    color: white; /* Ensure content is visible on the background */
    padding: 50px 0; /* Add spacing inside the section */
}

.bubbles {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.bubble {
    position: relative;
    width: 300px; /* Adjust bubble size */
    height: 300px;
    border: 2px solid white; /* Default border */
    display: flex;
    align-items: center; /* Vertically center text */
    justify-content: center; /* Horizontally center text */
    background-color: rgba(0, 0, 0, 0.7); /* Optional background */
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bubble:hover {
    border-color: red; /* Change border color to red on hover */
}

.bubble-content p {
    font-size: 1.5rem; /* Adjust text size */
    font-weight: bold;
    color: white; /* Default text color */
    transition: color 0.3s ease; /* Smooth transition for text color */
    margin: 0;
}

.bubble:hover .bubble-content p {
    color: red; /* Change text color to red on hover */
}

.slide-in-left {
    animation: slideInFromLeft 1s ease-out forwards;
}

.slide-in-right {
    animation: slideInFromRight 1s ease-out forwards;
}


/* Overlay Styling */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    cursor: pointer;
}

.services{
    position: relative;
            margin: 0;
            padding: 0;
            top: 0;
            left: 0;
            width: 350px; /* Matches the parent bubble dimensions */
            height: 350px; /* Matches the parent bubble dimensions */
            object-fit: cover; /* Ensures the image scales proportionally to cover the bubble */
            border-radius: 50%; /* Clips the image to match the circle */
            z-index: 1; /* Ensures the image stays behind the text */
}
.servp{
    margin-top: 0;
    font-size: 28px; /* Adjust font size for better visibility */
    font-weight: bold;
    color: #ffffff; /* Ensures text is visible */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Adds contrast for readability */
    position: absolute; /* Ensures text is positioned on top of the bubble */
    top: 50%; /* Centers text vertically */
    left: 50%; /* Centers text horizontally */
    transform: translate(-50%, -50%); /* Centers the text within the bubble */
    z-index: 100; /* Places text above the image */
    text-align: center;
}


    @media (max-width: 600px) {

        .btn.btn {
            display: inline-block;
            padding: 15px 25px; /* Increased padding for larger buttons */
            font-size: 1.2rem; /* Larger font size */
            font-weight: bold;
            text-transform: uppercase;
            text-align: center;
            border-radius: 5px;
            text-decoration: none;
            transition: all 0.3s ease;
            background-color: white; /* Default background color */
        }
        .button-container a {
            flex: 1 1 90%; /* Buttons take 90% of container width */
            max-width: 90%; /* Ensure buttons are responsive */
            border: white;
        }
        
        .services {
            position: relative;
            margin: 0;
            padding: 0;
            min-width: 250px;
            min-height: auto;
            top: 0;
            left: 0;
            width: 300px; /* Matches the parent bubble dimensions */
            height: 300px; /* Matches the parent bubble dimensions */
            object-fit: cover; /* Ensures the image scales proportionally to cover the bubble */
            border-radius: 50%; /* Clips the image to match the circle */
            z-index: 1; /* Ensures the image stays behind the text */
        }
        .servp{
            margin-top: 0;
            font-size: 1.2rem; /* Adjust font size for better visibility */
            font-weight: bold;
            color: #ffffff; /* Ensures text is visible */
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); /* Adds contrast for readability */
            position: absolute; /* Ensures text is positioned on top of the bubble */
            top: 50%; /* Centers text vertically */
            left: 50%; /* Centers text horizontally */
            transform: translate(-50%, -50%); /* Centers the text within the bubble */
            z-index: 100; /* Places text above the image */
            text-align: center;
        }
        header {
            background-position: center;
        }
        h1, h2 {
            text-align: center;
        }
        h2{
            font-size:32px;
        }
        #home {
            display: flex;
            justify-content: center; /* Center items horizontally */
            align-items: center; /* Center items vertically */
            padding: 0px; /* Add padding around the section */
            margin: 0%;
            background-color: black; /* Background color for the section */
            height: fit-content; /* Ensure the section takes the full viewport height */
        }
        .intro {
            flex-direction: column; /* Stack elements vertically */
            text-align: center; /* Center-align content */
            padding: 10px; /* Adjust padding for smaller screens */
            width: 350px;
        }
    
        .DexIMG {
            order: -1; /* Move the logo to appear first */
            max-width: 100%; /* Adjust logo size for mobile */
            max-height: fit-content;
            margin-bottom: 20px; /* Add space below the logo */
        }
    
        .intro-text {
            max-width: 100%; /* Allow text to span full width */
            margin: 10px 0; /* Add space around the text */
        }
    
        .menu ul {
            padding: 0; /* Reset padding */
            margin: 0; /* Reset margin */
            text-align: center; /* Center the list items */
            list-style: none;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
        }
    
        .menu ul li {
            width: calc(33.33% - 20px);
            margin: auto;
            justify-content: center;
            margin: 10px 0; /* Add vertical space between items */
        }
    
        .menu ul li a {
            color: white;
            font-size: 18px;
            text-decoration: none;
            padding: 10px;
            border-radius: 10px;
            width: 100%;
            text-align: center;
            transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
        }
    
        .menu ul li a:hover {
            background-color: transparent;
            color: #669ff3;
        }
        main {
            background-color: black;
            display: flex;
            align-items: center;
            padding: 20px;
            flex-direction: column;
        }
        #services {
            padding: 20px 0; /* Adjust padding for smaller screens */
            background: url('/images/miatamobile.jpg'); /* Keep background fixed */
            background-size: cover; /* Ensure the background image scales */
        }
    
        .bubbles {
            flex-direction: column; /* Stack bubbles vertically */
            align-items: center; /* Center the bubbles */
            gap: 20px; /* Space between stacked bubbles */
        }
    
        .bubble {
            width: 90%; /* Make bubbles responsive to screen width */
            height: 150px; /* Adjust height for better fit on smaller screens */
            border: 2px solid white; /* Maintain border styling */
        }
    
        .bubble-content p {
            font-size: 1.2rem; /* Adjust font size for readability */
        }
        
        /* Text alignment */
        h4 {
            text-align: center;
        }
    
        
        p {
            width: 100%;
            margin:0;
            padding: 0;
            padding-bottom: 0;
        }
    }