/* ===========================
   CERTIFICATIONS SECTION
   =========================== */

.certifications {
    background: #fff;
    padding: 80px 20px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.cert-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cert-card:hover::after {
    width: 400px;
    height: 400px;
}

.cert-card:hover {
    border-color: #667eea;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
}

.cert-icon {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    display: inline-block;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.cert-card:hover .cert-icon {
    transform: scale(1.2) rotate(5deg);
}

.cert-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.15rem;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.cert-card p {
    color: #667eea;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cert-details {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px dashed #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.cert-issuer,
.cert-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cert-verify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cert-verify-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.cert-verify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.cert-verify-btn:hover svg {
    transform: translateX(3px) translateY(-3px);
}

/* Alternating button colors */
.cert-card:nth-child(2) .cert-verify-btn {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.cert-card:nth-child(3) .cert-verify-btn {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.cert-card:nth-child(4) .cert-verify-btn {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 4px 15px rgba(56, 249, 215, 0.3);
}

.cert-card:nth-child(5) .cert-verify-btn {
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.cert-card:nth-child(6) .cert-verify-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}
