

.contact-section {
    padding: 20px 15px;
    height: calc(100vh - 110px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.contact-section .container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-section .section-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 700;
    margin-top: 0px;
    margin-bottom: clamp(30px, 5vh, 50px);
    color: #ffffff;
    line-height: 1.2;
}

.contact-cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(15px, 4vw, 60px);
    align-items: flex-start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 16px;
    overflow-x: auto;
    scrollbar-width: none; 
}

.contact-cards-container::-webkit-scrollbar {
    display: none; 
}

.contact-card {
    width: 23vw;
    min-width: 250px;
    max-width: 303px;
    position: relative;
    transition: transform 0.3s ease;
    background: transparent;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 24px;
    filter: drop-shadow(0px 0px 16px rgba(0, 0, 0, 0.25));
}
    
.contact-card:hover {
    transform: translateY(-10px);
}

.contact-card-svg-container {
    width: 100%;
    height: auto;
    position: relative;
}

.contact-card-mobile-content {
    display: none;
}

.contact-card-svg {
    width: 100%;
    height: auto;
    display: block;
}

.contact-svg-img {
    transition: transform 0.3s cubic-bezier(.4,2,.3,1);
    object-fit: cover;
    width: 100%;
    height: 190px;
    min-height: 190px;
    max-height: 190px;
    display: block;
    
}

.contact-card:hover .contact-svg-img {
    transform: scale(1.02);
}

.contact-svg-bg-path {
    transition: fill 0.3s ease;
}

.contact-card:hover .contact-svg-bg-path {
    fill: #fdfdfd;
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00062F;
    padding: 0 10px;
    margin: 0;
    word-break: break-word;
    text-align: center;
}

.contact-card:hover .contact-card-title {
    color: white;
}

.contact-card:hover .contact-svg-bg-path {
    fill: url(#contact-card-hover-gradient);
}
.contact-svg-foreign-object {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.contact-buttons {
    position: absolute;
    right: 20px;
    bottom: 0px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.contact-btn {
    width: 60px; 
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #FFFFFF;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.contact-btn.email {
    background-color: #004DFF;
}
.contact-btn.email:hover {
    background-color: #003cb3;
}

.contact-btn.whatsapp {
    background-color: #25D366;
}
.contact-btn.whatsapp:hover {
    background-color: #1da851;
}

/* Responsive Design */

@media (max-width: 1024px) and (min-width: 767px) {
    .contact-cards-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 32px 32px;
        padding: 0 10px;
        max-width: 700px;
        margin: 0 auto;
    }
    .contact-card {
        flex: 0 1 calc(48% - 32px);
        max-width: calc(48% - 32px);
        min-width: 260px;
        margin: 0;
    }
    .contact-section .section-title {
        font-size: 36px;
    }
}



@media (max-width: 700px) {
    .contact-section {
        min-height: auto;
        height: auto;
        padding: 20px 8px 120px 8px;
        justify-content: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .contact-cards-container {
        flex-direction: column;
        align-items: center;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 0;
        gap: 25px;
        max-width: 100%;
        width: 100%;
        overflow: visible;
    }

    .contact-cards-container::-webkit-scrollbar {
        display: none;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .contact-card {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
        flex-shrink: 0;
        scroll-snap-align: none;
        background: white;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        position: relative;
        padding: 0;
    }
    
    .contact-card-svg-container {
        display: none;
    }
    
    .contact-card-mobile-content {
        display: block;
    }
    
    .contact-card-mobile-image {
        width: 100%;
        height: 160px;
        object-fit: cover;
        border-radius: 20px 20px 0 0;
    }
    
    .contact-card-mobile-title {
        padding: 15px;
        text-align: center;
        background: white;
        border-bottom: 1px solid #eee;
    }
    
    .contact-card-mobile-title h3 {
        font-size: 18px;
        font-weight: 700;
        color: #2346c7;
        margin: 0;
    }
    
    .contact-card-mobile-buttons {
        display: flex;
        width: 100%;
    }
    
    .contact-card-mobile-btn {
        flex: 1;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        color: white;
        font-size: 18px;
        font-weight: 700;
        border: none;
    }
    
    .contact-card-mobile-btn.email {
        background: #004DFF;
        border-radius: 0 0 0 20px;
    }
    
    .contact-card-mobile-btn.whatsapp {
        background: #25D366;
        border-radius: 0 0 20px 0;
        border-left: 1px solid rgba(255,255,255,0.2);
    }
    
    .contact-card-mobile-btn i {
        font-size: 20px;
    }
    
    /* Hide desktop buttons */
    .contact-buttons {
        display: none;
    }
}

@media (max-width: 1400px) {
    .contact-cards-container {
        gap: 40px; 
    }
}
@media (max-width: 950px) and (max-height: 450px) {
    html, body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }
    .contact-section {
        height: auto !important;
        min-height: 100px !important;
        padding-bottom: 40px !important;
        overflow-y: auto !important;
    }
    .contact-section .container {
        height: auto !important;
        min-height: 100px !important;
        overflow-y: auto !important;
    }
    .contact-cards-container {
        max-height: none !important;
        overflow-y: visible !important;
    }
}