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

@font-face {
    font-family: 'Century Gothic';
    src: url('fonts/GOTHIC.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    background-color: #EFF0F3;
    scroll-behavior: smooth;
}

h1, h2, h3, .navbar, .logo span {
    font-family: 'Century Gothic', Arial, sans-serif;
    font-weight: normal;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between; /* Space between logo and hamburger icon */
    align-items: center;
    padding: 10px 20px;
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2; /* Set a lower z-index for the navbar */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Logo at the start (left) */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 150px; /* Adjust logo size */
}

/* Navbar links */
.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #000000;
    font-size: 1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #E34040;
}

/* Mobile-specific styles */
.menu-icon {
    display: none; /* Hide the hamburger icon on larger screens */
    cursor: pointer;
    font-size: 24px;
    background: none;
    color: #4B4B4B;
    border: none;
}

/* On mobile, hide the nav links initially */
.nav-links {
    display: flex; /* Show nav links on desktop */
}

/* Mobile layout (max-width: 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row; /* Keep items in a row */
        justify-content: space-between;
    }

    /* Hide the navbar links on mobile initially */
    .nav-links {
        display: none; /* Hide the links initially */
        flex-direction: column;
        width: 100%; /* Full width for mobile menu */
        position: absolute;
        top: 45px; /* Position the dropdown just below the navbar */
        left: 0;
        background-color: #ffffff;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 10px 0; /* Add padding inside the dropdown */
        margin: 0; /* Remove margin */
        z-index: 1; /* Set a lower z-index for the dropdown */
    }

    .nav-links li {
        margin: 10px 0; /* Adjust spacing between items */
        text-align: center;
    }

    .menu-icon {
        display: block; /* Show the hamburger icon on mobile */
        position: absolute;
        right: 20px;
        top: 10px; /* Align hamburger icon within the navbar */
        z-index: 3; /* Make sure the hamburger is above other elements */
    }
}

.section {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.home-section {
    background-image: url('images/homepage.svg');
    background-size: cover;
    background-position: center;
    color: white;
}

/* Adjustments for smaller screens (phones) */
@media (max-width: 768px) {
    .home-section {
        background-image: url('images/mobilebg.svg'); /* Use a different background image for phones */
    }
}

#services h1 {
    text-align: left;
    margin: 0;
    padding: 20px 0;
    font-family: 'Century Gothic', Arial, sans-serif;
    font-size: 50px;
    margin-left: 55px;
}

