/* ==========================================================================
   INDUSTRY CERTIFICATIONS SHOWCASE — CYBER DECK REDESIGN
   Ultra-modern, glassmorphic, interactive 3D credentials slider
   Root Color Consistent & Mobile-Optimized for iPhone SE (375px & 320px)
   ========================================================================== */

/* --- Root Section Architecture --- */
.cyber-certifications-showcase {
    position: relative;
    padding: 110px 0 90px;
    background: #040406;
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
}

/* Dynamic Cyber Mesh & Glow Background */
.cyber-certifications-showcase .cyber-bg-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cyber-certifications-showcase .mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.16;
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-certifications-showcase .mesh-glow-1 {
    top: 5%;
    right: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-color, #ff5757) 0%, transparent 70%);
}

.cyber-certifications-showcase .mesh-glow-2 {
    bottom: 10%;
    left: 15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 87, 87, 0.2) 0%, transparent 70%);
}

.cyber-certifications-showcase .cyber-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        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: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    opacity: 0.7;
}

/* --- Section Header (Aligned with site standard) --- */
.cyber-certifications-showcase .premium-section-header {
    position: relative;
    z-index: 2;
    margin-bottom: 45px;
    text-align: left;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cyber-certifications-showcase .heading-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color, #ff5757);
    background: rgba(255, 87, 87, 0.08);
    border: 1px solid rgba(255, 87, 87, 0.25);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    line-height: 1;
    white-space: nowrap;
    width: fit-content;
}

.cyber-certifications-showcase .heading-title-large {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    text-align: left;
    background: linear-gradient(135deg, #ffffff 30%, #ff8f8f 70%, var(--accent-color, #ff5757) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 0 0 15px 0;
}

.cyber-certifications-showcase .heading-subtitle {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    line-height: 1.65;
    margin: 0;
    text-align: left;
}

.cyber-certifications-showcase .heading-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    width: 100%;
}

