/* Certifications Page Specific Styles */

/* Navigation Link Hover Effects */
.nav-link li a {
    position: relative;
    display: inline-block;
}

.nav-link li:not(.contact-link) a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--logo-violet);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link li:not(.contact-link) a:hover::after {
    width: 100%;
}

.nav-link li:not(.contact-link) a:hover {
    color: var(--logo-violet);
    transform: translateY(-2px);
}

.certifications-section {
    min-height: 100vh;
    padding: 20px 0 80px;
    position: relative;
    z-index: 1;
}

.certifications-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.certifications-header h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.certifications-header h1 span {
    color: var(--logo-violet);
}

.certifications-header p {
    font-size: 1.1rem;
    color: rgba(231, 231, 231, 0.7);
    line-height: 1.7;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

/* Certificate Card */
.certificate-card {
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(128, 128, 128, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-8px);
    border-color: rgba(152, 40, 255, 0.4);
    box-shadow: 0 20px 40px rgba(152, 40, 255, 0.15);
}

/* Certificate Image */
.certificate-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.certificate-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-image-wrapper img {
    transform: scale(1.05);
}

/* Certificate Info */
.certificate-info {
    padding: 1.5rem;
}

.certificate-info h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.certificate-issuer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(231, 231, 231, 0.6);
}

.certificate-issuer i {
    color: var(--logo-violet);
}

/* Bottom Right Background Decoration */
/* Certificate Modal */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.certificate-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 70%;
    max-height: 85vh;
    z-index: 10000;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: -30px;
    right: -70px;
    width: 40px;
    height: 40px;
    background: rgba(152, 40, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--logo-violet);
    transform: rotate(90deg);
}

/* Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .certifications-header h1 {
        font-size: 3rem;
    }

    .certificates-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .certifications-section {
        padding: 80px 0 60px;
    }

    .certifications-header {
        margin-bottom: 3rem;
    }

    .certifications-header h1 {
        font-size: 2.5rem;
    }

    .certifications-header p {
        font-size: 1rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .certificate-image-wrapper {
        height: 220px;
    }

    .view-certificate,
    .download-certificate {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .modal-content {
        max-width: 95%;
    }

    .modal-close {
        top: -45px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .certifications-header h1 {
        font-size: 2rem;
    }

    .certificate-overlay {
        flex-direction: column;
        gap: 0.5rem;
    }

    .view-certificate,
    .download-certificate {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}
