/* ==========================================================================
   Portfolio – FISI Bewerbungs-Webseite
   ========================================================================== */

:root {
    --color-brand: #0ea5e9;
    --color-brand-hover: #0284c7;
    --color-brand-dark: #0f172a;
    --color-bg: #f8fafc;
    --color-bg-white: #ffffff;
    --color-bg-light: #f1f5f9;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #94a3b8;
    --color-border: #e2e8f0;
    --color-indigo: #312e81;
    --color-emerald: #064e3b;
    --font-sans: "Inter", system-ui, sans-serif;
    --container-max: 80rem;
    --section-py: 5rem;
    --radius: 1rem;
    --radius-sm: 0.5rem;
    --shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
    --header-h: 4rem;
    --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; }

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Blobs */
.blobs-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    width: 100%;
    max-width: 100%;
}
.blob {
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}
.blob--top-left {
    background: var(--color-brand);
    top: 0; left: 0;
    transform: translate(-50%, -50%);
}
.blob--bottom-right {
    background: #60a5fa;
    bottom: 0; right: 0;
    transform: translate(10%, 10%);
}

/* Utilities */
.text-gradient {
    background: linear-gradient(to right, var(--color-brand), #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-brand { color: var(--color-brand); }

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-brand-dark);
}

.logo__icon { color: var(--color-brand); font-size: 1.5rem; }

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    padding: 0.25rem;
}
.nav-toggle:hover { color: var(--color-brand); }

.site-header__actions {
    display: none;
    align-items: center;
    gap: 2rem;
}

.main-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.main-nav a {
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--color-brand); }

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border);
}
.lang-switch__sep { color: var(--color-border); font-size: 0.875rem; }
.lang-btn {
    font-size: 0.875rem;
    opacity: 0.5;
    transition: opacity var(--transition), color var(--transition);
}
.lang-btn.active {
    opacity: 1;
    font-weight: 700;
    color: var(--color-brand);
}

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .site-header__actions {
        display: flex;
    }
    .main-nav {
        flex-direction: row;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    .site-header__actions {
        position: absolute;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 1.5rem 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow);
    }
    .site-header__actions.is-open { display: flex; }
    .lang-switch {
        border-left: none;
        padding-left: 0;
        justify-content: center;
    }
}

/* Sections */
.section { padding: var(--section-py) 0; }
.section--white { background: var(--color-bg-white); border-top: 1px solid var(--color-border); }
.section--light { background: var(--color-bg-light); }
.section--dark {
    background: var(--color-brand-dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header--light .section-title { color: #fff; }
.section-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--color-brand-dark);
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 auto 1.5rem;
}
.section-header__line {
    width: 5rem;
    height: 4px;
    background: var(--color-brand);
    border-radius: 999px;
    margin: 0 auto;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 4rem);
    padding-bottom: 5rem;
}

.hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.hero__media { position: relative; display: flex; justify-content: center; order: -1; }
.hero__glow {
    position: absolute;
    inset: 0;
    max-width: 20rem;
    margin: auto;
    background: linear-gradient(to top right, var(--color-brand), #93c5fd);
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.2;
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.25; } }

/* Hero Tech Carousel (Creative, dynamic multi-slide replacement for photo) */
.hero-tech-card {
    position: relative;
    width: 100%;
    max-width: 26rem;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(14, 165, 233, 0.35);
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.5), 0 0 30px rgba(14, 165, 233, 0.15);
    color: #e2e8f0;
    overflow: hidden;
    z-index: 1;
    animation: floatCard 6s ease-in-out infinite;
    text-align: left;
    user-select: none;
}

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

.tech-card__slides {
    position: relative;
    width: 100%;
}

.tech-card-slide {
    display: none;
    width: 100%;
}

.tech-card-slide.is-active {
    display: block;
    animation: slideFadeIn 0.35s ease-out forwards;
}

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

