@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f3f3f3;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Restructured main content to allow the footer to sit at the bottom naturally */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 130px 5% 60px; /* Shifted padding here instead of body */
    width: 100%;
    box-sizing: border-box;
}

/* Contact Section */
.contact-section {
    background-color: transparent;
    width: 100%;
    max-width: 1200px; /* Stop it from stretching infinitely on wide monitors */
}

.contact-section h1 {
    font-size: 3.5em;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0;
}

.contact-section p {
    color: #555;
    font-size: 1.1em;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 80px;
}

/* Contact Container */
.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

/* Contact Card */
.contact-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    width: 250px;
    transition: 0.3s ease-in-out;
    text-align: left;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card img {
    filter: hue-rotate(150deg);
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
    border-radius: 10px;
}

.contact-card h2 {
    font-size: 1.2em;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-card p {
    text-align: left;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.contact-card i {
    font-size: 2em;
    color: #777;
    margin-bottom: 15px;
}

/* Responsive Fixes for smaller screens */
@media (max-width: 768px) {
    .contact-section h1 {
        font-size: 2.5em;
    }
    
    .contact-section p {
        margin-bottom: 40px;
        padding: 0 10px;
    }
    
    .contact-card {
        width: 100%; /* Stretch cards on small phones */
        max-width: 320px;
    }
}