/* Certificates page specific styles */
.certificates-main {
    min-height: 100vh;
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.certificates-hero {
    text-align: center;
    padding: 3rem 0 4rem 0;
}

.certificates-title {
    font-family: prata;
    font-weight: 100;
    font-size: 2.5em;
    color: var(--white);
    margin-bottom: 1rem;
}

.certificates-subtitle {
    font-family: inter;
    font-weight: 300;
    font-size: 1.1em;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Section styling */
.cert-section {
    margin-bottom: 4rem;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.section-title {
    font-family: prata;
    font-weight: 100;
    font-size: 1.8em;
    color: var(--white);
    white-space: nowrap;
    margin: 0;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--yellow), transparent);
}

/* Certificate grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Enhanced cert card for certificates page */
.certificates-main .cert-card {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(40, 42, 49, 0.8));
    border: 1px solid rgba(54, 188, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.certificates-main .cert-card:hover {
    transform: translateY(-5px);
    border-color: var(--yellow);
    box-shadow: 0 12px 40px rgba(54, 188, 255, 0.2);
}

.certificates-main .cert-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificates-main .cert-card:hover img {
    transform: scale(1.05);
}

.certificates-main .cert-info {
    padding: 1.5rem;
}

.certificates-main .cert-info h3 {
    font-family: prata;
    font-weight: 100;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.certificates-main .cert-info p {
    font-family: inter;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0.5rem 0;
}

.certificates-main .cert-info p strong {
    color: var(--yellow);
    font-weight: 400;
}

.certificates-main .cert-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(54, 188, 255, 0.2);
    font-style: italic;
    line-height: 1.4;
}

/* CTA section */
.certificates-cta {
    text-align: center;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(54, 188, 255, 0.2);
}

.certificates-cta .cv-btn,
.certificates-cta .in-touch-btn {
    margin: 0.5rem;
}

/* Certificate Image Modal */
.cert-image-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cert-image-clickable:hover {
    transform: scale(1.05);
}

.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 300;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-modal.show {
    display: flex;
    opacity: 1;
}

.cert-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cert-modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    font-size: 2rem;
    color: var(--white);
    cursor: pointer;
    z-index: 301;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cert-modal-close:hover {
    background: var(--yellow);
    color: var(--black);
    transform: rotate(90deg);
}

.cert-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.cert-modal-title {
    color: var(--white);
    font-family: prata;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 1rem;
}

.cert-modal-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cert-zoom-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--yellow);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-family: inter;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.cert-zoom-btn:hover {
    background: var(--yellow);
    color: var(--black);
}

/* Responsive design */
@media (max-width: 768px) {
    .certificates-main {
        padding: 1rem;
    }

    .certificates-title {
        font-size: 2em;
    }

    .certificates-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 1.4em;
    }

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

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-line {
        width: 100%;
        height: 1px;
    }

    .cert-modal-close {
        top: -30px;
        right: -10px;
        font-size: 1.5rem;
        width: 30px;
        height: 30px;
    }

    .cert-modal-image {
        max-height: 70vh;
    }

    .cert-modal-title {
        font-size: 1rem;
    }

    .cert-zoom-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .certificates-hero {
        padding: 2rem 0 3rem 0;
    }

    .certificates-title {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.2em;
    }

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

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-section {
    animation: fadeInUp 0.6s ease-out;
}

.cert-section:nth-child(even) {
    animation-delay: 0.1s;
}

.cert-section:nth-child(odd) {
    animation-delay: 0.2s;
}