.tech-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(30, 41, 59, 0.9);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.tech-card__dots {
    display: flex;
    gap: 0.375rem;
}
.dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    display: inline-block;
}
.dot--red { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green { background: #10b981; }

.tech-card__title {
    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.tech-card__title i { color: var(--color-brand); }

.tech-card__badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-family: monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
.badge--green {
    color: #4ade80;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.3);
}
.badge--cyan {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge--purple {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.3);
}
.badge--amber {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.pulse-indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}
.pulse--green { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.pulse--cyan { background: #38bdf8; box-shadow: 0 0 8px #38bdf8; }
.pulse--purple { background: #c084fc; box-shadow: 0 0 8px #c084fc; }
.pulse--amber { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.tech-card__body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tech-card__sysinfo {
    font-family: monospace;
    font-size: 0.74rem;
    line-height: 1.55;
    background: rgba(2, 6, 23, 0.6);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(51, 65, 85, 0.6);
}
.sysinfo-row {
    display: flex;
    justify-content: space-between;
}
.sysinfo-label { color: #64748b; font-weight: 600; }
.sysinfo-val { color: #cbd5e1; }
.text-cyan { color: #38bdf8 !important; }
.text-purple { color: #c084fc !important; }
.text-amber { color: #fbbf24 !important; }

.tech-card__modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.module-chip {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #e2e8f0;
    transition: border-color var(--transition), transform var(--transition);
}
.module-chip:hover {
    border-color: var(--color-brand);
    transform: translateY(-2px);
}
.module-chip i { color: var(--color-brand); font-size: 0.82rem; }

.tech-card__terminal {
    font-family: monospace;
    font-size: 0.7rem;
    background: #020205;
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.term-line { display: flex; gap: 0.4rem; align-items: baseline; }
.term-prompt { color: var(--color-brand); font-weight: 700; }
.term-cmd { color: #94a3b8; }
.term-res { color: #38bdf8; margin-left: auto; }
.term-active { color: #4ade80; font-weight: 600; }

/* Carousel Controls & Progress */
.tech-card__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(51, 65, 85, 0.5);
}
.card-nav-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}
.card-nav-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.25s ease;
}
.card-nav-dot:hover {
    background: rgba(148, 163, 184, 0.7);
}
.card-nav-dot.is-active {
    width: 1.4rem;
    background: var(--color-brand);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}
.card-nav-meta {
    font-family: monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}
.tech-card__progress {
    width: 100%;
    height: 3px;
    background: rgba(30, 41, 59, 0.7);
    position: relative;
    overflow: hidden;
}
.tech-card__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-brand), #38bdf8);
    transition: width 0.08s linear;
}

.hero__eyebrow {
    color: var(--color-brand);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero__title {
    font-size: clamp(2.5rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-brand-dark);
    margin-bottom: 1.5rem;
}
.hero__desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 36rem;
    margin: 0 auto 1rem;
}
@media (min-width: 768px) {
    .hero__desc { margin-left: 0; margin-right: 0; margin-bottom: 0; }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all var(--transition);
}
.btn--primary {
    background: var(--color-brand);
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}
.btn--primary:hover { background: var(--color-brand-hover); }
.btn--secondary {
    background: #fff;
    color: var(--color-text);
    border: 2px solid var(--color-border);
}
.btn--secondary:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}
.btn--apk {
    width: 100%;
    background: #10b981;
    color: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}
.btn--apk:hover { background: #059669; }

@media (min-width: 640px) {
    .hero__actions { flex-direction: row; justify-content: center; }
    .hero-tech-card { max-width: 25rem; }
}
@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .hero__media { order: 2; }
    .hero__desc { margin-left: 0; margin-right: 0; }
    .hero__actions { justify-content: flex-start; }
    .hero-tech-card { max-width: 27rem; }
}

/* About */
.about__text {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}
@media (min-width: 768px) { .about__text { text-align: left; } }

/* Languages */
.lang-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: stretch;
}
@media (min-width: 768px) {
    .lang-grid { grid-template-columns: repeat(3, 1fr); }
}

.lang-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.lang-card:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow);
}

.lang-card__flag {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    margin-bottom: 1rem;
}
.lang-card__flag-emoji {
    font-size: 2.75rem;
    line-height: 1;
}

.lang-card__name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.lang-card__level {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.lang-card__bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 999px;
    overflow: hidden;
    margin-top: auto;
}
.lang-card__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(to right, var(--color-brand), #3b82f6);
    border-radius: 999px;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .skills-grid { grid-template-columns: repeat(4, 1fr); }
}

.skill-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: border-color var(--transition);
}
.skill-card:hover { border-color: var(--color-brand); }
.skill-card__icon {
    font-size: 2.25rem;
    color: var(--color-brand);
    margin-bottom: 1rem;
    display: block;
    transition: transform var(--transition);
}
.skill-card:hover .skill-card__icon { transform: scale(1.1); }
.skill-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.skill-card p { font-size: 0.75rem; color: var(--color-text-muted); }

/* Projects */
.projects-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .projects-grid { grid-template-columns: repeat(3, 1fr); }
}

.project-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}
.project-card--wip {
    opacity: 0.75;
    cursor: default;
}
.project-card--wip:hover {
    transform: none;
    box-shadow: none;
}

.project-card__header {
    height: 12rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    overflow: hidden;
}
.project-card__header--dark { background: #1e293b; }
.project-card__header--indigo { background: var(--color-indigo); }
.project-card__header--emerald { background: var(--color-emerald); }

.project-card__header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}
.project-card__bg-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.35;
    transition: transform 0.5s ease;
}
.project-card:hover .project-card__bg-icon { transform: translate(-50%, -50%) scale(1.1); }

.project-card__badge {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    z-index: 1;
    background: var(--color-brand);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}
.project-card__badge--wip {
    background: #fbbf24;
    color: var(--color-indigo);
}
.project-card__header h3 {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.project-card__body { padding: 1.5rem; }
.project-card__body p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.625rem;
    border-radius: var(--radius-sm);
}
.tag--blue { background: #eff6ff; color: var(--color-brand); }
.tag--indigo { background: #eef2ff; color: #4f46e5; }
.tag--emerald { background: #ecfdf5; color: #059669; }

/* CV */
.cv__deco {
    position: absolute;
    top: 1rem;
    right: -1rem;
    font-size: 20rem;
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
}
.cv__inner { position: relative; z-index: 1; }

.cv-grid {
    display: grid;
    gap: 3rem;
}
@media (min-width: 768px) {
    .cv-grid { grid-template-columns: 1fr 1fr; }
}

.cv-block-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}
.cv-block-title i { color: var(--color-brand); }
.cv-block-title--spaced { margin-top: 3rem; }

.timeline {
    border-left: 2px solid #374151;
    margin-left: 0.75rem;
    padding-left: 0;
}
.timeline__item {
    position: relative;
    margin-bottom: 2rem;
    margin-left: 1.5rem;
}
.timeline__item::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 4px solid var(--color-brand-dark);
    background: var(--color-brand);
}
.timeline__item--muted::before { background: #4b5563; }

.timeline__date {
    display: block;
    color: var(--color-brand);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}
.timeline__date--muted { color: var(--color-text-light); }
.timeline__item h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.timeline__item p { font-size: 0.875rem; color: var(--color-text-light); }

.cert-list { display: flex; flex-direction: column; gap: 1rem; }
.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: var(--radius);
    transition: border-color var(--transition);
}
.cert-item:hover { border-color: var(--color-brand); }
.cert-item--subtle { background: rgba(31, 41, 55, 0.5); }
.cert-item__icon {
    font-size: 1.5rem;
    color: var(--color-brand);
    margin-top: 0.125rem;
    flex-shrink: 0;
}
.cert-item__icon--muted { color: var(--color-text-light); }
.cert-item h4 { font-weight: 700; margin-bottom: 0.25rem; }
.cert-item__meta { font-size: 0.875rem; color: var(--color-text-light); }
.cert-note {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: 1rem;
    font-style: italic;
}
.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.cert-badge--progress {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.cert-badge--progress .pulse-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
    animation: pulseDot 2s infinite;
}
.cert-item--interactive {
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.cert-item--interactive:hover {
    border-color: var(--color-brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}
.cert-badge--interactive {
    background: rgba(14, 165, 233, 0.15);
    color: var(--color-brand);
    border: 1px solid rgba(14, 165, 233, 0.35);
    transition: background var(--transition), color var(--transition);
}
.cert-item--interactive:hover .cert-badge--interactive {
    background: var(--color-brand);
    color: #fff;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}
.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal__panel {
    background: #fff;
    width: 100%;
    max-width: 64rem;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
}
.modal.open .modal__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    background: #f9fafb;
}
.modal__header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-brand-dark);
    padding-right: 1rem;
}
.modal__close {
    font-size: 1.5rem;
    color: var(--color-text-light);
    padding: 0.25rem;
    flex-shrink: 0;
}
.modal__close:hover { color: #ef4444; }

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal__body--grid {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .modal__body--grid { grid-template-columns: 1fr 1fr; }
}

.modal__media img {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 0.5rem;
}
.modal__media--center {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.modal__hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.modal__text h4 {
    color: var(--color-brand);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}
.modal__text h4:first-child { margin-top: 0; }
.modal__text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.modal__text blockquote {
    border-left: 4px solid var(--color-brand);
    padding-left: 1rem;
    font-style: italic;
    color: var(--color-text-muted);
}
.modal__text--emerald h4 { color: #059669; }
.modal__text--emerald blockquote { border-left-color: #10b981; }
.modal__text--indigo h4 { color: #4f46e5; }
.modal__text--indigo blockquote { border-left-color: #6366f1; }

/* Footer */
.site-footer {
    background: #111827;
    color: var(--color-text-light);
    padding: 2rem 0;
    text-align: center;
}
.social-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.social-nav a {
    font-size: 1.25rem;
    transition: color var(--transition);
}
.social-nav a:hover { color: var(--color-brand); }

/* ==========================================================================
   Custom Game Play Wrapper & Retro Terminal Styles
   ========================================================================== */
.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 568px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 4px solid #1e293b;
    background: #000;
}
.game-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.game-play-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b0f19, #020205);
    color: #fff;
    cursor: pointer;
    text-align: center;
    padding: 2rem;
    box-sizing: border-box;
    transition: opacity var(--transition);
}
.game-play-placeholder:hover {
    opacity: 0.9;
}
.game-play-btn {
    background: linear-gradient(90deg, #00d2ff, #0066ff);
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 0 15px rgba(0,210,255,0.6);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 1rem;
    transition: transform var(--transition);
}
.game-play-placeholder:hover .game-play-btn {
    transform: scale(1.05);
}
.star-btn {
    cursor: pointer;
    transition: color var(--transition);
}
.star-btn.active {
    color: #ffd700 !important;
}

/* Terminal Line Formatting */
.terminal-line {
    line-height: 1.4;
    word-break: break-all;
    white-space: pre-wrap;
}
.terminal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    color: #00ffcc;
}
.terminal-table th, .terminal-table td {
    border: 1px solid #112244;
    padding: 0.25rem 0.5rem;
    text-align: left;
}
.terminal-table th {
    background: #090915;
    color: #00d2ff;
}

