/* ==========================================
   HOLOGRAPHIC CERTIFICATES GRID
   ========================================== */

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0;
    list-style: none;
}

/* Resetting previous list item styles */
.cert-item.award-item {
    border-left: none;
    background: transparent;
    padding: 0;
    display: block; /* Break flex layout of award-item */
    margin-bottom: 0; /* Let grid handle gap */
}

.cert-item {
    background: rgba(13, 14, 21, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(60, 64, 80, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 220px;
}

/* Holographic Shine Effect */
.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
    z-index: 2;
}

.cert-item:hover::before {
    left: 150%;
    transition: 0.7s ease-in-out;
}

/* Hover State */
.cert-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    background: rgba(20, 22, 30, 0.8);
    box-shadow: 
        0 10px 30px rgba(0, 243, 255, 0.15),
        inset 0 0 20px rgba(0, 243, 255, 0.05);
}

/* Corner Accents */
.cert-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(225deg, rgba(0, 243, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: 0.3s;
}

.cert-item:hover::after {
    opacity: 1;
}

/* Card Content Structure */
.cert-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: auto; /* Push footer down */
    position: relative;
    z-index: 3;
    pointer-events: none; /* Click hits the card */
}

/* Icon Styling */
.cert-item .award-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: rgba(0, 243, 255, 0.08);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid rgba(0, 243, 255, 0.2);
    transition: all 0.3s ease;
}

.cert-item:hover .award-icon {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
    transform: rotateY(180deg);
}

/* Text Styling */
.cert-item .award-content {
    width: 100%;
}

.cert-item .award-content p {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
    margin: 0;
    transition: 0.3s;
}

.cert-item:hover .award-content p {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Terminal Footer */
.cert-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.7;
    transition: 0.3s;
    font-family: var(--font-mono);
    position: relative;
    z-index: 3;
}

.cert-item:hover .cert-footer {
    opacity: 1;
    border-color: rgba(0, 243, 255, 0.3);
}

.view-cert-text {
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.view-cert-icon {
    font-size: 0.8rem;
    color: var(--primary-color);
    transition: 0.3s;
    margin-right: 5px; /* Add space from the edge */
}

.cert-item:hover .view-cert-icon {
    transform: translateX(3px); /* Reduced movement */
}

/* Hide the image in the card (it opens in modal) */
.cert-body {
    display: none;
}
