body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    color: black;
    justify-content: center;
    /* Centers the content horizontally */
    align-items: center;
    /* Centers the content vertically */

}
.services-section-2{
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;

}
.card-container{
    display: flex;
    align-items: center;
    justify-content: center;
    justify-items: center;
    gap: 20px;
    overflow: hidden;
    width: 100vw;
    margin-bottom: 20px;
}
.card {
    cursor: pointer;
    padding: 20px;
    height: auto;
    width: 300px;
    background-color: #ffffff;
    display: flex;
    justify-content: start;
    align-items: start;
    color: maroon;
    font-size: 24px;
    border-radius: 10px;
    border-radius: 10px;
    border: .5px solid rgb(255, 136, 0); /* Green border */
    animation: slideIn 3s ease-out;
    /* animation: slide 5s infinite; */
}
.card h3{
    font-size: 18px;
    font-weight: 700;
    color: rgb(255, 136, 0);
}
.card p{
    font-size: 1rem;
    font-weight: normal;
}
hr{
    width: 100px;
    border: 1px solid rgb(255, 136, 0); /* Green border */
}
.card h3 i{
    color: green;
    size: 25px;
    margin-right: 10px;
}
/* Logo and Company Name */
.logo-and-name {
    display: flex;
    align-items: center;
    flex-direction: row;
}
.header-top {
    position: sticky; /* Stick the element */
    top: 0; /* Stick it to the top */
    background-color: #fff; /* Background color of the navbar */
    z-index: 1000; /* Ensures the navbar stays on top of other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visibility */
    padding: 10px 20px; /* Add padding for spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 2px solid maroon;
    animation: fadeIn 1s ease-in;
}
.header-top img {
    max-height: 50px;
    margin-right: 10px;
    max-width: 50px;
    /* Adjust width as needed */
    height: auto;
    /* Maintain aspect ratio */
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 2px solid maroon;
    animation: fadeIn 1s ease-in;
}
.header-top img {
    max-height: 50px;
    margin-right: 10px;
    max-width: 50px;
    /* Adjust width as needed */
    height: auto;
    /* Maintain aspect ratio */
}
.company-name {
    font-size: 1.2em;
    font-weight: bold;
    color: maroon;
}
/* Navigation Links */
.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 500;
    font-size: 0.9em;
}
.nav-links a {
    text-decoration: none;
    color: maroon;
    font-weight: 500;
    font-size: 1.1em;
    position: relative;
    /* Required for the pseudo-element */
}
/* Toggle Button for Mobile Displays */
.nav-toggle {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
}
/* Navigation Menu for Mobile Displays */
.nav-menu {
    display: none;
    flex-direction: column;
    background-color: #fff;
    border-top: 2px solid maroon;
}
.nav-container {
    position: sticky; /* Stick the element */
    top: 0; /* Stick it to the top */
    background-color: #fff; /* Background color of the navbar */
    z-index: 1000; /* Ensures the navbar stays on top of other content */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visibility */
    padding: 10px 20px; /* Add padding for spacing */
}

.nav-menu ul {
    list-style-type: none;
    margin: 0;
    padding: 10px 0;
}

.nav-menu ul li {
    padding: 10px;
}

.nav-menu ul li a {
    text-decoration: none;
    color: maroon;
    font-size: 1.2em;
}

/* Add underline on hover */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    /* Position the underline just below the text */
    width: 0;
    height: 3px;
    /* Thickness of the underline */
    background-color: rgb(207, 142, 0);
    transition: width 0.3s ease-in-out;
    /* Smooth transition effect */
}

.nav-links a:hover::after {
    width: 100%;
    /* Full width on hover */
}


/* Header styling */
.about-header {
    background-image: url('../img/bgover.webp');
    /* Path to your background image */
    background-size: cover;
    /* Cover the entire header area */
    background-position: center;
    /* Center the image */
    background-repeat: no-repeat;
    /* Prevent image repeat */
    position: relative;
    /* Position relative for overlay */
    color: white;
    /* White text color */
    text-align: center;
    padding: 20px;
    margin: 0;
    height: 300px;
    /* Adjust height as needed */
}

/* Overlay styling */
.about-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent black overlay */
    z-index: 1;
    /* Make sure the overlay is above the background image but below the text */
}

