/* ==========================================================================
   HOLOGRAPHIC CERTIFICATES SHOWCASE & VIEWER
   Inspired by futuristic holographic interfaces & executive credential decks
   ========================================================================== */

/* Section Outer Container */
.cert-showcase-section {
    position: relative;
    padding: 5rem 1.5rem 4rem;
    overflow: hidden;
    scroll-margin-top: 90px;
    background: radial-gradient(circle at 50% 35%, rgba(6, 182, 212, 0.08) 0%, rgba(8, 11, 20, 0) 70%),
                radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.05) 0%, transparent 60%);
}

.cert-section-inner {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Header & Title */
.cert-showcase-header {
    text-align: center;
    margin-bottom: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cert-main-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(2.1rem, 3.8vw, 3.1rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin: 0 auto 0.75rem auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    white-space: nowrap;
}

.cert-gradient-text {
    background: linear-gradient(135deg, #00f3ff 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(0, 243, 255, 0.4));
    display: inline-block;
}

/* Category & Counter Badges */
.cert-badges-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.cert-pill-badge {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #94a3b8;
    padding: 0.45rem 1.15rem;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 600;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    text-decoration: none;
}

.cert-pill-badge i {
    color: #38bdf8;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.cert-pill-badge:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(56, 189, 248, 0.55);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(6, 182, 212, 0.2);
    text-decoration: none;
}

.cert-pill-badge:hover i {
    transform: scale(1.15);
}

.cert-pill-badge.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.25), inset 0 0 10px rgba(0, 242, 254, 0.1);
}

.cert-pill-badge.active i {
    color: #00f2fe;
}

.cert-pill-badge.cert-pill-nasa {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(0, 242, 254, 0.6);
    color: #00f2fe;
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.22);
}

.cert-pill-badge.cert-pill-nasa:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.3) 0%, rgba(99, 102, 241, 0.35) 100%);
    border-color: #00f2fe;
    color: #ffffff;
    box-shadow: 0 0 28px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.cert-pill-badge.cert-pill-nasa i {
    color: #00f2fe;
}

/* ==========================================================================
   HOLOGRAPHIC STAGE (CENTERPIECE)
   ========================================================================== */
.cert-stage-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 2.5rem;
    min-height: auto;
}

