/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
    border: 2px solid #f5f5f5;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f6f2f2;
    overflow-x: hidden;
}

/* Header Image */
.header-image {
    width: 100%;
    height: 115px;
    background: radial-gradient(circle, #6f00debe, #6f00dea1);
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 250%;
    object-fit: cover;
    object-position: center top;
    display: block;
    margin-top: -60px;
}

.overlay-text {
    position: absolute;
    top: 7%;
    left: 15%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    text-align: left;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

/* Contact Us Section */
.contact-section {
    width: 100%;
    padding: 10%;
    background-color: #fff;
    height: 30%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
}

.contact-content {
    max-width: 500px;
    width: 100%;
    height: auto;
    padding: 0px 10px;
    margin-top: -10%;
    box-sizing: border-box;
}

.contact-form {
    display: flex;
    width: 140%;
    flex-direction: column;
}

.contact-form p {
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: #4d4b4b;
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-group label {
    min-width: 120px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    flex: 1;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-form textarea {
    height: 90px;
}

.contact-form button.btn-submit {
    width: 35%;
    padding: 10px;
    background-color: #6f00de;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 120px;
}

.contact-form button.btn-submit:hover {
    background-color: #5e04b8;
}

/* Company Info */
.company-info {
    margin-left: 400px;
    display: block;
    margin-top: -250px;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #333;
    color: #fff;
    padding: 20px;
    width: 100%;
    height: 300px;
    box-sizing: border-box;
    font-size: 1.5rem;
    position: relative;
    white-space: nowrap;
}

/* Useful Links Section */
.useful-links {
    text-align: center;
    margin-left: 60px;
    margin-bottom: 65px;
}

.useful-links h3 {
    margin-bottom: 10px;
}

.useful-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 11px;
}

.useful-links li {
    margin-bottom: 5px;
}

.useful-links a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.useful-links a:hover {
    text-decoration: underline;
}

/* About Us Section */
.about-us {
    text-align: center;
    margin-bottom: 100px;
}

.about-us h3 {
    margin-bottom: 10px;
}

.about-us p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 16px;
    text-wrap: wrap ;
}

/* Copyright Section */
.copyright-section {
    position: absolute;
    bottom: 10px;
    left: 95px;
    text-align: left;
    font-size: 16px;
    width: auto;
}

/* Connect with Us Section */
.connect-with-us {
    text-align: center;
    margin-bottom: 80px;
    margin-right: 20px;
}

.connect-with-us h3 {
    margin-bottom: 10px;
}

.connect-with-us p {
    margin: 5px 0;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
}

.connect-with-us p i {
    margin-right: 8px;
}

.social-media {
    margin-top: 10px;
}

.social-media a {
    color: #fff;
    margin-right: 10px;
    font-size: 1.4rem;
    text-decoration: none;
}

.social-media a:hover {
    color: #ddd;
}

/* Media Queries */
/* Mobile Styles for 480px and below */
@media (max-width: 510px) and (min-width: 320px) {
    html, body {
        overflow-x: hidden;
        background-color: white;
    }

    .header-image {
        height: 80px; /* Reduce header height */
    }

    .header-image img {
        margin-top: -20px; /* Adjust image position */
    }

    .overlay-text {
        font-size: 1rem; /* Further reduce font size */
        left: 27%; /* Adjust positioning */
    }

    .contact-section {
        display: flex;
        width: 100%;
        padding: 30px; /* Reduce padding */
        flex-direction: column; /* Stack content vertically */
        align-items: center; /* Center content */
        margin-right: 5%;
    }

    .contact-content {
        padding: 0 5px; /* Reduce padding */
        max-width: 100%; /* Full width on smaller screens */
    }

    .contact-form button.btn-submit {
        width: 50%; /* Make button wider */
        margin-left: 143px; /* Center submit button */
    }
    
    button.btn-submit{
        margin-right: 7%;
    }
    
    .contact-form {
        display: flex;
        width: 100%;
        flex-direction: column;
    }
    
    .company-info{
        display: none;
    }
    
        input{
        width: 100%;
    }

    /* Adjusting the footer layout */
    .footer {
        display: flex;
        flex-direction: column;
        padding: 25px; /* Further reduced padding */
        height: auto; /* Auto height for smaller screens */
    }
    
    .useful-links {
        text-align: center; /* Center useful links */
        margin: 0; /* Reset margin */
        width: 100%; /* Full width */
        padding: 0 10px; /* Add left and right padding */
        margin-bottom: 20px; /* Add margin below */
    }
    .useful-links h3{
        font-size: 1.2rem;
    }

    .useful-links li {
        font-size: 10px; /* Further reduce list item size */
    }

    .about-us {
        display: flex; /* Use flexbox for alignment */
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        width: 100%; /* Full width */
        padding: 0 5px; /* Add some padding for spacing */
        box-sizing: border-box; /* Include padding in width calculation */
        margin-bottom: 20px; /* Reduce the gap to 20px */
    }
    
    .about-us p {
        max-width: 95%; /* Limit width to 95% of the container */
        margin: 0 auto; /* Center the paragraph */
        font-size: 12px; /* Further reduce font size for mobile */
        line-height: 1.4; /* Adjust line height for better readability */
        text-align: center; /* Center the text */
        text-wrap:wrap ;
    }
    
    .about-us h3,   
    .connect-with-us h3 {
        font-size: 1.2rem; /* Reduce heading size */
        text-align: center; /* Center headings */
    }
    
    .copyright-section {
        text-align: center; /* Center the copyright text */
        font-size: 12px; /* Adjust font size */
        margin-left: -80px;
    }

    .connect-with-us {
        text-align: center; /* Center connect with us section */
    }

    .social-media {
        display: flex; /* Display social media links in a row */
        justify-content: center; /* Center social media links */
        margin-top: 10px; /* Add space above */
    }

    .social-media a {
        font-size: 1.2rem; /* Further reduce icon size */
    }
}