/* --- Interactive Switcher Dock (Quick Tab Nav) --- */
.cert-switcher-dock {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: rgba(15, 15, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 8px 12px;
    margin-bottom: 30px;
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cert-switcher-track {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.cert-switcher-track::-webkit-scrollbar {
    display: none;
}

.cert-switcher-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
}

.cert-switcher-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.cert-switcher-tab.active {
    background: rgba(255, 87, 87, 0.12);
    border-color: rgba(255, 87, 87, 0.3);
    color: #ffffff;
    box-shadow:
        0 8px 20px -6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cert-switcher-tab .tab-index {
    font-family: 'JetBrains Mono', 'Outfit', monospace;
    font-size: 0.8rem;
    font-weight: 800;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.cert-switcher-tab.active .tab-index {
    opacity: 1;
    color: var(--accent-color, #ff5757);
}

.cert-switcher-tab .tab-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cert-switcher-tab .tab-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.cert-switcher-tab .tab-tag {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.cert-switcher-tab.active .tab-tag {
    color: rgba(255, 255, 255, 0.8);
}

.cert-switcher-tab .tab-progress-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.5px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-color, #ff5757), #ff8f8f);
    border-radius: 4px;
    transition: width 0.2s linear;
}

.cert-switcher-tab.active .tab-progress-line {
    animation: cert-tab-fill 7s linear forwards;
}

@keyframes cert-tab-fill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.cert-switcher-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Carousel Container & Transitions --- */
.cyber-cert-carousel {
    position: relative;
    z-index: 2;
}

.cyber-cert-carousel .carousel-inner {
    overflow: visible;
}

.cyber-cert-carousel .carousel-item {
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Cyber Cert Card (Showcase Canvas) --- */
.cyber-cert-card {
    position: relative;
    background: rgba(12, 12, 16, 0.72);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    overflow: hidden;
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    isolation: isolate;
}

/* Ambient Card Backdrop Layer */
.cyber-cert-card .card-ambient-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cyber-cert-card .card-ambient-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.12;
    filter: blur(40px) saturate(160%);
    transform: scale(1.15);
    transition: transform 1.2s ease, opacity 0.8s ease;
}

.cyber-cert-carousel .carousel-item.active .card-ambient-backdrop img {
    transform: scale(1.05);
    opacity: 0.16;
}

/* Card Content Grid */
.cert-content-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1.25fr;
    gap: 40px;
    padding: 48px 50px;
    align-items: center;
    min-height: 560px;
}

/* Left: Certification Story & Details Column */
.cert-story-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 20px;
}

.cert-tag-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cert-provider-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e2e8f0;
}

.cert-provider-pill i {
    color: var(--accent-color, #ff5757);
}

.cert-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 87, 87, 0.1);
    border: 1px solid rgba(255, 87, 87, 0.25);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ff8f8f;
}

.cert-display-title {
    font-size: clamp(2.2rem, 3.6vw, 3.2rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 0;
    color: #ffffff;
    text-align: left;
    width: 100%;
}

.cert-display-title .accent-word {
    background: linear-gradient(135deg, var(--accent-color, #ff5757) 0%, #ff8f8f 60%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cert-summary-text {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    max-width: 480px;
    text-align: left;
}

/* Competency Metrics Cluster */
.cert-metrics-cluster {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 100%;
}

/* Tech Chips */
.cert-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Actions Row */
.cert-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

/* Right: 3D Interactive Certificate Mockup Frame */
.cert-mockup-col {
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1600px;
}

.cert-frame-wrap {
    position: relative;
    width: 100%;
    max-width: 580px;
    background: #111116;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.9),
        0 20px 40px -15px var(--accent-glow, rgba(255, 87, 87, 0.35)),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cert-frame-wrap:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.95),
        0 30px 60px -15px var(--accent-glow, rgba(255, 87, 87, 0.45)),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.cert-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cert-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #08080a;
}

.cert-screen img.cert-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-frame-wrap:hover .cert-screen img.cert-main-img {
    transform: scale(1.04);
}

/* Floating Holographic Credly Badge Overlay */
.featured-badge-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-badge-overlay:hover {
    background: rgba(20, 20, 28, 0.95);
    border-color: var(--accent-color, #ff5757);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px var(--accent-glow, rgba(255, 87, 87, 0.4));
}

.featured-badge-overlay img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.badge-verify-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
}

.cert-ambient-reflection {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Slide Transition Choreography --- */
.cyber-cert-carousel .carousel-item .cert-tag-cluster,
.cyber-cert-carousel .carousel-item .cert-display-title,
.cyber-cert-carousel .carousel-item .cert-summary-text,
.cyber-cert-carousel .carousel-item .cert-metrics-cluster,
.cyber-cert-carousel .carousel-item .cert-tech-chips,
.cyber-cert-carousel .carousel-item .cert-actions-row,
.cyber-cert-carousel .carousel-item .cert-mockup-col {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-cert-carousel .carousel-item.active .cert-tag-cluster {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.cyber-cert-carousel .carousel-item.active .cert-display-title {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.cyber-cert-carousel .carousel-item.active .cert-summary-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.18s;
}

.cyber-cert-carousel .carousel-item.active .cert-metrics-cluster {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.24s;
}

.cyber-cert-carousel .carousel-item.active .cert-tech-chips {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.cyber-cert-carousel .carousel-item.active .cert-actions-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.36s;
}

.cyber-cert-carousel .carousel-item.active .cert-mockup-col {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATION & IPHONE SE (375px & 320px) SPECS
   ========================================================================== */

@media (max-width: 1199px) {
    .cert-content-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        padding: 40px;
    }
}

@media (max-width: 991px) {
    .cyber-certifications-showcase .premium-section-header {
        margin-bottom: 30px;
    }

    .cyber-certifications-showcase .heading-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .cert-content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 30px 24px;
        min-height: auto;
    }

    .cert-mockup-col {
        order: -1;
        perspective: none;
    }

    .cert-frame-wrap {
        transform: none !important;
        max-width: 100%;
    }

    .cert-story-col {
        align-items: flex-start;
        text-align: left;
        gap: 16px;
    }

    .cert-summary-text {
        max-width: 100%;
        text-align: left;
    }
}

/* Tablet & Mobile Layout */
@media (max-width: 767px) {
    .cyber-certifications-showcase {
        padding: 60px 0 45px;
    }

    .cyber-certifications-showcase .heading-title-large {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .cyber-certifications-showcase .heading-footer #allCertsBtn {
        width: 100%;
        justify-content: center;
    }

    .cert-switcher-dock {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 8px 10px;
        border-radius: 16px;
        margin-bottom: 20px;
    }

    .cert-switcher-track {
        overflow-x: auto;
        padding-bottom: 6px;
        gap: 6px;
    }

    .cert-switcher-tab {
        padding: 7px 12px;
        border-radius: 10px;
        gap: 8px;
    }

    .cert-switcher-tab .tab-index {
        font-size: 0.75rem;
    }

    .cert-switcher-tab .tab-title {
        font-size: 0.78rem;
    }

    .cert-switcher-tab .tab-tag {
        font-size: 0.65rem;
    }

    .cert-switcher-controls {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-top: 8px;
        justify-content: space-between;
    }

    .cyber-cert-card {
        border-radius: 22px;
    }

    .cert-content-grid {
        padding: 20px 16px;
        gap: 22px;
    }

    .cert-display-title {
        font-size: 1.85rem;
        letter-spacing: -0.8px;
        text-align: left;
    }

    .cert-summary-text {
        font-size: 0.92rem;
        line-height: 1.6;
        text-align: left;
    }

    .cert-metrics-cluster {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .cert-actions-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .cert-actions-row .btn {
        width: 100%;
        justify-content: center;
    }

    .cert-screen {
        aspect-ratio: 16 / 10;
    }

    .featured-badge-overlay {
        bottom: 10px;
        right: 10px;
        padding: 4px 8px;
    }

    .featured-badge-overlay img {
        width: 22px;
        height: 22px;
    }

    .badge-verify-label {
        font-size: 0.64rem;
    }
}

/* ==========================================================================
   IPHONE SE (375px & 320px) ULTRA-COMPACT TUNING
   ========================================================================== */
@media (max-width: 400px) {
    .cyber-certifications-showcase {
        padding: 45px 0 35px;
    }

    .cyber-certifications-showcase .heading-eyebrow {
        padding: 5px 12px;
        font-size: 0.72rem;
        gap: 6px;
        margin-bottom: 12px;
        white-space: nowrap;
    }

    .cyber-certifications-showcase .heading-title-large {
        font-size: 1.75rem;
        letter-spacing: -0.6px;
        margin-bottom: 10px;
    }

    .cyber-certifications-showcase .heading-subtitle {
        font-size: 0.85rem;
        line-height: 1.55;
        text-align: left;
    }

    .cert-switcher-dock {
        padding: 6px 8px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    .cert-switcher-tab {
        padding: 6px 10px;
    }

    .cert-switcher-tab .tab-title {
        font-size: 0.74rem;
    }

    .cyber-cert-card {
        border-radius: 18px;
    }

    .cert-content-grid {
        padding: 16px 12px;
        gap: 16px;
    }

    .cert-frame-wrap {
        border-radius: 12px;
    }

    .cert-window-header {
        padding: 7px 10px;
    }

    .cert-window-header .window-url-bar {
        font-size: 0.62rem;
        padding: 2px 6px;
    }

    .cert-window-header .window-dots .dot {
        width: 6px;
        height: 6px;
    }

    .cert-provider-pill {
        padding: 4px 8px;
        font-size: 0.66rem;
    }

    .cert-status-pill {
        padding: 4px 7px;
        font-size: 0.62rem;
    }

    .cert-display-title {
        font-size: 1.55rem;
        letter-spacing: -0.5px;
        text-align: left;
    }

    .cert-summary-text {
        font-size: 0.85rem;
        line-height: 1.5;
        text-align: left;
    }

    .cert-metrics-cluster {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .cert-metrics-cluster .metric-card {
        padding: 7px 5px;
        border-radius: 8px;
    }

    .cert-metrics-cluster .metric-val {
        font-size: 0.95rem;
    }

    .cert-metrics-cluster .metric-lbl {
        font-size: 0.58rem;
        line-height: 1.15;
    }

    .cert-tech-chips .tech-chip {
        padding: 4px 8px;
        font-size: 0.68rem;
    }

    .cert-actions-row {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .cert-actions-row .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 14px;
    }
}