.contact {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensures space between top and bottom */
    height: 100vh;
    padding: 60px 0;
}

@media (min-width: 768px) {
    .contact {
        background-attachment: fixed;
    }
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
}

.contact-form {
    padding: 20px;
    border-radius: 10px;
    margin: auto auto 0;
    z-index: 3; /* Ensures it’s above the gradient */
    position: relative;
    flex: 1;
}

@media (max-width: 768px) {
    .contact-form {
        margin: 60px auto 0;
    }
}

.contact-form .form-group {
    margin-bottom: 15px;
}

.contact-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.contact-form .form-control:focus {
    outline: none;
}

.contact-form button[type="submit"] {
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-container, .skills-container {
    padding-left: 15px;
    padding-right: 15px;
}

.contact-container {
    text-align: center;
    margin-top: 100px; /* Adjusted for better mobile view */
    position: relative; /* Absolute positioning to place it at the bottom */
    bottom: 0; /* Position it at the bottom of the section */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for horizontal centering */
    padding: 10px; /* Add padding if needed */
    width: 100%; /* Adjust width as needed */
    z-index: 3;
}

@media (max-width: 768px) {
    .contact-container {
        margin-top: 30px; /* Adjusted margin for mobile view */
        margin-bottom: 10px; /* Adjusted margin for mobile view */
    }
}

.contact h1 {
    text-align: left;
    margin-bottom: 100px;
    position: relative;
    z-index: 3;
}

@media (max-width: 1000px) {
    .contact h1 {
        margin-bottom: 40px;
    }
}


.contact-icons {
    margin: 0 20px;
}

.email-icon {
    margin-left: 15px;
}

.contact-container a {
    display: inline-block;
    margin: 0 10px;
}

.contact p {
    padding: 8px;
}

.container-fluid {
    padding: 0 15px; /* Match Bootstrap padding */
}

.message {
    margin-top: 10px;
    font-size: 16px;
}