.about-header h1 {
    display: flex;
    justify-self: center;
    justify-content: center;
    padding-top: 80px;
    position: relative;
    /* Position relative to ensure it's above the overlay */
    margin: 0;
    font-size: 2.5em;
    /* Larger font size */
    font-weight: bold;
    z-index: 2;
    /* Ensure text is above the overlay */
}


/* About Us Container */
.about-us-container {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    background-color: #f9f9f9;
}


/* footer */
.box-container-footer {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    /* Allow wrapping of items */
    justify-content: center;
    /* Center items horizontally */
    gap: 20px;
    /* Space between items */
    padding: 20px;
    background: rgb(88, 15, 15);
}

.boxinner-footer {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    align-items: flex-start;
    /* Align items to the left */
    width: 100%;
}

.box-footer {
    /* background-color: #fff; */
    padding: 15px;
    /* border: 1px solid #ddd; */
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    /* Set a max-width for each item */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    /* Include padding and border in width */
}

.boxinner-footer i {
    font-size: 2em;
    color: white;
    margin-bottom: 10px;
}

.boxinner-footer p {
    margin: 5px 0;
    color: white;
    text-align: start;
}

.boxinner-footer a {
    color: white;
    text-decoration: none;
}

.boxinner-footer a:hover {
    text-decoration: underline;
}

.boxinner-footer i {
    font-size: .9em;
    /* Adjust size as needed */
}

.header-1 {
    color: rgb(88, 15, 15);
    ;
    font-weight: bold;
    font-size: .9em;
    text-align: center;
    margin-bottom: 20px;
}

.header-1 span {
    color: rgb(88, 15, 15);
    ;
    font-weight: 700;
    font-size: 1.1em;
}


/* Services section */

.services-section{
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    height: 40vh;
    width: 100%;
    vertical-align: middle;
    background-image: url('../img/bgover.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100% 100%;
}
.services-section-h1 {
    font-size: 40px;
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
  }
  .services-section-2{
    display: flex;
    justify-content: center;
    justify-items: center;
    align-items: center;
    flex-direction: column;
    height: 80vh;
    width: 100%;
    vertical-align: middle;
    background-color: white;
  }

/* on click card*/
/* Dialog Styles */
.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.dialog-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}
/* on click card */

/* Responsive styling for smaller screens */
@media screen and (max-width: 768px) {

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        /* Hidden by default, shown when toggled */
    }

    .nav-menu.active {
        display: flex;
    }


    /* Card for carousel */
    .card-container {
        flex-direction: column;

    }

    .about-card {
        margin-right: 0;
        margin-bottom: 20px;
    }


    .card-container,
    .box-container-footer {
        flex-direction: column;
        align-items: center;
    }

    /* Optional: Add padding or margin adjustments for better spacing */
    
    .image-card,
    .box-footer {
        margin-bottom: 20px;
        width: 90%;
        /* Adjust width to make sure it takes full space */
        text-align: center;
        /* Center the content */
    }

    .nav-links {
        display: none;
        /* Optional: Hide navigation links on small screens */
    }

    .nav-menu.active {
        display: flex;
        flex-direction: column;
    }

    /* card animation */
    .services-section-2{
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        background-color: #ffffff;
        padding-top: 20px;
        padding-bottom: 20px;
    
    }
    .card-container{
        display: flex;
        align-items: center;
        justify-content: center;
        justify-items: center;
        gap: 20px;
        overflow: hidden;
        width: 100vw;
    }
    .card {
        padding: 20px;
        height: auto;
        width: 100vw;
        background-color: #ffffff;
        display: flex;
        justify-content: center;
        align-items: center;
        color: maroon;
        font-size: 22px;
        border-radius: 10px;
        border-radius: 10px;
        border: .5px solid rgb(255, 136, 0); /* Green border */
        animation: slide 3s ease-in-out;
        
        /* animation: slide 5s infinite; */
    }
    
    .card h3{
        font-size: 16px;
        font-weight: 700;
        color: rgb(255, 136, 0);
    }

    .services-section-3{
        box-sizing: border-box;
        display: flex;
        justify-content: center;
        align-items: center;
        height: auto;
        background-color: transparent;
        padding-top: 20px;
        padding-bottom: 20px;
    
    }
}


/* animation */
@keyframes slide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }

}


