:root {
    --bg: #f7f7f5;
    --ink: #111111;
    --muted: #7a7a7a;
    --line: rgba(17, 17, 17, 0.12);
    --shadow: 0 24px 50px rgba(17, 17, 17, 0.08);
    --accent: #c1121f;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font-family: "Manrope", "Segoe UI", sans-serif;
    overflow: hidden;
}

.app {
    min-height: 100vh;
    width: 100%;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px 10px;
    background: linear-gradient(180deg, rgba(247, 247, 245, 0.92) 0%, rgba(247, 247, 245, 0) 100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: grid;
    place-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ink);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-family: "Space Grotesk", sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.brand-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #ffffff;
    display: grid;
    place-items: center;
    color: var(--ink);
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(17, 17, 17, 0.35);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
}

.icon-btn svg.is-fill {
    fill: currentColor;
    stroke: none;
}

.status-pill {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    background: #ffffff;
}

.status-pill.connected {
    color: #1f7a48;
}

.status-pill.error {
    color: #b42318;
}

.stage {
    position: relative;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

.scene {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#viewer {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Welcome card ────────────────────────────────────────── */
.speech-stack {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.speech-bubble {
    text-align: center;
    width: min(340px, 88vw);
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 20px;
    border: none;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms ease, transform 500ms ease;
}

/* Hide the connector dots entirely */
.speech-connector {
    display: none;
}

.speech-bubble p {
    margin: 0 0 4px;
}

.speech-bubble p:last-child {
    margin-bottom: 0;
}

.speech-bubble.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
}

.speech-bubble.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Cinematic split-side conversation cards ─────────────── */
.conv-card {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    max-width: 240px;
    padding: 18px 22px;
    border-radius: 18px;
    border: none;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.conv-card.is-visible {
    opacity: 1;
}

.conv-card.is-fading {
    opacity: 0 !important;
    transition: opacity 0.6s ease;
}

.conv-label {
    font-size: 9px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 8px;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    display: block;
}

/* User card — LEFT side */
.conv-card.user {
    left: 10%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.07);
    transform: translateY(-50%) translateX(-20px);
}

.conv-card.user.is-visible {
    transform: translateY(-50%) translateX(0);
}

.conv-card.user.is-fading {
    transform: translateY(-50%) translateX(-16px);
}

.conv-text.user {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    line-height: 1.4;
    margin: 0;
}

/* AI card — RIGHT side */
.conv-card.assistant {
    right: 10%;
    left: auto;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: -6px 0 28px rgba(0, 0, 0, 0.06);
    transform: translateY(-50%) translateX(20px);
}

.conv-card.assistant.is-visible {
    transform: translateY(-50%) translateX(0);
}

.conv-card.assistant.is-fading {
    transform: translateY(-50%) translateX(16px);
}

.conv-text.assistant {
    font-weight: 300;
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    
    -webkit-line-clamp: 4;
   
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.avatar-state {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 2;
}

.controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(720px, 92vw);
    z-index: 2;
}

.talk-btn {
    padding: 12px 28px;
    border-radius: 999px;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

.talk-btn:hover {
    transform: translateY(-1px);
}

.talk-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
}

.input-shell {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 32px rgba(17, 17, 17, 0.08);
}

.input-shell.is-hidden {
    display: none;
}

#textInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--ink);
    font-size: 15px;
    font-family: inherit;
}

#textInput::placeholder {
    color: #8a8a8a;
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #111111;
    background: #111111;
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 160ms ease;
}

.send-btn:hover {
    transform: translateY(-1px);
}

.send-btn svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 900px) {
    .topbar {
        padding: 12px 18px 8px;
    }

    /* Remove outdated message-layer and speech-stack overrides */
    .speech-stack {
        bottom: 160px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .top-actions {
        width: 100%;
        justify-content: space-between;
    }

    .speech-stack {
        bottom: 160px;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .controls {
        width: min(92vw, 520px);
    }

    /* Mobile: stack conv-cards vertically at bottom center */
    .conv-card {
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: 130px;
        transform: translateX(-50%) !important;
        width: min(88vw, 320px);
        max-width: none;
        text-align: center;
    }

    .conv-card.user {
        bottom: 200px;
        transform: translateX(-50%) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    }

    .conv-card.assistant {
        bottom: 130px;
        transform: translateX(-50%) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.05);
    }

    .conv-card.user.is-visible,
    .conv-card.assistant.is-visible {
        transform: translateX(-50%) !important;
    }

    .conv-card.user.is-fading,
    .conv-card.assistant.is-fading {
        transform: translateX(-50%) translateY(10px) !important;
    }

    /* Mobile: smaller floating icons */
    .floating-skill {
        width: 44px;
        height: 44px;
        padding: 8px;
        border-radius: 12px;
    }
}

.floating-skill {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
    padding: 12px;
    z-index: 15;
    pointer-events: none;
    animation: ambientFloat 12s ease-in-out infinite alternate;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.floating-skill.is-visible {
    opacity: 1;
}

.floating-skill img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
}

.skill-badge-text {
    font-family: "Space Grotesk", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #444;
    text-align: center;
    line-height: 1;
    margin-top: 4px;
}

@keyframes ambientFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-80px) rotate(10deg);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0.5) rotate(-5deg);
    }
    10% {
        opacity: 1;
        transform: translateY(-20vh) scale(1) rotate(0deg);
    }
    80% {
        opacity: 1;
        transform: translateY(-70vh) scale(1) rotate(5deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-110vh) scale(1.1) rotate(8deg);
    }
}

/* ── Intro Overlay ────────────────────────────────────────────────────────── */

#introOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1),
                opacity   0.85s cubic-bezier(0.76, 0, 0.24, 1);
}

#introScreen1,
#introScreen2 {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    user-select: none;
}

#introGreet {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--muted);
    min-height: 1.2em;
    line-height: 1.2;
    margin-bottom: 2px;
}

#introName {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ink);
    min-height: 1.2em;
    line-height: 1.2;
}

#introSub {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.95rem, 2.2vw, 1.3rem);
    font-weight: 500;
    color: var(--muted);
    margin-top: 12px;
    min-height: 1.5em;
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 0.01em;
}

#introCursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: middle;
    animation: cursorBlink 0.9s step-end infinite;
}



@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── Project Orbit Cards ──────────────────────────────────────────────────── */

.project-orbit-card {
    position: absolute;
    width: 196px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 16px;
    padding: 14px 16px;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(17, 17, 17, 0.07);
    z-index: 30;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.project-orbit-card:hover {
    box-shadow: 0 12px 36px rgba(193, 18, 31, 0.12), 0 0 0 1.5px rgba(193, 18, 31, 0.3);
    border-color: rgba(193, 18, 31, 0.25);
    transform: translateY(-3px) scale(1.02) !important;
}

.poc-type {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.poc-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin-bottom: 6px;
}

.poc-summary {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.poc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.poc-chip {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.06);
    color: var(--ink);
    letter-spacing: 0.02em;
}

/* ── Single Project Card ──────────────────────────────────────────────────── */

.single-project-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    opacity: 0;
    width: 95%;
    max-width: 1160px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 40;
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none; /* Let clicks pass through center */
}

.single-project-card.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.spc-pane {
    pointer-events: auto; /* Re-enable clicks */
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(17, 17, 17, 0.10);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
    width: 380px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.spc-pane-right {
    position: relative;
    background: rgba(247, 247, 245, 0.95);
}

.spc-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(17, 17, 17, 0.05);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: var(--ink);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.spc-close:hover {
    background: rgba(193, 18, 31, 0.1);
    color: var(--accent);
    transform: scale(1.05);
}

.spc-type {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.spc-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    margin-bottom: 16px;
}

.spc-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.spc-section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.spc-features {
    font-size: 13px;
    color: var(--ink);
    line-height: 1.5;
    padding-left: 18px;
    margin: 0;
}

.spc-features li {
    margin-bottom: 6px;
}

.spc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spc-chip {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.08);
    color: var(--ink);
}

.spc-links {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spc-btn {
    display: block;
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.spc-btn:hover {
    background: #333;
    transform: translateY(-2px);
}

.spc-btn.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.spc-btn.secondary:hover {
    background: rgba(17, 17, 17, 0.04);
}

/* Mobile responsive single card */
@media (max-width: 768px) {
    .single-project-card {
        flex-direction: column;
        width: 92%;
        max-height: 85vh;
        overflow-y: auto;
    }
    .spc-left {
        border-right: none;
        border-bottom: 1px solid rgba(17, 17, 17, 0.08);
        padding: 24px;
    }
    .spc-right {
        padding: 24px;
    }
    .spc-name {
        font-size: 22px;
    }
}

/* Mobile: horizontal scroll strip at the bottom */
@media (max-width: 639px) {
    .project-orbit-card {
        position: relative;
        width: 160px;
        flex-shrink: 0;
        top: auto !important;
        left: auto !important;
        right: auto !important;
    }

    .stage {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
    }
    
    .project-orbit-container {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        gap: 16px;
        padding: 0 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        z-index: 30;
    }
    .project-orbit-card {
        scroll-snap-align: center;
        transform: none !important;
    }
}

.hide-conv #convLeft,
.hide-conv #convRight {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(20px) !important;
}

/* ── Experience Timeline ──────────────────────────────────────────────────── */

.experience-timeline {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    max-height: 75vh;
    overflow-y: auto;
    padding: 20px 0;
    pointer-events: auto;
    z-index: 100;
    scrollbar-width: none;
}

.experience-timeline::-webkit-scrollbar {
    display: none;
}

.timeline-container {
    position: relative;
    padding-left: 24px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 4px;
    width: 2px;
    background: rgba(0, 0, 0, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateX(-40px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.timeline-item.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    left: -25px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.timeline-item.milestone .timeline-dot {
    background: #fff;
    border: 2px solid #000;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.timeline-item.milestone .timeline-content {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 4px 12px;
}

.timeline-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.timeline-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .experience-timeline {
        left: 20px;
        width: calc(100% - 40px);
        background: rgba(255,255,255,0.85);
        border-radius: 20px;
        padding: 20px;
    }
}

.cert-grid-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.cert-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cert-card {
    position: relative;
    width: 240px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    z-index: 100;
    pointer-events: auto;
}

.cert-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1) !important;
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cert-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.cert-provider {
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cert-name {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    line-height: 1.25;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.cert-skill-chip {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.cert-verify-btn {
    margin-top: auto;
    padding: 8px 0;
    width: 100%;
    background: transparent;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cert-verify-btn:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.4);
}

/* ── Skills Bento Grid ────────────────────────────────────────────── */

.skills-bento-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8%;
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bento-panel {
    position: relative;
    width: 320px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    z-index: 100;
    pointer-events: auto;
}

.bento-panel.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bento-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 12px;
}

.bento-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-chip {
    font-size: 0.8rem;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    color: #222;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    cursor: default;
}

.bento-chip:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .cert-card {
        position: relative;
        width: calc(100% - 40px);
        margin: 10px 20px;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: translateY(20px) !important;
    }
    
    .cert-grid-container {
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
        padding: 80px 0;
        z-index: 100;
    }
}