/* General Styling */
.services-section {
    background-image: url('images/servicesbg.svg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 20px 0;
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;    
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.header {
    margin-bottom: 40px; /* Align to the top of the carousel card */
}

.carousel-card {
    position: relative;
    background-color: #fff; /* Background color for the card */
    border: 1px solid #ccc; /* Optional border */
    border-radius: 8px; /* Optional border radius */
    padding: 20px; /* Padding for the card */
}

.carousel-card h1 {
    margin: 0; /* Remove default margin */
    padding: 10px 0; /* Optional padding for spacing */
    text-align: center; /* Center the heading (optional) */
}

.service {
    margin-top: 20px; /* Space between the h1 and the service section */
    background-color: #f0f0f0; /* Background color for the service section */
    padding: 10px; /* Padding for the service section */
    border: 1px solid #ccc; /* Optional border for the service section */
}

.carousel-content {
    margin-top: 20px; /* Space between service and additional content */
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

.card {
    width: 90%;
    max-width: 1100px;
    height: 500px;
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card img {
    width: 40%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    margin: 20px;
}

.card-text {
    width: 60%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.carousel-title {
    color: #FF0303;
    font-size: 2em;
}

.carousel-description {
    margin-top: 10px;
    font-size: 1em;
    color: #555;
}

/* Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 60%; /* Adjust this value to lower the buttons */
    transform: translateY(-50%);
    background-color: #4B4B4B;
    color: white;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    color: red;
    background-color: #E34040;
}

.dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #FF0303;
}

/* Existing Styles Here */

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {

    .services-section {
        background-image: url('images/mobilebgaboutus.svg'); /* Use a different background image for phones */
    }

    .carousel {
        margin: 0px;
    }

    .header {
        display: flex; /* Ensures alignment with flex properties */
        justify-content: center;
        text-align: center;
    }

    .section{
        margin-bottom: 0px;;
    }

    #services h1 {
        text-align: center; /* Center aligns h1 in smaller screens */
        margin-left: 0; /* Removes left margin */
    }

    .carousel-container {
        display: flex;
        flex-direction: column; /* Stacks elements in the carousel */
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 90vw;
        min-height: 400px;
        height: auto;
        flex-direction: column;
        text-align: center;
    }

    .card img {
        width: 80%;
        max-width: 200px;
        margin: auto;
    }

    .card-text {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .carousel-title {
        font-size: 1.5em;
    }

    .carousel-description {
        font-size: 1em;
    }

    /* Adjust control button size and position */
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .dots {
        margin-top: 20px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-title {
        font-size: 1.2em;
    }

    .carousel-description {
        font-size: 0.9em;
    }
    
    .card img {
        width: 70%;
    }
}

.about-section {
    height: calc(100vh - 60px);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 20px 20px;
    text-align: center;
    box-sizing: border-box;
    flex: 1;
    padding: 20px;
}

.header-about{
    margin-bottom: 0px;
}

h1 {
    font-size: 3em;
    color: #E34040;
    margin-bottom: 30px;
    font-weight: bold;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin-top: 50px;
    width: 100%;
}

.about-card {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.about-card p {
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* Ensure the About Us section takes up 80vh */
.about-us-container {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
}

/* Footer Style */
.contact-footer {
    background-color: #E34040;
    color: white;
    padding: 20px;
    text-align: center;
    height: 25vh;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Footer Content */
.contact-footer h2 {
    margin: 0;
    font-size: 1.5em;
}

.contact-footer p {
    font-size: 1em;
    margin-top: 10px;
}

.footer-logo {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    margin-top: 20px;
}

.footer-logo-img {
    width: 250px; /* Adjust the size of the logo */
    height: auto;
}

/* SVG images in the footer */
.footer-images {
    display: flex;
    justify-content: center;
    gap: 30px; /* Control the gap between images */
    margin-top: 20px;
}

.footer-img-1 {
    width: 200px;
    /* Additional styling for Image 1 */
}

.footer-img-2 {
    width: 200px;
    /* Additional styling for Image 2 */
}

.footer-img-3 {
    width: 200px;
    /* Additional styling for Image 3 */
}

/* Footer Information */
.footer-info {
    margin-top: 20px;
    font-size: 0.9em;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info a {
    color: white;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {

    .about-section {
        background-image: url('images/mobilebgaboutus.svg'); /* Use a different background image for phones */
    }

    .header {
        display: flex; /* Ensures alignment with flex properties */
        justify-content: center;
        text-align: center;
        margin-top: 70px;
        margin-bottom: 0;
    }
    
    .h1 {
        margin-bottom: 0;
    }

    .about-cards {
        margin-top: 0;
        margin-bottom: 20px;
    }
    
    .about-section {
        padding-top: 0;
    }

    .about-us-container {
        min-height: auto; /* Allows flexible height on smaller screens */
    }

    .about-cards {
        margin-top: 0;
        margin-bottom: 20px; /* Adjust margin to avoid excess space */
    }
    
    .about-us-container {
        min-height: auto; /* Flexible height on smaller screens */
    }

    .about-us {
        padding: 15px;
    }

    .about-us {
        padding: 15px;
    }

    .contact-footer {
        padding: 30px; /* Increase padding for a larger footer */
        height: auto;   /* Increase the height for mobile screens */
    }

    .footer-content h2 {
        font-size: 1.5em; /* Adjust heading size */
    }

    .footer-content p {
        font-size: 1em; /* Adjust paragraph size */
    }

    /* Adjust logo size and spacing on mobile */
    .footer-logo-img {
        width: 220px; /* Make the logo smaller on mobile */
    }

    /* Adjust SVG image size on mobile */
    .footer-img-1{
        width: 150px; /* Adjust image size */
    }
    .footer-img-2{
        width: 250px; /* Adjust image size */
    }
    .footer-img-3 {
        width: 250px; /* Adjust image size */
    }

    /* Center and stack the images vertically on mobile */
    .footer-images {
        flex-direction: column; /* Stack images vertically */
        gap: 20px; /* Reduce gap for smaller screens */
    }

    /* Ensure each image is centered */
    .footer-img-1,
    .footer-img-2,
    .footer-img-3 {
        align-self: center; /* Center each image */
    }
}