/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: whitesmoke;
    color: #334155;
    line-height: 1.6;
}

/* Contact container */
.contact-container {
    max-width: 1200px;
    width: 100%;
    margin: 20px auto;
    padding: 20px;
}

/* Header styles */
.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.contact-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 200px;
    height: 4px;
    background: #3e6c8c;
    border-radius: 2px;
}

.contact-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 25px auto 0;
}

/* Horizontal layout */
.horizontal-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: stretch;
}

.contact-info {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    min-width: 300px;
}

.social-media {
    flex: 1;
    min-width: 250px;
    background: #f0f0f1;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Info cards */
.info-card {
    background: #f0f0f1;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3e6c8c 30%, #b75b47 70%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.info-card:hover .icon {
    transform: scale(1.1);
}

.info-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.info-card p {
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Social media */
.social-media h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 25px;
}

.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3e6c8c 30%, #b75b47 70%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 auto;
}

.social-link img.icon {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

.social-note {
    margin-top: 15px;
}

.social-note p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .horizontal-layout {
        flex-direction: column;
    }
    
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 768px */
@media (max-width: 768px) {
    .contact-container {
        margin: 15px auto;
        padding: 15px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-header p {
        font-size: 1.1rem;
    }

    /* Keep horizontal layout side by side */
    .horizontal-layout {
        flex-direction: row; /* side by side */
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Contact info: 2 cards per row */
    .contact-info {
        flex: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row */
        gap: 15px;
        min-width: 300px;
    }

    /* Social media section */
    .social-media {
        flex: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
    }

    /* Social icons align left and right */
    .social-icons {
        display: flex;
        justify-content: space-between; /* left & right spacing */
        gap: 0;
        margin-bottom: 20px;
    }

    .social-link {
        margin: 0; /* remove auto centering */
    }
}


@media (max-width: 576px) {

    .contact-container {
        padding: 15px 10px;
    }

    .info-card {
        padding: 15px 12px; 
    }

    .contact-info {
        grid-template-columns: 1fr; 
        gap: 12px;
    }

    .social-media {
        padding: 20px 15px;
        margin-top: 20px; 
    }

    .social-icons {
        display: flex;
        justify-content: space-around; 
        gap: 10px; 
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .contact-header h1 {
        font-size: 1.6rem; 
    }

    .contact-header p {
        font-size: 0.95rem;
        margin-top: 10px;
    }
}

.hero-section.contact {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-contact-bg.jpg');
}
