/* Certificates Section */
.contact-section {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(66, 125, 192, 0.15);
}

.certificates-container {
    width: 100%;
}

/* Contact Info Side - Grid Layout برای دو ردیف سه تایی */
.contact-info-side {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Info Card - بهبود یافته برای Grid */
.info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.8rem 0rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 2px solid rgba(66, 125, 192, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: fit-content;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 125, 192, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(66, 125, 192, 0.2);
    border-color: #427dc0;
    background: white;
}

.info-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #203F78 0%, #427dc0 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(66, 125, 192, 0.3);
}

.info-card:hover .info-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(66, 125, 192, 0.5);
}

.info-icon svg {
    width: 28px;
    height: 28px;
}

.info-content {
    flex: 1;
    width: 100%;
    padding: 0 0.5rem;
}

.info-title {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-link {
    display: inline-block;
    font-size: 1rem;
    color: #427dc0;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: rgba(66, 125, 192, 0.05);
    word-break: break-word;
    line-height: 1.4;
}

.info-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #203F78, #427dc0);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.info-link:hover {
    color: #1f3079;
    background: rgba(66, 125, 192, 0.15);
    transform: scale(1.05);
}

.info-link:hover::after {
    width: 90%;
}

.info-text {
    font-size: 1.05rem;
    color: #1f3079;
    font-weight: 600;
}

/* Social Links - حفظ استایل قبلی */
.social-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    justify-items: center;
    margin: 2rem 0.5rem 0;
    padding: 2rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 2px solid rgba(66, 125, 192, 0.1);
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(66, 125, 192, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #427dc0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #203F78 0%, #427dc0 100%);
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-link:hover {
    color: white;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(66, 125, 192, 0.4);
}

.social-link svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Responsive - بهبود یافته برای Grid */
@media (max-width: 1200px) {
    .contact-info-side {
        max-width: 800px;
        gap: 1.3rem;
    }
}

@media (max-width: 968px) {
    .contact-info-side {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 1.2rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-info-side {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .info-card {
        padding: 1.5rem 1.3rem;
    }

    .info-icon {
        width: 50px;
        height: 50px;
    }

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

    .info-link {
        font-size: 0.95rem;
        padding: 0.3rem 0.6rem;
    }

    .social-links {
        padding: 1.5rem 1.5rem;
        gap: 1rem;
        margin: 1.5rem 0.5rem 0;
    }

    .social-link {
        width: 50px;
        height: 50px;
    }

    .social-link svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .contact-info-side {
        padding: 0 0.8rem;
        gap: 0.8rem;
    }
    
    .info-card {
        padding: 1.3rem 1rem;
    }
    
    .info-content {
        padding: 0 0.3rem;
    }

    .info-title {
        font-size: 0.9rem;
    }

    .info-link {
        font-size: 0.9rem;
    }

    .social-links {
        padding: 1.3rem 1rem;
        margin: 1.3rem 0.3rem 0;
        gap: 0.8rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 22px;
        height: 22px;
    }
}