/* Page Certifications - Neon Gradient Redesign */

/* Section certifications */
.certifications-section {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%),
        url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Particles Background */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.certifications-section .container {
    position: relative;
    z-index: 5;
}

/* Header */
.certifications-header {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    position: relative;
    z-index: 5;
}

.certifications-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    color: white;
    background: none;
    -webkit-text-fill-color: initial;
}

.certifications-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Filters */
.cert-filters {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cert-filters:hover {
    transform: translateY(-5px);
}

.filter-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: white;
    color: #6c5ce7;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Stylish Card - Light Mode Default */
.certification-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1;
    border: 2px solid transparent;
    /* Prepare for gradient border */
}

/* Neon Gradient Border Effect */
.certification-card-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(45deg, #6c5ce7, #fd79a8, #00bceb, #6c5ce7);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.certification-card-premium:hover::after {
    opacity: 1;
}

.certification-card-premium:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Icon Wrapper */
.cert-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    /* Bouncy transition */
    position: relative;
    z-index: 3;
}

.certification-card-premium:hover .cert-icon-wrapper {
    transform: rotateY(180deg);
}

/* Specific Backgrounds */
.cisco-bg {
    background: linear-gradient(135deg, #00bceb 0%, #0083b0 100%);
}

.oc-bg {
    background: linear-gradient(135deg, #7451eb 0%, #5a3db8 100%);
}

/* Content */
.cert-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    z-index: 3;
}

.cert-issuer {
    font-size: 0.85rem;
    font-weight: 700;
    color: #b2bec3;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
}

.cert-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2d3436;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cert-desc {
    font-size: 1rem;
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Tags */
.cert-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.cert-tag {
    background: #f1f2f6;
    color: #636e72;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.certification-card-premium:hover .cert-tag {
    background: white;
    color: #6c5ce7;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.15);
    transform: translateY(-3px);
}

/* Button */
.btn-cert-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #6c5ce7;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid #6c5ce7;
    transition: all 0.4s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 3;
}

/* Button Sweep Animation */
.btn-cert-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #6c5ce7;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-cert-link:hover::before {
    width: 100%;
}

.btn-cert-link:hover {
    color: white;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
    border-color: #6c5ce7;
}

.btn-cert-link i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-cert-link:hover i {
    transform: translateX(5px);
}


/* Animations for Filtering */
.cert-item {
    transition: all 0.5s ease;
    transform-origin: center top;
}

.cert-item.hide {
    display: none;
}

.cert-item.show {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

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

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

    .certification-card-premium {
        padding: 2rem;
    }
}

/* Visibility Helper */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}