/* Reset & Global Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    color: #333;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    padding: 15px 0;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li {
    margin: 5px 15px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #f39c12;
}

/* Contact Section */
main.contact-container {
    flex: 1;
    text-align: center;
    padding: 40px 20px;
    margin-top: 7vh;
}

.contact-container h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: #0d0f11;
    margin-bottom: 10px;
}

.contact-container .intro {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: rgb(199, 155, 155);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.contact-card {
    background: rgb(245, 207, 207);
    padding: 35px 40px;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    flex: 1 1 350px;
    max-width: 420px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin-top: 2vh;

    /* Centering content */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #fefefe, #fff4e6);
}

.contact-card h3 {
    color: #f39c12;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 15px;
}

.contact-card p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #333;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    .contact-card {
        max-width: 380px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px; /* reduced gap */
    }
    .contact-card {
        max-width: 95%;
        width: 95%;
        padding: 20px 15px;
        min-height: 120px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-details {
        gap: 10px; /* even smaller gap */
    }
    .contact-card {
        padding: 15px 10px;
        min-height: 100px;
        width: 100%;
    }
}