/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set up sticky footer using flexbox */
html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures minimum height is full viewport height */
}

main {
    flex: 1 0 auto; /* Allows main content to grow but not shrink */
    padding: 30px 0; /* Add some padding to prevent content touching edges */
}

/* Header Styles */
header {
    background-color: #333;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header .logo img {
    max-height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 15px; /* Modern way to add spacing between items */
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #007BFF;
    text-decoration: none;
}

/* Contact Section Styles */
.contact-section {
    width: min(80%, 900px); /* Modern way to set responsive max-width */
    margin: 0 auto; /* Center the section */
    background-color: white;
    padding: clamp(20px, 4vw, 30px); /* Responsive padding */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(24px, 4vw, 32px); /* Responsive font size */
}

.contact-section .form-group {
    margin-bottom: 20px;
}

.contact-section .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-section .form-group input,
.contact-section .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-section .form-group input:focus,
.contact-section .form-group textarea:focus {
    outline: none;
    border-color: #007BFF;
}

.contact-section .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-section .submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-section .submit-btn:hover {
    background-color: #0056b3;
}

/* Social Media Icons */
.social-media {
    text-align: center;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-media a {
    font-size: 28px;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-media a:hover {
    color: #007BFF;
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    flex-shrink: 0; /* Prevents footer from shrinking */
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

footer .footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .footer-links a:hover {
    color: #007BFF;
}

/* Media Queries for Mobile View */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
        margin-top: 15px;
    }

    header .logo {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .contact-section .submit-btn {
        font-size: 16px;
    }

    .social-media a {
        font-size: 24px;
    }
}