﻿/* Certificates Section Styles */
.certificate-card {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, opacity 0.3s ease;
    box-shadow: 0 12px 25px rgba(128, 90, 213, 0.18);
    border-radius: 1.2rem;
    overflow: hidden;
    opacity: 0.95;
    border: 1px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

    .certificate-card:hover {
        transform: translateY(-10px) scale(1.02);
        box-shadow: 0 20px 45px rgba(128, 90, 213, 0.3);
        opacity: 1;
        z-index: 20;
    }

    .certificate-card img {
        transition: transform 0.5s ease;
        width: 100%;
        height: auto;
        display: block;
    }

    .certificate-card:hover img {
        transform: scale(1.03);
    }

/* Carousel Styles */
.cert-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .cert-carousel::-webkit-scrollbar {
        display: none;
    }

/* Indicators Styles */
.indicators-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    transform: translateY(15px);
}

.indicator-dot {
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d8d5f0;
    cursor: pointer;
}

    .indicator-dot:hover {
        transform: scale(1.3);
        background-color: #a78bfa;
    }

    .indicator-dot.active {
        background-color: #7e22ce;
        transform: scale(1.4);
        box-shadow: 0 0 0 3px rgba(126, 34, 206, 0.2);
    }

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow: auto;
}

.modal-content {
    max-height: 90vh;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
}

.modal-image-container {
    overflow: auto;
    max-height: calc(90vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Mobile Adaptations */
@media (max-width: 768px) {
    .cert-carousel {
        scroll-snap-type: x mandatory;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .certificate-card {
        width: calc(100% - 2rem);
        scroll-snap-align: center;
        margin: 0 0.5rem;
        padding: 1rem;
    }

        .certificate-card .bg-gradient-to-t {
            padding: 0.5rem;
        }

        .certificate-card h3 {
            font-size: 1.1rem;
        }

        .certificate-card button {
            font-size: 0.9rem;
        }
}

@media (max-width: 480px) {
    .certificate-card img {
        height: 200px;
        object-fit: cover;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-image-container {
        max-height: calc(95vh - 50px);
    }
}