/* Navigation Arrows */
.cert-nav-container {
    position: relative;
    width: 100%;
    max-width: 860px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-stage-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cert-stage-arrow:hover {
    background: rgba(30, 41, 59, 0.98);
    border-color: var(--active-theme-color, #00f2fe);
    color: #ffffff;
    box-shadow: 0 0 25px var(--active-theme-glow, rgba(0, 242, 254, 0.5));
    transform: translateY(-50%) scale(1.1);
}

.cert-stage-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.cert-stage-arrow.prev {
    left: -10px;
}

.cert-stage-arrow.next {
    right: -10px;
}

@media (min-width: 900px) {
    .cert-stage-arrow.prev {
        left: -32px;
    }
    .cert-stage-arrow.next {
        right: -32px;
    }
}

/* The Showcase Card */
.cert-showcase-card {
    position: relative;
    width: 100%;
    max-width: 680px;
    min-height: 380px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(13, 20, 32, 0.96) 0%, rgba(8, 12, 20, 0.98) 100%);
    border: 2px solid var(--active-theme-color, #a6ff00);
    box-shadow: 0 0 35px var(--active-theme-glow, rgba(166, 255, 0, 0.35)),
                0 25px 60px rgba(0, 0, 0, 0.65),
                inset 0 0 25px var(--active-theme-glow-inner, rgba(166, 255, 0, 0.08));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2.2rem 2.4rem 2rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: certFloating 6s ease-in-out infinite;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
    overflow: hidden;
}

/* Subtle circuit background grid inside card */
.cert-showcase-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 85% 15%, var(--active-theme-glow-inner, rgba(166, 255, 0, 0.06)) 0%, transparent 60%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 24px 24px, 24px 24px;
    pointer-events: none;
    z-index: 0;
}

@keyframes certFloating {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Hologram Base & Emitter Pedestal (Hidden) */
.cert-holo-stage {
    display: none !important;
}

/* Ambient Ground Glow on the Floor */
.cert-holo-ground-glow {
    position: absolute;
    bottom: 5px;
    width: 440px;
    height: 65px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, var(--active-theme-glow, rgba(0, 242, 254, 0.45)) 0%, rgba(6, 182, 212, 0.15) 45%, transparent 70%);
    filter: blur(14px);
    opacity: 0.8;
    animation: groundBreathe 4s ease-in-out infinite alternate;
}

@keyframes groundBreathe {
    0% {
        opacity: 0.55;
        transform: scale(0.95);
    }
    100% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Upward Holographic Light Beam */
.cert-holo-beam {
    position: absolute;
    bottom: 25px;
    width: 420px;
    height: 135px;
    clip-path: polygon(18% 0%, 82% 0%, 96% 100%, 4% 100%);
    background: linear-gradient(to top, 
        var(--active-theme-glow, rgba(0, 242, 254, 0.45)) 0%, 
        var(--active-theme-glow-inner, rgba(0, 242, 254, 0.16)) 50%, 
        transparent 100%
    );
    opacity: 0.85;
    animation: beamShimmer 4s ease-in-out infinite alternate;
    filter: blur(1.5px);
    pointer-events: none;
}

@keyframes beamShimmer {
    0% {
        opacity: 0.65;
        clip-path: polygon(20% 0%, 80% 0%, 95% 100%, 5% 100%);
        transform: scaleY(0.97);
    }
    100% {
        opacity: 0.92;
        clip-path: polygon(16% 0%, 84% 0%, 97% 100%, 3% 100%);
        transform: scaleY(1.03);
    }
}

/* 3D Floor Emitter Stage Plate */
.cert-holo-emitter {
    position: absolute;
    bottom: 0;
    width: 320px;
    height: 320px;
    margin-bottom: -125px;
    transform-style: preserve-3d;
    transform: perspective(600px) rotateX(72deg);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

/* Base Glowing Disc */
.cert-emitter-disc {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--active-theme-color, #00f2fe);
    background: radial-gradient(circle, 
        var(--active-theme-glow, rgba(0, 242, 254, 0.5)) 0%, 
        var(--active-theme-glow-inner, rgba(0, 242, 254, 0.2)) 40%, 
        rgba(8, 14, 26, 0.45) 70%, 
        transparent 100%
    );
    box-shadow: 0 0 30px var(--active-theme-glow, rgba(0, 242, 254, 0.6)), 
                inset 0 0 25px var(--active-theme-glow, rgba(0, 242, 254, 0.4));
}

/* Outer Sci-Fi Dashed Orbit Ring (Smooth Flat 3D Rotation) */
.cert-emitter-ring-outer {
    position: absolute;
    width: 88%;
    height: 88%;
    border-radius: 50%;
    border: 1.8px dashed var(--active-theme-color, #00f2fe);
    box-shadow: 0 0 16px var(--active-theme-glow, rgba(0, 242, 254, 0.4)),
                inset 0 0 14px var(--active-theme-glow, rgba(0, 242, 254, 0.25));
    animation: ringSpin 22s linear infinite;
}

/* Inner Dotted Counter-Rotating HUD Ring */
.cert-emitter-ring-inner {
    position: absolute;
    width: 68%;
    height: 68%;
    border-radius: 50%;
    border: 1.5px dotted var(--active-theme-color, #00f2fe);
    opacity: 0.85;
    animation: ringSpinReverse 14s linear infinite;
}

/* Concentric Expanding Holographic Ripple Wave */
.cert-emitter-pulse {
    position: absolute;
    width: 45%;
    height: 45%;
    border-radius: 50%;
    border: 2px solid var(--active-theme-color, #00f2fe);
    box-shadow: 0 0 18px var(--active-theme-color, #00f2fe);
    animation: waveExpand 3s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
}

/* High-Intensity Plasma Emitter Core */
.cert-emitter-core {
    position: absolute;
    width: 32%;
    height: 32%;
    border-radius: 50%;
    background: radial-gradient(circle, 
        #ffffff 0%, 
        var(--active-theme-color, #00f2fe) 40%, 
        var(--active-theme-glow, rgba(0, 242, 254, 0.8)) 70%, 
        transparent 100%
    );
    box-shadow: 0 0 25px #ffffff, 
                0 0 45px var(--active-theme-color, #00f2fe);
    animation: corePulse 3s ease-in-out infinite alternate;
}

@keyframes ringSpin {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes ringSpinReverse {
    0% {
        transform: rotateZ(360deg);
    }
    100% {
        transform: rotateZ(0deg);
    }
}

@keyframes waveExpand {
    0% {
        transform: scale(0.5);
        opacity: 0.95;
    }
    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

@keyframes corePulse {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
        box-shadow: 0 0 20px #ffffff, 0 0 35px var(--active-theme-color, #00f2fe);
    }
    100% {
        transform: scale(1.08);
        opacity: 1;
        box-shadow: 0 0 30px #ffffff, 0 0 55px var(--active-theme-color, #00f2fe);
    }
}

/* ==========================================================================
   INSIDE THE SHOWCASE CARD
   ========================================================================== */
.cert-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Card Top Bar */
.cert-card-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.4rem;
}

.cert-issuer-brand {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.cert-brand-dot {
    color: var(--active-theme-color, #a6ff00);
    font-size: 1.8rem;
    line-height: 0.5;
    transition: color 0.3s ease;
}

.cert-meta-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.cert-date-index-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cert-issue-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--active-theme-color, #a6ff00);
    font-family: var(--font-body, sans-serif);
}

.cert-index-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #cbd5e1;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.5px;
}

.cert-id-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.75rem;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

/* Card Main Body */
.cert-card-main {
    margin-bottom: 1.5rem;
}

.cert-credential-subtitle {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.4rem;
    text-align: left;
}

.cert-main-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.6rem, 3.2vw, 2.15rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.22;
    margin-bottom: 0.45rem;
    letter-spacing: -0.02em;
    word-spacing: normal;
    text-align: left;
    text-wrap: balance;
}

.cert-type-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--active-theme-color, #a6ff00);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 0.85rem;
    transition: color 0.3s ease;
    text-align: left;
}

.cert-description-text {
    font-size: 0.92rem;
    line-height: 1.62;
    color: #cbd5e1;
    margin-bottom: 1rem;
    max-width: 580px;
    text-align: left;
    text-justify: auto;
    word-spacing: normal;
    letter-spacing: normal;
}

/* Skills tags */
.cert-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.cert-skill-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 0.25rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #e2e8f0;
}

/* Card Bottom Footer */
.cert-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.25rem;
    margin-top: auto;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.cert-issuer-group {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    flex: 1;
    min-width: 250px;
}

.cert-issuer-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.cert-issuer-name {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.18rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.cert-issuer-sub {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Action View Buttons (Specific Request) */
.cert-action-cluster {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-cert-view-main {
    background: linear-gradient(135deg, var(--active-theme-color, #a6ff00) 0%, #38bdf8 120%);
    color: #080b14;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--active-theme-glow, rgba(166, 255, 0, 0.4));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.btn-cert-view-main:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 28px var(--active-theme-glow, rgba(166, 255, 0, 0.65));
    color: #040810;
}

.btn-cert-view-main:active {
    transform: translateY(0) scale(0.98);
}

.btn-cert-view-main i {
    font-size: 0.95rem;
}

/* Secondary Action & Details Link */
.btn-cert-details-btn,
.btn-cert-verify-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border-radius: 50px;
    padding: 0.6rem 1.05rem;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-body, sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cert-details-btn:hover,
.btn-cert-verify-link:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--active-theme-color, #a6ff00);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* NASA Hackathon Deep Dive Button */
.btn-cert-story-btn {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.22) 0%, rgba(56, 189, 248, 0.22) 100%);
    border: 1px solid rgba(236, 72, 153, 0.6);
    color: #f472b6;
    border-radius: 50px;
    padding: 0.6rem 1.15rem;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: var(--font-body, sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
}

.btn-cert-story-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.38) 0%, rgba(56, 189, 248, 0.38) 100%);
    border-color: #ec4899;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6);
}

/* Verified Ribbon Seal Medallion */
.cert-seal-badge {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, #84cc16 0%, #4d7c0f 85%);
    border: 2px solid #bef264;
    box-shadow: 0 0 18px rgba(132, 204, 22, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    user-select: none;
    flex-shrink: 0;
}

.cert-seal-badge i {
    font-size: 1.15rem;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.cert-seal-text {
    font-size: 0.48rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 1px;
    font-family: var(--font-heading, sans-serif);
}

/* Ribbon tails */
.cert-seal-badge::before,
.cert-seal-badge::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 11px;
    height: 16px;
    background: #4d7c0f;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%);
}

.cert-seal-badge::before {
    left: 12px;
    transform: rotate(18deg);
}

.cert-seal-badge::after {
    right: 12px;
    transform: rotate(-18deg);
}

/* ==========================================================================
   BOTTOM THUMBNAIL TRACK / SELECTOR CAROUSEL
   ========================================================================== */
.cert-thumbnails-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cert-thumbnails-track {
    display: flex;
    gap: 1.1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0.5rem 1.6rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 182, 212, 0.4) rgba(15, 23, 42, 0.4);
    -webkit-overflow-scrolling: touch;
}

.cert-thumbnails-track::-webkit-scrollbar {
    height: 6px;
}

.cert-thumbnails-track::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
}

.cert-thumbnails-track::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #06b6d4, #a855f7);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Thumbnail Card */
.cert-thumb-card {
    flex: 0 0 190px;
    min-width: 190px;
    height: 130px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.cert-thumb-card:hover {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Active Thumbnail Card (Matches Screenshot Lime Green / Dynamic Accent) */
.cert-thumb-card.active {
    background: rgba(20, 30, 48, 0.95);
    border: 2px solid var(--thumb-accent, #a6ff00);
    box-shadow: 0 0 24px var(--thumb-glow, rgba(166, 255, 0, 0.4)),
                inset 0 0 12px var(--thumb-glow-inner, rgba(166, 255, 0, 0.08));
    transform: translateY(-5px);
}

.cert-thumb-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-thumb-issuer {
    font-family: var(--font-heading, sans-serif);
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.cert-thumb-card.active .cert-thumb-issuer {
    color: var(--thumb-accent, #a6ff00);
}

.cert-thumb-number {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

.cert-thumb-card.active .cert-thumb-number {
    color: var(--thumb-accent, #a6ff00);
    border-color: var(--thumb-accent, #a6ff00);
    background: rgba(166, 255, 0, 0.08);
}

.cert-thumb-title {
    font-family: var(--font-heading, sans-serif);
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cert-thumb-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-thumb-date {
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: var(--font-body, sans-serif);
}

.cert-thumb-icon {
    font-size: 0.9rem;
    color: #64748b;
    transition: color 0.3s ease;
}

.cert-thumb-card.active .cert-thumb-icon {
    color: var(--thumb-accent, #a6ff00);
}

/* ==========================================================================
   INTERACTIVE FULLSCREEN CERTIFICATE VIEWER MODAL
   ========================================================================== */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.cert-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(8, 12, 22, 0.99) 100%);
    border: 2px solid var(--modal-accent, #00f2fe);
    box-shadow: 0 0 50px var(--modal-glow, rgba(0, 242, 254, 0.35)), 0 30px 80px rgba(0, 0, 0, 0.8);
    border-radius: 24px;
    padding: 2.8rem 2.8rem 2.4rem;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.cert-modal-overlay.active .cert-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Modal Close Button */
.cert-modal-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.cert-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(90deg);
}

/* Modal Certificate Frame (Diploma/Document Style) */
.cert-document-frame {
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 2.2rem;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
}

.cert-document-frame::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    pointer-events: none;
}

.cert-modal-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading, sans-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cert-modal-presented {
    font-family: var(--font-mono, monospace);
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.4rem;
}

.cert-modal-recipient {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-modal-for {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}

.cert-modal-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    color: var(--modal-accent, #00f2fe);
    line-height: 1.25;
    margin-bottom: 1.2rem;
    text-align: left;
    text-wrap: balance;
    word-spacing: normal;
    letter-spacing: -0.01em;
}

.cert-modal-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #cbd5e1;
    margin-bottom: 1.8rem;
    max-width: 650px;
    text-align: left;
    word-spacing: normal;
    letter-spacing: normal;
}

.cert-modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.4rem;
    margin-bottom: 2rem;
}

.cert-meta-item-label {
    font-family: var(--font-mono, monospace);
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.cert-meta-item-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
}

/* Modal Bottom Actions */
.cert-modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cert-modal-nav-btns {
    display: flex;
    gap: 0.5rem;
}

.cert-modal-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cert-modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--modal-accent, #00f2fe);
    transform: scale(1.08);
}

.cert-modal-link-btns {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-modal-open-drive {
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
    color: #080b14;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.6rem;
    font-size: 0.92rem;
    font-weight: 700;
    font-family: var(--font-body, sans-serif);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(0, 242, 254, 0.4);
    transition: all 0.3s ease;
}

.btn-modal-open-drive:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0, 242, 254, 0.65);
    color: #000000;
}

.btn-modal-copy-id {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border-radius: 50px;
    padding: 0.65rem 1.2rem;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}

.btn-modal-copy-id:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #00f2fe;
    color: #ffffff;
}

/* Copy Toast */
.cert-copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0f172a;
    border: 1px solid #00f2fe;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.3);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10000;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
}

.cert-copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
/* View Mode Toggle (Spotlight vs Grid) */
.cert-mode-switcher-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.1rem;
    gap: 0.5rem;
}

.cert-view-toggle {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 50px;
    padding: 3px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cert-toggle-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 0.45rem 1.15rem;
    border-radius: 50px;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.cert-toggle-btn i {
    font-size: 0.82rem;
    transition: transform 0.25s ease;
}

.cert-toggle-btn:hover {
    color: #ffffff;
}

.cert-toggle-btn.active {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(56, 189, 248, 0.28) 100%);
    color: #00f2fe;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.3), inset 0 0 10px rgba(0, 242, 254, 0.15);
}

.cert-toggle-btn.active i {
    color: #00f2fe;
    transform: scale(1.1);
}

/* Thumbnail Direct Drive Link */
.cert-thumb-direct-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    border: 1px solid rgba(0, 242, 254, 0.35);
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: auto;
}

.cert-thumb-direct-link:hover {
    background: #00f2fe;
    color: #050b14;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
    text-decoration: none;
}

/* ==========================================================================
   ALL CERTIFICATES GRID VIEW (RESPONSIVE CARDS)
   ========================================================================== */
.cert-all-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.8rem;
    margin: 2.2rem 0 3rem;
    position: relative;
    z-index: 5;
    animation: fadeInGrid 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInGrid {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-grid-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88) 0%, rgba(8, 14, 26, 0.96) 100%);
    border: 1px solid var(--grid-accent-border, rgba(56, 189, 248, 0.24));
    border-radius: 18px;
    padding: 1.75rem 1.6rem 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.cert-grid-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--grid-accent-color, #00f2fe), transparent);
    opacity: 0.6;
    transition: opacity 0.35s ease;
}

.cert-grid-card:hover {
    transform: translateY(-6px);
    border-color: var(--grid-accent-color, #00f2fe);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 26px var(--grid-accent-glow, rgba(0, 242, 254, 0.25));
}

.cert-grid-card:hover::before {
    opacity: 1;
}

.cert-grid-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.cert-grid-issuer-brand {
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.2px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cert-grid-issuer-brand i {
    color: var(--grid-accent-color, #00f2fe);
    font-size: 0.95rem;
}

.cert-grid-number {
    font-family: var(--font-mono, 'Fira Code', monospace);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--grid-accent-color, #00f2fe);
    background: var(--grid-accent-glow-inner, rgba(0, 242, 254, 0.12));
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    border: 1px solid var(--grid-accent-border, rgba(0, 242, 254, 0.3));
}

.cert-grid-badge {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    color: var(--grid-accent-color, #00f2fe);
    background: var(--grid-accent-glow-inner, rgba(0, 242, 254, 0.1));
    border: 1px solid var(--grid-accent-border, rgba(0, 242, 254, 0.25));
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.cert-grid-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.22rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.38;
    margin-bottom: 0.75rem;
    text-align: left;
    text-wrap: balance;
    word-spacing: normal;
    letter-spacing: -0.01em;
}

.cert-grid-desc {
    font-size: 0.87rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 1.1rem;
    flex-grow: 1;
    text-align: left;
    word-spacing: normal;
    letter-spacing: normal;
}

.cert-grid-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.cert-grid-skill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.cert-grid-issuer-info {
    margin-bottom: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-grid-issuer-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.2rem;
}

.cert-grid-issuer-dept {
    font-size: 0.78rem;
    color: #64748b;
}

.cert-grid-footer-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-cert-grid-drive {
    flex: 1;
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(56, 189, 248, 0.22) 100%);
    border: 1px solid var(--grid-accent-color, #00f2fe);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cert-grid-drive:hover {
    background: var(--grid-accent-color, #00f2fe);
    color: #050b14;
    box-shadow: 0 0 18px var(--grid-accent-glow, rgba(0, 242, 254, 0.5));
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-cert-grid-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cert-grid-details:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
    .cert-all-grid-container {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .cert-mode-switcher-row {
        flex-direction: column;
    }

    .cert-view-toggle {
        width: 100%;
        justify-content: center;
    }

    .cert-toggle-btn {
        flex: 1;
        justify-content: center;
        padding: 0.5rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .cert-showcase-section {
        padding: 4rem 1rem 3.5rem;
    }

    .cert-showcase-card {
        padding: 1.6rem 1.4rem;
        min-height: 420px;
    }

    .cert-card-topbar {
        flex-direction: column;
        gap: 0.8rem;
    }

    .cert-meta-right {
        align-items: flex-start;
        text-align: left;
    }

    .cert-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .cert-issuer-group {
        width: 100%;
    }

    .cert-action-cluster {
        width: 100%;
        justify-content: flex-start;
        gap: 0.65rem;
    }

    .cert-holo-stage {
        max-width: 320px;
        margin-top: -20px;
    }

    .cert-holo-beam {
        width: 280px;
        height: 110px;
    }

    .cert-holo-emitter {
        width: 220px;
        height: 220px;
        margin-bottom: -80px;
    }

    .cert-holo-ground-glow {
        width: 280px;
        height: 45px;
    }

    .cert-modal-dialog {
        padding: 2rem 1.4rem;
    }

    .cert-document-frame {
        padding: 1.4rem 1rem;
    }

    .cert-modal-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .cert-modal-link-btns {
        flex-direction: column;
    }

    .btn-modal-open-drive,
    .btn-modal-copy-id {
        width: 100%;
        justify-content: center;
    }
}

