/* Creative Animated Design for Contact Section */

/* Container Setup */
.creative-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 20px 0;
    perspective: 1000px;
    /* For 3D effects */
}

/* Card Design */
.creative-info-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(101, 49, 190, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1.5px solid #ede7f6;
    z-index: 1;
}

/* Hover Lift Effect */
.creative-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(101, 49, 190, 0.18);
    border-color: rgba(101, 49, 190, 0.4);
}

/* Icon Container with Pulse Animation */
.creative-icon-box {
    width: 90px;
    height: 90px;
    margin: 0 auto 22px;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
    border: 1px solid rgba(101, 49, 190, 0.15);
}

.creative-icon-box i {
    font-size: 3.2rem !important;
    background: linear-gradient(135deg, rgb(101 49 190), rgb(55 15 117));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

/* Animated Rings behind Icon */
.creative-icon-box::before,
.creative-icon-box::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(101, 49, 190, 0.25);
    opacity: 0;
    z-index: -1;
}

.creative-info-card:hover .creative-icon-box {
    transform: scale(1.08);
    background: #ffffff;
    box-shadow: 0 0 20px rgba(101, 49, 190, 0.2);
}

.creative-info-card:hover .creative-icon-box::before {
    animation: pulse-ring 2s infinite;
}

.creative-info-card:hover .creative-icon-box::after {
    animation: pulse-ring 2s infinite 0.5s;
}

/* Typography - Ultra-Clear & High Contrast */
.creative-info-card h4 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e1338;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.creative-info-card h4::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, rgb(101 49 190), rgb(55 15 117));
    margin: 8px auto 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.creative-info-card:hover h4::after {
    width: 55px;
}

.creative-info-card p {
    color: #2b2538 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.7 !important;
    margin-bottom: 0;
}

.creative-info-card p a {
    color: #6531be !important;
    font-weight: 700 !important;
    text-decoration: underline;
}

/* Dark Mode Integration */
body.dark-theme .creative-info-card,
[data-theme="dark"] .creative-info-card {
    background: #140a26 !important;
    border-color: rgba(168, 85, 247, 0.28) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

body.dark-theme .creative-info-card:hover,
[data-theme="dark"] .creative-info-card:hover {
    background: #1c0e35 !important;
    border-color: rgba(168, 85, 247, 0.55) !important;
    box-shadow: 0 15px 35px rgba(101, 49, 190, 0.3) !important;
}

/* Card 1: Doctor - Royal Purple Gradient */
body.dark-theme .creative-info-card:nth-child(1) .creative-icon-box,
[data-theme="dark"] .creative-info-card:nth-child(1) .creative-icon-box {
    background: linear-gradient(135deg, rgb(101 49 190), rgb(55 15 117)) !important;
    border: 1px solid rgba(192, 132, 252, 0.45) !important;
    box-shadow: 0 6px 20px rgba(101, 49, 190, 0.4) !important;
}

/* Card 2: Location - Amber / Coral Red Gradient */
body.dark-theme .creative-info-card:nth-child(2) .creative-icon-box,
[data-theme="dark"] .creative-info-card:nth-child(2) .creative-icon-box {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
    border: 1px solid rgba(245, 158, 11, 0.5) !important;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.38) !important;
}

/* Card 3: Map - Cyan / Ocean Blue Gradient */
body.dark-theme .creative-info-card:nth-child(3) .creative-icon-box,
[data-theme="dark"] .creative-info-card:nth-child(3) .creative-icon-box {
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    border: 1px solid rgba(14, 165, 233, 0.5) !important;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.38) !important;
}

/* Card 4: WhatsApp / Phone - WhatsApp Green Gradient */
body.dark-theme .creative-info-card:nth-child(4) .creative-icon-box,
[data-theme="dark"] .creative-info-card:nth-child(4) .creative-icon-box {
    background: linear-gradient(135deg, #25d366, #128c7e) !important;
    border: 1px solid rgba(37, 211, 102, 0.5) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38) !important;
}

/* Pure White Icons with drop-shadow */
body.dark-theme .creative-icon-box i,
[data-theme="dark"] .creative-icon-box i {
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)) !important;
}

body.dark-theme .creative-info-card h4,
[data-theme="dark"] .creative-info-card h4 {
    color: #faf5ff !important;
}

body.dark-theme .creative-info-card p,
[data-theme="dark"] .creative-info-card p {
    color: #f1e8ff !important;
}

body.dark-theme .creative-info-card p a,
[data-theme="dark"] .creative-info-card p a {
    color: #c084fc !important;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .creative-info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 10px 0;
    }

    .creative-info-card {
        display: flex;
        align-items: center;
        text-align: right;
        padding: 18px 16px;
        border-radius: 16px;
        flex-direction: row;
    }

    .creative-icon-box {
        width: 65px;
        height: 65px;
        margin: 0 0 0 16px;
        flex-shrink: 0;
    }

    .creative-icon-box i {
        font-size: 2.2rem !important;
    }

    .creative-card-content {
        flex: 1;
        min-width: 0;
    }

    .creative-info-card h4 {
        margin-bottom: 4px;
        font-size: 1.15rem;
    }

    .creative-info-card h4::after {
        margin: 4px 0 0 0;
        width: 30px;
    }

    .creative-info-card p {
        font-size: 0.98rem !important;
        line-height: 1.55 !important;
    }

    /* Entrance Animation */
    .creative-info-card {
        opacity: 0;
        animation: slideInUp 0.6s forwards;
    }

    .creative-info-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .creative-info-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .creative-info-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .creative-info-card:nth-child(4) {
        animation-delay: 0.4s;
    }
}

/* Animations */
@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}