/* Contact Section Styles */
.contact-section {
    padding: 2.5rem 0 3rem;
    background: #f8f9ff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h2 {
    font-size: 1.8rem;
    color: #0a2540;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.contact-header h2:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: #497EE6;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.contact-header p {
    font-size: 1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem auto 0;
    max-width: 1200px;
    padding: 0 1rem;
    width: 100%;
    align-items: stretch;
}

.contact-row {
    display: flex;
    gap: 2rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* First row - 2 cards */
.contact-row:first-child .contact-card {
    flex: 1;
    min-width: 300px;
    max-width: calc(50% - 1rem);
}

/* Second row - 3 cards */
.contact-row:last-child .contact-card {
    flex: 1;
    min-width: 200px;
    max-width: calc(33.333% - 1.34rem);
}

.contact-card {
    background: white;
    border-radius: 8px;
    padding: 1rem 0.8rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    border: 1px solid #eef0f5;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    min-height: 180px;
    height: 100%;
    width: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #497EE6;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-card:hover:before {
    height: 8px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    position: relative;
    z-index: 1;
    color: white;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);
}

.contact-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0.2;
    z-index: -1;
    transition: all 0.3s ease;
}

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

.contact-card:hover .contact-icon:after {
    transform: scale(1.5);
    opacity: 0.1;
}

.contact-card h3 {
    font-size: 1.1rem;
    color: #0a2540;
    margin: 0.2rem 0 0.5rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-info {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0.5rem 0 0.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    min-height: 50px;
}

.contact-info a {
    color: #497EE6;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #3a6ed5;
    text-decoration: underline;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: #497EE6;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid #497EE6;
    margin-top: auto;
    width: 100%;
    max-width: 140px;
    box-sizing: border-box;
    white-space: nowrap;
    font-size: 0.85rem;
}

.contact-button:hover {
    background: transparent;
    color: #497EE6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(73, 126, 230, 0.3);
}

/* Card specific styles */
.contact-card.call .contact-icon {
    background: linear-gradient(135deg, #497EE6, #3a6ed5);
}

.contact-card.whatsapp .contact-icon {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.contact-card.email .contact-icon {
    background: linear-gradient(135deg, #EA4335, #D14836);
}

.contact-card.instagram .contact-icon {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.contact-card.address .contact-icon {
    background: linear-gradient(135deg, #8E54E9, #4776E6);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .contact-row:first-child .contact-card,
    .contact-row:last-child .contact-card {
        max-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .contact-row:first-child .contact-card,
    .contact-row:last-child .contact-card {
        max-width: 100%;
        width: 100%;
        min-width: 100%;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .contact-card {
        min-height: 220px;
        padding: 1.5rem 1.2rem;
    }
    
    .contact-grid {
        max-width: 500px;
        margin: 1.5rem auto 0;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.2s; }
.contact-card:nth-child(3) { animation-delay: 0.3s; }
.contact-card:nth-child(4) { animation-delay: 0.4s; }
.contact-card:nth-child(5) { animation-delay: 0.5s; }

/* Simple top border */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #497EE6;
    transition: all 0.3s ease;
}

.contact-card:hover::before {
    height: 5px;
}
