@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');


* {
    margin :0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', 'sans-serif';

}

:root {
    /* --bg-color: #081b29; */
    --bg-color: #ededed;
    /* --second-bg-color: #112e42; */
    --second-bg-color: #f9f8f8;
    --text-color: rgb(8, 27, 41);
    --main-color: green;
    /* --main-color: #00abf0; */
}

html{
    font-size: 62.5%;
    overflow-x: hidden;

}
body{
    background: var(--bg-color);
    color: var(--text-color);    
    overflow: auto;
}



.heading {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

span {
    color: var(--main-color);
}


.contact-section {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    background: linear-gradient(to right,#289530,  #16985e );
    color: white;
    border-radius: 10px;
    width: 100%; /* Make section fill the width completely */
    overflow: hidden;
    min-height: 300px; /* Ensure 500px height as requested */
    padding: 20px; /* Add some padding around the content */
    margin: 135px 0;  /* Remove extra margins */
}

.contact-info {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 20px;
    background: none;
    color: #333;
    width: 100%; /* Full width for contact info */
    margin-bottom: 20px; /* Add space between rows */
}

.info-box {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    background: var(--bg-color);
    flex: 1; /* Make each box take equal width */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

.info-box .icon {
    font-size: 20px;
    color: #e91e63;
    display: block;
    margin-bottom: 10px;
}

.info-box h3 {
    font-size: 16px;
    margin-bottom: 5px;
}



.contact-form {
    padding: 30px;
    width: 100%; 
    display: flex; /* Change to flex for side-by-side layout */
    justify-content: space-between; /* Space between the text and form */
    align-items: flex-start; /* Align items to the top */
    color: white;
    background: transparent; /* Optional: Add background to distinguish it from contact info */
    border-radius: 8px; /* Match the rounded style */
}

.contact-text {
    flex: 1; 
    margin-right: 0; /* Add space between text and form */
    text-align: center;
    padding: 3rem 20rem;
    margin-top: -2%;
}

.contact-form h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.contact-subtext {
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    opacity: 1;
    color: var(--bg-color);
}

.form {
    flex: 1; /* Allow the form section to take equal space */
}

.contact-form form {
    width: 40%; /* Ensure form takes full width of the form div */
    display: flex;
    flex-direction: column;
    margin-right: 4rem;
}

.contact-form input,
.contact-form textarea {
    background: none;
    border: none;
    border-bottom: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
    color: white;
    width: 100%;
    outline: none;
}

.contact-form button {
    background: white;
    color: var(--main-color);
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.contact-form button:hover {
    background-color: transparent;
    border:1px solid var(--bg-color);
    color: var(--bg-color);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.social-icons a {
    color: var(--bg-color);
    font-size: 25px;
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .contact-info {
        flex-direction: column; /* Stack info boxes vertically */
        align-items: center; /* Center align */
    }

    .contact-form {
        flex-direction: column; /* Stack text and form vertically */
        align-items: center; /* Center align */
        padding: 20px; /* Adjust padding for mobile */
    }

    .contact-text {
        padding: 2rem 0; /* Adjust padding for mobile */
        margin-top: 0; /* Reset margin for mobile */
    }

    .contact-form form {
        width: 100%; /* Full width for form on mobile */
        margin-right: 0; /* Remove margin on mobile */
    }

    .contact-form h2 {
        font-size: 20px; /* Smaller font size for mobile */
    }

    .contact-subtext {
        font-size: 12px; /* Smaller font size for mobile */
    }

    .social-icons {
        flex-wrap: wrap; /* Allow icons to wrap on smaller screens */
    }

    .social-icons a {
        font-size: 20px; /* Smaller icon size on mobile */
    }
}

@media (max-width: 480px) {
    .contact-text {
        padding: 1rem; /* Further reduce padding for very small screens */
    }

    .contact-form h2 {
        font-size: 18px; /* Further reduce font size */
    }

    .contact-subtext {
        font-size: 11px; /* Further reduce font size */
    }

    .info-box h3 {
        font-size: 14px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%; /* Adjust base font size for smaller screens */
    }

    .contact {
        margin: 16% 0rem;
        padding: 3rem;
    }
    
    section {
        padding: 6rem 5% 2rem; /* Reduce section padding */
    }

    .heading {
        font-size: 3.5rem;
    }
    .footer {
        display: flex;
        flex-direction: column;
    }

    .footer-container {
        display: block;
        justify-content: space-between;
    }
    
    .footer-icontop a {
        padding: .5rem; /* Reduce padding */
    }

    .footer-icontop a i {
        font-size: 2rem; /* Smaller icon size */
    }
}