/* 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(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    /* Glass effect if on colored bg */
    z-index: 1;
}

/* Hover Lift Effect */
.creative-info-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 113, 239, 0.15);
    border-color: rgba(0, 113, 239, 0.3);
}

/* Icon Container with Pulse Animation */
.creative-icon-box {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #eaf6ff 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
}

.creative-icon-box i {
    font-size: 3.5rem !important;
    background: -webkit-linear-gradient(45deg, #0071ef, #00c6ff);
    -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(0, 113, 239, 0.2);
    opacity: 0;
    z-index: -1;
}

.creative-info-card:hover .creative-icon-box {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 113, 239, 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 */
.creative-info-card h4 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2a3d66;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.creative-info-card h4::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: #0071ef;
    margin: 8px auto 0;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.creative-info-card:hover h4::after {
    width: 50px;
}

.creative-info-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .creative-info-grid {
        grid-template-columns: 1fr;
        /* Stack vertically on mobile */
        gap: 20px;
        padding: 10px;
    }

    .creative-info-card {
        display: flex;
        /* Horizontal Layout on Mobile */
        align-items: center;
        text-align: right;
        /* RTL Alignment */
        padding: 20px;
        border-radius: 15px;
        flex-direction: row-reverse;
        /* Put icon on left (LTR) or right (RTL - depends on direction) */
    }

    /* Since body is RTL */
    .creative-info-card {
        flex-direction: row;
        /* Icon on the right naturally in RTL */
    }

    .creative-icon-box {
        width: 70px;
        height: 70px;
        margin: 0 0 0 20px;
        /* Space between icon and text */
        flex-shrink: 0;
    }

    .creative-icon-box i {
        font-size: 2rem !important;
    }

    .creative-info-card h4 {
        margin-bottom: 5px;
        font-size: 1.1rem;
    }

    .creative-info-card h4::after {
        margin: 5px 0 0 0;
        /* Left align underline */
        width: 30px;
        /* Always show small line */
    }

    .creative-info-card p {
        font-size: 0.9rem;
    }

    /* 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);
    }
}