.contact-info-section {
    position: relative;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(31, 31, 31, 0.97) 0%, rgba(23, 23, 23, 0.97) 100%);
    overflow: hidden;
}

.contact-info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(var(--theme-color1-rgb), 0.02) 0%, transparent 50%);
    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-info-block {
    position: relative;
    padding: 32px 28px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    margin: 0 auto;
    max-width: 360px;
}

.contact-info-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.contact-info-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(var(--theme-color1-rgb), 0.03),
        rgba(var(--theme-color2-rgb), 0.03)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-info-block:hover::before {
    opacity: 1;
}

.contact-info-block .inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    width: 100%;
}

.contact-info-block .icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    width: 65px;
    line-height: 65px;
    text-align: center;
    background: rgba(var(--theme-color1-rgb), 0.85);
    color: #ffffff00;
    border-radius: 50%;
    font-size: 26px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(var(--theme-color1-rgb), 0.12);
}

.contact-info-block:hover .icon {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--theme-color1-rgb), 0.18);
}

.contact-info-block h4 {
    font-size: 19px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.contact-info-block:hover h4 {
    color: rgba(var(--theme-color1-rgb), 1);
}

.contact-info-block .text {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.contact-info-block .text a {
    color: inherit;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.contact-info-block .text a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.contact-info-block .text a:hover {
    color: rgba(var(--theme-color1-rgb), 1);
}

.contact-info-block .text a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .contact-info-section {
        padding: 30px 0;
    }

    .contact-info-block {
        padding: 28px 24px;
        max-width: 320px;
    }

    .contact-info-block .inner {
        gap: 15px;
    }

    .contact-info-block .icon {
        height: 55px;
        width: 55px;
        line-height: 55px;
        font-size: 22px;
    }

    .contact-info-block h4 {
        font-size: 17px;
    }

    .contact-info-block .text {
        font-size: 14px;
    }
}

/* Extra Small Devices */
@media (max-width: 575px) {
    .contact-info-section {
        padding: 25px 0;
    }

    .contact-info-block {
        padding: 24px 20px;
        max-width: 290px;
    }
    
    .contact-info-block .inner {
        text-align: center;
        width: 100%;
        gap: 12px;
    }
    
    .contact-info-block .text {
        width: 100%;
        word-break: break-word;
    }
}
