/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    color: white;
    text-align: center;
    transition: top 0.3s ease-in-out;
    z-index: 1000;
}

/* Main Container */
.main-container {
    position: relative;
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 89vh;
    /*    background-image: url(../asset/hero.png) ;*/
    background-color: #474B4F;
    background-repeat: no-repeat;
    flex-direction: row;
}


/* Hero Section */
.hero {
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 89vh;
    padding-top: 4%; /* Space at the top */
    background-image: url(../asset/heronew.png);
    background-size: cover; /* Cover the entire section */
    background-repeat: no-repeat; /* Prevent repeating */
    opacity: 0.7; /* Adjust opacity for overlay effect */
}

/* Overlay */
.overlay {
    position: absolute;
    justify-content: center;
    align-items: center;
    color: white;
    max-width: 90%; /* Limit width for smaller screens */
    opacity: 1; /* Full opacity for text */
    text-align: center; /* Center the text */
    padding: 20px; /* Padding for the overlay */
    z-index: 10; /* Ensure it stays above the video */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(50%, -50%); /* Adjust for centering */
}


.overlay h4 {
    padding: 10px;
    text-align: center;
}
.overlay h1 {
    font-size: 60px; /* Adjust as needed */
    text-align: center;
}



.overlay button {
    background-color: rgb(71, 83, 255);
    width: 200px;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.overlay button:hover {
    background-color: rgb(31, 28, 28);
    color: white;
}

.overlay button a {
    color: white;
    text-decoration: none;
}

/* Responsive Design for Hero and Overlay */

@media (max-width:2040px){
    .overlay{
        position: absolute;
        justify-content: center;
        align-items: center;
        color: white;
        max-width: 90%; /* Limit width for smaller screens */
        opacity: 1; /* Full opacity for text */
        text-align: center; /* Center the text */
        padding: 20px; /* Padding for the overlay */
        z-index: 10; /* Ensure it stays above the video */
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for centering */
    }
    .overlay h1 {
        font-size: 40px; /* Slightly smaller font size */
    }
    .overlay h4 {
        font-size: 15px; /* Slightly smaller font size */
    }
    
}

@media (max-width: 1024px) {
    .overlay{
        position: absolute;
        justify-content: center;
        align-items: center;
        color: white;
        max-width: 90%; /* Limit width for smaller screens */
        opacity: 1; /* Full opacity for text */
        text-align: center; /* Center the text */
        padding: 20px; /* Padding for the overlay */
        z-index: 10; /* Ensure it stays above the video */
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for centering */
    }
    .overlay h1 {
        font-size: 30px; /* Slightly smaller font size */
    }
    .overlay h4 {
        font-size: 15px; /* Slightly smaller font size */
    }
    .overlay p {
        font-size: 16px;
    }
    .overlay button {
        padding: 8px 15px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    
    .overlay{
        position: absolute;
        justify-content: center;
        align-items: center;
        color: white;
        max-width: 90%; /* Limit width for smaller screens */
        opacity: 1; /* Full opacity for text */
        text-align: center; /* Center the text */
        padding: 20px; /* Padding for the overlay */
        z-index: 10; /* Ensure it stays above the video */
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for centering */
    }
    .overlay h1 {
        font-size: 28px;
    }
    .overlay h4 {
        font-size: 12px; /* Slightly smaller font size */
    }
    .overlay p {
        font-size: 14px;
    }
    .overlay button {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .main-container .bg{
        display: none;
    }
    .overlay{
        position: absolute;
        justify-content: center;
        align-items: center;
        color: black;
        max-width: 90%; /* Limit width for smaller screens */
        opacity: 1; /* Full opacity for text */
        text-align: center; /* Center the text */
        padding: 20px; /* Padding for the overlay */
        z-index: 10; /* Ensure it stays above the video */
        top: 50%; /* Center vertically */
        left: 50%; /* Center horizontally */
        transform: translate(-50%, -50%); /* Adjust for centering */
    }
    .overlay h1 {
        font-size: 24px; /* Adjust as needed */
    }
    .overlay h4 {
        font-size: 12px;
    }
    .overlay p {
        font-size: 1rem;
    }
    .overlay button {
        padding: 10px 15px;
        font-size: 1rem;
        justify-content: center;
    }
}

/* Services */
.service {
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.service h4 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-items {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    flex: 0 0 48%; /* Adjusts width for responsiveness */
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.card-items a {
    text-decoration: none;
}

.card-items h4 {
    color: #007bff; /* Accent color for headings */
    margin-bottom: 10px;
}

.card-items h5 a {
    margin-bottom: 10px;
    text-decoration: underline;
    justify-items: end;
}

.card-items p {
    color: #666;
    line-height: 1.5;
}

.card-items:hover {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .card-items {
        flex: 0 0 100%; /* Stacks cards on smaller screens */
    }
    .cards {
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
    }
    .card-item {
        flex: 0 0 100%; /* Full width on smaller screens */
    }
}

@media (max-width: 480px) {
    .cards {
        flex-direction: column;
        overflow-y: auto;
    }
}

/* Main Content Area */
.ycu {
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #808080;
    color: #050404;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 30px;
}

.content1 {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px; /* Increased padding for more breathing space */
    flex: 0 0 48%; /* Adjusts width for responsiveness */
    margin: 15px; /* Uniform margin for spacing */
    transition: box-shadow 0.3s;
    border-radius: 8px; /* Rounded corners for a softer look */
    text-align: justify;
    color: white;
}

.content1 h2 {
    font-size: 3rem;
    text-align: center;
    color: black;
}

/* Content Container */
.yuccontent {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px; /* Increased padding for more breathing space */
    flex: 0 0 48%; /* Adjusts width for responsiveness */
    margin: 15px; /* Uniform margin for spacing */
    transition: box-shadow 0.3s;
    border-radius: 8px; /* Rounded corners for a softer look */
    text-align: center;
}

.ycucard {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 15px; /* Vertical padding only */
    margin: 10px 25px; /* Centered margin */
    color: white;
}

.yuccontent img {
    width: 155px; /* Set a fixed width */
    height: 150px; /* Set a fixed height for uniformity */
    object-fit: cover; /* Use cover to fill the area without distortion */
    border-radius: 50%; /* Maintain the circular shape */
    margin: 10px; /* Add margin around images for spacing */
}

@media(max-width:900px){
    .ycucard {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 15px; /* Vertical padding only */
        margin: 10px 25px; /* Centered margin */
    }
}

@media(max-width:768px){
    .ycu{
        display: flex;
        flex-direction: column;
    }
}

@media(max-width:480px){
    .yuccontent{
        text-align: left;
    }

    .content1{
        justify-content: space-evenly;
    }
}

.exploreservice{
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #808080;
    color: black;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.fcard{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 20px; /* Increased padding for more breathing space */
    flex: 0 0 48%; /* Adjusts width for responsiveness */
    margin:  15px; /* Uniform margin for spacing */
    transition: box-shadow 0.3s;
    border-radius: 8px; /* Rounded corners for a softer look */
    text-align: center;

}

.escards{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-content: center;
}

.escards-items{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    padding: 20px; /* Increased padding for more breathing space */
    flex: 0 0 48%; /* Adjusts width for responsiveness */
    margin: 15px; /* Uniform margin for spacing */
    transition: box-shadow 0.3s;
    border-radius: 8px; /* Rounded corners for a softer look */
    text-align: center;
}

.escards-items h3 a{
    color: white;
    padding: 0;
    margin-top: 10%;
    text-decoration: none;
    text-align: center;
}
.escards-items img{
    width: 50%;
    border-radius: 700px 700px;
    aspect-ratio: 1/1;
    padding: 5px;
    top: 10px;
    margin-bottom: 5px;
    justify-items: center;
}



@media (max-width:480px){
    .escards-items{
        flex-direction: column;
        text-align: center;
        padding: 5px;
    }
    .escards-items img{
        width: 50%;
        border-radius: 500px 500px;
        aspect-ratio: 1/1;
        padding: -50px;
        margin-bottom: 5px;
        justify-items: center;
    }


    
}

@media (max-width:720px){
    .escards-items{
        flex-direction: column;
        text-align: center;
        padding: 5px;
    }

    
}

.getintouch{
    max-width: 1300px;
    margin: 30px auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background-color: #808080;
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.getintouch button{
    background-color: rgb(255, 71, 132);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.getintouch button a{
    text-decoration: none;
    color: white;
}
.getintouch button:hover{
    background-color: blue;
}

@media (max-width:480px){
    .getintouch button{
        padding: 5px 10px;
        font-size: 1rem;
    }
}
/* Footer */
footer {
    color: #fff;
    padding: 20px;
    text-align: center;
}

