/* ============================================
   Modern Contact Section Styles
   ============================================ */

.modern-contact-section {
    position: relative;
    overflow: hidden;
}

/* Map Section */
.modern-contact-map {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.modern-contact-map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.modern-map-iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%) brightness(0.95);
    transition: filter 0.3s ease;
}

.modern-contact-map:hover .modern-map-iframe {
    filter: grayscale(0%) brightness(1);
}

.modern-contact-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.modern-contact-map-content {
    text-align: center;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.modern-contact-map-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.modern-contact-map-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Hero Banner (Fallback if no map) */
.modern-contact-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.1) 0%, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05) 100%);
}

.modern-contact-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-contact-hero-text {
    text-align: center;
    color: var(--heading-font-color, #1a1a1a);
}

.modern-contact-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.modern-contact-hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: var(--body-font-color, #666);
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Info Section */
.modern-contact-info {
    padding: 100px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.modern-contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(var(--primary-color-rgb, 0, 123, 255), 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.modern-contact-info .container {
    position: relative;
    z-index: 1;
}

.modern-contact-grid {
    margin-bottom: 80px;
}

/* Contact Cards */
.modern-contact-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
    overflow: hidden;
}

.modern-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #007bff) 0%, transparent 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.modern-contact-card:hover::before {
    transform: scaleX(1);
}

.modern-contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(var(--primary-color-rgb, 0, 123, 255), 0.2);
}

.modern-contact-card-icon {
    margin-bottom: 25px;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s ease;
}

.phone-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.email-icon {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.clock-icon {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.modern-contact-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.modern-contact-card:hover .phone-icon {
    background: rgba(52, 152, 219, 0.2);
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.3);
}

.modern-contact-card:hover .email-icon {
    background: rgba(46, 204, 113, 0.2);
    box-shadow: 0 5px 20px rgba(46, 204, 113, 0.3);
}

.modern-contact-card:hover .clock-icon {
    background: rgba(241, 196, 15, 0.2);
    box-shadow: 0 5px 20px rgba(241, 196, 15, 0.3);
}

.modern-contact-card-content {
    position: relative;
    z-index: 1;
}

.modern-contact-card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--heading-font-color, #1a1a1a);
    transition: color 0.3s ease;
}

.modern-contact-card:hover .modern-contact-card-title {
    color: var(--primary-color, #007bff);
}

.modern-contact-card-text {
    font-size: 18px;
    line-height: 1.6;
    color: var(--body-font-color, #666);
    margin-bottom: 10px;
}

.contact-link {
    color: var(--primary-color, #007bff);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    color: var(--primary-color, #007bff);
    transform: translateX(5px);
}

.modern-contact-card-extra {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-link-small {
    display: block;
    font-size: 14px;
    color: var(--body-font-color, #666);
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.contact-link-small:hover {
    color: var(--primary-color, #007bff);
}

.modern-contact-card-text-small {
    font-size: 14px;
    color: var(--body-font-color, #666);
    margin-top: 5px;
    opacity: 0.8;
}

.modern-contact-card-decoration {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.modern-contact-card:hover .modern-contact-card-decoration {
    opacity: 1;
}

/* Call to Action */
.modern-contact-cta {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb, 0, 123, 255), 0.05) 0%, transparent 100%);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.modern-contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb, 0, 123, 255), 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.modern-contact-cta > .row {
    position: relative;
    z-index: 1;
}

.modern-contact-cta-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--heading-font-color, #1a1a1a);
}

.modern-contact-cta-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--body-font-color, #666);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modern-contact-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.btn-modern-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern-contact:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--primary-color, #007bff);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 123, 255, 0.4);
}

.btn-call {
    background: #ffffff;
    color: var(--primary-color, #007bff);
    border: 2px solid var(--primary-color, #007bff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-call:hover {
    background: var(--primary-color, #007bff);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 123, 255, 0.3);
}

.btn-modern-contact:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.btn-modern-contact:hover .btn-icon {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .modern-contact-map {
        height: 400px;
    }

    .modern-contact-hero {
        height: 300px;
    }

    .modern-contact-info {
        padding: 80px 0;
    }

    .modern-contact-grid {
        margin-bottom: 60px;
    }

    .modern-contact-card {
        padding: 35px 25px;
    }

    .modern-contact-cta {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .modern-contact-map {
        height: 350px;
    }

    .modern-contact-hero {
        height: 250px;
    }

    .modern-contact-info {
        padding: 60px 0;
    }

    .modern-contact-grid {
        margin-bottom: 50px;
    }

    .modern-contact-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper svg {
        width: 24px;
        height: 24px;
    }

    .modern-contact-card-title {
        font-size: 20px;
    }

    .modern-contact-card-text {
        font-size: 16px;
    }

    .modern-contact-cta {
        padding: 40px 20px;
    }

    .modern-contact-cta-title {
        margin-bottom: 15px;
    }

    .modern-contact-cta-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .modern-contact-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-modern-contact {
        width: 100%;
        justify-content: center;
        padding: 14px 30px;
    }
}

@media (max-width: 576px) {
    .modern-contact-map {
        height: 300px;
    }

    .modern-contact-hero {
        height: 200px;
    }

    .modern-contact-info {
        padding: 50px 0;
    }

    .modern-contact-card {
        padding: 25px 18px;
    }

    .icon-wrapper {
        width: 55px;
        height: 55px;
        margin-bottom: 20px;
    }

    .icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .modern-contact-card-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .modern-contact-card-text {
        font-size: 15px;
    }

    .modern-contact-cta {
        padding: 35px 15px;
        border-radius: 20px;
    }

    .modern-contact-cta-title {
        font-size: 1.5rem;
    }

    .modern-contact-cta-description {
        font-size: 15px;
    }

    .btn-modern-contact {
        padding: 12px 25px;
        font-size: 15px;
    }
}

/* RTL Support */
[dir="rtl"] .contact-link:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .btn-modern-contact:hover .btn-icon {
    transform: translateX(-5px);
}

[dir="rtl"] .modern-contact-card-decoration {
    right: auto;
    left: -50px;
}

/* Hide hero if no image */
.modern-contact-section:not(:has(.modern-contact-hero)) .modern-contact-info {
    padding-top: 100px;
}

