/* ========================================================
   IDN PORTOFOLIO - MODERN LANDING PAGE DESIGN SYSTEM
   ======================================================== */

:root {
    --lp-primary: #1d72b8;
    --lp-primary-hover: #155e8a;
    --lp-primary-rgb: 29, 114, 184;
    --lp-accent: #06b6d4;
    --lp-accent-rgb: 6, 182, 212;
    --lp-dark-text: #0f172a;
    --lp-muted-text: #64748b;
    --lp-card-bg: #ffffff;
    --lp-card-border: rgba(226, 232, 240, 0.85);
    --lp-card-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.08);
    --lp-card-hover-shadow: 0 20px 40px -10px rgba(29, 114, 184, 0.16);
    --lp-glass-bg: rgba(255, 255, 255, 0.85);
    --lp-glass-border: rgba(255, 255, 255, 0.7);
}

/* Dark Mode Variables */
html.theme-dark,
body.theme-dark,
[data-bs-theme="dark"] {
    --lp-primary: #38bdf8;
    --lp-primary-hover: #7dd3fc;
    --lp-primary-rgb: 56, 189, 248;
    --lp-accent: #22d3ee;
    --lp-accent-rgb: 34, 211, 238;
    --lp-dark-text: #f8fafc;
    --lp-muted-text: #94a3b8;
    --lp-card-bg: rgba(22, 29, 44, 0.85);
    --lp-card-border: rgba(255, 255, 255, 0.08);
    --lp-card-shadow: 0 14px 34px -10px rgba(0, 0, 0, 0.7);
    --lp-card-hover-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.85), 0 0 30px rgba(56, 189, 248, 0.16);
    --lp-glass-bg: rgba(20, 26, 39, 0.82);
    --lp-glass-border: rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------- */
.hero-wrapper {
    position: relative;
    padding: 3.5rem 1rem 2.5rem;
    overflow: hidden;
    text-align: center;
}

/* Ambient Background Glows */
.hero-glow-1,
.hero-glow-2 {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
}

.hero-glow-1 {
    top: -60px;
    left: 10%;
    background: radial-gradient(circle, rgba(29, 114, 184, 0.35), transparent 70%);
}

.hero-glow-2 {
    top: -20px;
    right: 10%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

/* Brand badge in hero */
.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--lp-card-border);
    padding: 6px 14px;
    border-radius: 4px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-primary);
    box-shadow: 0 4px 15px rgba(29, 114, 184, 0.08);
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.hero-badge-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 114, 184, 0.15);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background-color: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
    color: var(--lp-dark-text);
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, #1d72b8 0%, #0284c7 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html.theme-dark .text-gradient,
body.theme-dark .text-gradient,
[data-bs-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem);
    color: var(--lp-muted-text);
    line-height: 1.65;
    max-width: 680px;
    margin: 0 auto 2rem;
    font-weight: 400;
}

/* Hero Stats Counter Pills */
.hero-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.hero-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--lp-glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--lp-card-border);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.88rem;
    color: var(--lp-dark-text);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.hero-stat-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--lp-primary-rgb), 0.3);
}

.hero-stat-icon {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: rgba(var(--lp-primary-rgb), 0.12);
    color: var(--lp-primary);
}

.hero-stat-pill strong {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--lp-primary);
}

/* --------------------------------------------------------
   SEARCH & FILTER HUB
   -------------------------------------------------------- */
.filter-hub {
    background: var(--lp-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--lp-card-border);
    border-radius: 8px;
    padding: 1.75rem;
    box-shadow: var(--lp-card-shadow);
    margin-bottom: 2.5rem;
    transition: all 0.3s ease;
}

.filter-hub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lp-card-border);
}

.filter-hub-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--lp-dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.filter-hub-title i {
    color: var(--lp-primary);
}

.btn-reset-filter {
    background: transparent;
    border: 1px solid transparent;
    color: var(--lp-muted-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-reset-filter:hover {
    color: var(--lp-primary);
    background: rgba(var(--lp-primary-rgb), 0.08);
    border-color: rgba(var(--lp-primary-rgb), 0.2);
}

/* Filter Inputs */
.custom-filter-box {
    position: relative;
    margin-bottom: 0.75rem;
}

.custom-filter-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lp-muted-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-filter-input-wrap {
    position: relative;
}

.custom-filter-input-wrap .filter-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--lp-primary);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.custom-select-control,
.custom-search-control {
    width: 100%;
    height: 48px;
    padding: 8px 16px 8px 42px;
    border-radius: 4px;
    border: 1px solid var(--lp-card-border);
    background-color: var(--lp-card-bg);
    color: var(--lp-dark-text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.25s ease;
    outline: none;
}

.custom-select-control:focus,
.custom-search-control:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 3px rgba(var(--lp-primary-rgb), 0.15);
}

/* Quick Filter Pills for Jurusan */
.quick-prodi-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--lp-card-border);
}

.quick-pill-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lp-muted-text);
    margin-right: 4px;
}

.category-chip {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid var(--lp-card-border);
    background: var(--lp-card-bg);
    color: var(--lp-dark-text);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.category-chip:hover {
    border-color: var(--lp-primary);
    color: var(--lp-primary);
    transform: translateY(-1px);
}

.category-chip.active {
    background: linear-gradient(135deg, #1d72b8 0%, #0d4e76 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(29, 114, 184, 0.25);
}

/* --------------------------------------------------------
   PORTFOLIO CARD REDESIGN
   -------------------------------------------------------- */
.portfolio-card-modern {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--lp-card-shadow);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.portfolio-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--lp-card-hover-shadow);
    border-color: rgba(var(--lp-primary-rgb), 0.35);
}

/* Thumbnail Container */
.card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

html.theme-dark .card-media-wrap,
body.theme-dark .card-media-wrap,
[data-bs-theme="dark"] .card-media-wrap {
    background: #0f172a;
}

.card-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-modern:hover .card-media-wrap img {
    transform: scale(1.06);
}

/* Floating Major / Prodi Badge */
.badge-prodi-float {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 2px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-prodi-programmer {
    background: rgba(14, 116, 144, 0.9);
    color: #ffffff;
    border: 1px solid rgba(103, 232, 249, 0.4);
}

.badge-prodi-engineer {
    background: rgba(180, 83, 9, 0.9);
    color: #ffffff;
    border: 1px solid rgba(253, 224, 71, 0.4);
}

.badge-prodi-designer {
    background: rgba(147, 51, 234, 0.9);
    color: #ffffff;
    border: 1px solid rgba(244, 114, 182, 0.4);
}

.badge-prodi-default {
    background: rgba(30, 41, 59, 0.88);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Floating Like Badge */
.like-badge-modern {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: #e11d48;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(254, 205, 211, 0.7);
    transition: all 0.25s ease;
}

html.theme-dark .like-badge-modern,
body.theme-dark .like-badge-modern,
[data-bs-theme="dark"] .like-badge-modern {
    background: rgba(30, 36, 48, 0.92);
    color: #fb7185;
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.like-badge-modern i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.portfolio-card-modern:hover .like-badge-modern i {
    transform: scale(1.18);
}

/* Card Content */
.card-content-wrap {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Author Section */
.card-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.85rem;
}

.author-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--lp-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.author-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-wrap {
    min-width: 0;
}

.author-name-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--lp-dark-text);
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.author-name-link:hover {
    color: var(--lp-primary);
}

.author-meta-text {
    font-size: 0.74rem;
    color: var(--lp-muted-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Card Title */
.card-portfolio-title {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.025em;
    color: var(--lp-dark-text);
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    transition: color 0.2s ease;
}

.card-portfolio-title a {
    color: inherit;
    text-decoration: none;
}

.card-portfolio-title a:hover {
    color: var(--lp-primary);
}

/* Card Description */
.card-portfolio-desc {
    font-size: 0.84rem;
    color: var(--lp-muted-text);
    line-height: 1.55;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.card-portfolio-desc p {
    margin-bottom: 0;
    display: inline;
}

/* Card Footer Action */
.card-action-footer {
    padding: 0.75rem 1.25rem 1.15rem;
    background: transparent;
    border-top: 1px solid var(--lp-card-border);
    margin-top: auto;
}

.btn-detail-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(var(--lp-primary-rgb), 0.08);
    color: var(--lp-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-detail-modern:hover {
    background: linear-gradient(135deg, #1d72b8 0%, #0d4e76 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(29, 114, 184, 0.25);
    border-color: transparent;
}

.btn-detail-modern i {
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.btn-detail-modern:hover i {
    transform: translateX(5px);
}

/* --------------------------------------------------------
   LOAD MORE & COUNTER SECTION
   -------------------------------------------------------- */
.load-more-section {
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
}

.data-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--lp-glass-bg);
    border: 1px solid var(--lp-card-border);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--lp-muted-text);
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.data-counter-pill strong {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--lp-primary);
    font-weight: 700;
}

.btn-load-more-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d72b8 0%, #0d4e76 100%);
    color: #ffffff;
    padding: 13px 32px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 8px 24px rgba(29, 114, 184, 0.28);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-load-more-modern:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(29, 114, 184, 0.38);
    color: #ffffff;
}

.btn-load-more-modern:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Empty State */
.empty-state-card {
    background: var(--lp-glass-bg);
    border: 1px dashed var(--lp-card-border);
    border-radius: 6px;
    padding: 4rem 2rem;
    text-align: center;
    max-width: 500px;
    margin: 2rem auto;
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    background: rgba(var(--lp-primary-rgb), 0.1);
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.empty-state-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--lp-dark-text);
    margin-bottom: 0.5rem;
}

.empty-state-desc {
    font-size: 0.92rem;
    color: var(--lp-muted-text);
    margin-bottom: 1.5rem;
}

/* --------------------------------------------------------
   HERO ACTION BUTTONS
   -------------------------------------------------------- */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #1d72b8 0%, #0d4e76 100%);
    color: #ffffff;
    padding: 12px 26px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(29, 114, 184, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(29, 114, 184, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--lp-glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--lp-card-border);
    color: var(--lp-dark-text);
    padding: 12px 26px;
    border-radius: 4px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
    color: var(--lp-primary);
    border-color: var(--lp-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 114, 184, 0.15);
}

/* --------------------------------------------------------
   MAIN SEARCH WRAPPER & SHORTCUT
   -------------------------------------------------------- */
.main-search-wrapper {
    position: relative;
    width: 100%;
}

.search-input-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-leading-icon {
    position: absolute;
    left: 18px;
    color: var(--lp-primary);
    font-size: 1.15rem;
    pointer-events: none;
    z-index: 3;
}

.main-search-field {
    width: 100%;
    height: 56px;
    padding: 12px 75px 12px 52px;
    border-radius: 4px;
    border: 1.5px solid var(--lp-card-border);
    background: var(--lp-card-bg);
    color: var(--lp-dark-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.main-search-field:focus {
    border-color: var(--lp-primary);
    box-shadow: 0 0 0 4px rgba(var(--lp-primary-rgb), 0.18), 0 8px 25px rgba(29, 114, 184, 0.1);
}

.search-kbd-hint {
    position: absolute;
    right: 18px;
    background: var(--lp-card-border);
    color: var(--lp-muted-text);
    font-family: 'Space Grotesk', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    pointer-events: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.clear-search-btn {
    position: absolute;
    right: 48px;
    background: transparent;
    border: none;
    color: var(--lp-muted-text);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.clear-search-btn:hover {
    color: #ef4444;
}

/* Category Chip Variants */
.chip-programmer.active {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 100%);
    box-shadow: 0 4px 14px rgba(14, 116, 144, 0.3);
}

.chip-engineer.active {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    box-shadow: 0 4px 14px rgba(180, 83, 9, 0.3);
}

.chip-designer.active {
    background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
    box-shadow: 0 4px 14px rgba(147, 51, 234, 0.3);
}

/* Card Hover Overlay */
.card-media-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 23, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-card-modern:hover .card-media-hover-overlay {
    opacity: 1;
}

.hover-view-label {
    background: #ffffff;
    color: var(--lp-primary);
    padding: 8px 18px;
    border-radius: 3px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transform: translateY(10px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card-modern:hover .hover-view-label {
    transform: translateY(0);
}

/* Card Detail Link */
.btn-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 3px;
    background: rgba(var(--lp-primary-rgb), 0.1);
    color: var(--lp-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-detail-link:hover {
    background: var(--lp-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 114, 184, 0.25);
}

.btn-detail-link i {
    transition: transform 0.2s ease;
}

.btn-detail-link:hover i {
    transform: translateX(4px);
}

/* --------------------------------------------------------
   COLLECTION PROGRESS BAR
   -------------------------------------------------------- */
.collection-progress-bar-wrap {
    width: 280px;
    height: 6px;
    border-radius: 2px;
    background: var(--lp-card-border);
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.collection-progress-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--lp-primary), var(--lp-accent));
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------
   SHIMMER SKELETON CARDS (Zero Layout Jump)
   -------------------------------------------------------- */
.skeleton-card {
    background: var(--lp-card-bg);
    border: 1px solid var(--lp-card-border);
    border-radius: 4px;
    overflow: hidden;
    height: 380px;
}

.skeleton-media {
    width: 100%;
    aspect-ratio: 16 / 10;
}

.skeleton-body {
    padding: 1.25rem;
}

.skeleton-avatar {
    width: 38px;
    height: 38px;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 12px;
    border-radius: 2px;
}

.skeleton-title {
    height: 20px;
    border-radius: 2px;
    width: 90%;
}

.skeleton-text {
    height: 14px;
    border-radius: 2px;
    width: 100%;
}

.shimmer {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.6) 0%, rgba(241, 245, 249, 0.9) 50%, rgba(226, 232, 240, 0.6) 100%);
    background-size: 200% 100%;
    animation: shimmerAnim 1.5s infinite linear;
}

html.theme-dark .shimmer,
body.theme-dark .shimmer,
[data-bs-theme="dark"] .shimmer {
    background: linear-gradient(90deg, rgba(30, 36, 48, 0.6) 0%, rgba(51, 65, 85, 0.8) 50%, rgba(30, 36, 48, 0.6) 100%);
    background-size: 200% 100%;
}

@keyframes shimmerAnim {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================================
   PREMIUM DARK MODE DESIGN SYSTEM & AESTHETICS
   ======================================================== */

/* Atmosphere & Hero */
html.theme-dark .hero-glow-1,
body.theme-dark .hero-glow-1,
[data-bs-theme="dark"] .hero-glow-1 {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 70%);
    opacity: 0.7;
    filter: blur(100px);
}

html.theme-dark .hero-glow-2,
body.theme-dark .hero-glow-2,
[data-bs-theme="dark"] .hero-glow-2 {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.24), transparent 70%);
    opacity: 0.7;
    filter: blur(100px);
}

html.theme-dark .hero-wrapper img[alt*="Brand"],
body.theme-dark .hero-wrapper img[alt*="Brand"],
[data-bs-theme="dark"] .hero-wrapper img[alt*="Brand"] {
    filter: drop-shadow(0 10px 25px rgba(56, 189, 248, 0.4)) !important;
}

html.theme-dark .hero-badge-pill,
body.theme-dark .hero-badge-pill,
[data-bs-theme="dark"] .hero-badge-pill {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.theme-dark .hero-stat-pill,
body.theme-dark .hero-stat-pill,
[data-bs-theme="dark"] .hero-stat-pill {
    background: rgba(22, 29, 44, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html.theme-dark .hero-stat-pill strong,
body.theme-dark .hero-stat-pill strong,
[data-bs-theme="dark"] .hero-stat-pill strong {
    color: #38bdf8;
}

html.theme-dark .hero-stat-icon,
body.theme-dark .hero-stat-icon,
[data-bs-theme="dark"] .hero-stat-icon {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
}

html.theme-dark .hero-stat-pill:hover,
body.theme-dark .hero-stat-pill:hover,
[data-bs-theme="dark"] .hero-stat-pill:hover {
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}

html.theme-dark .btn-hero-primary,
body.theme-dark .btn-hero-primary,
[data-bs-theme="dark"] .btn-hero-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

html.theme-dark .btn-hero-primary:hover,
body.theme-dark .btn-hero-primary:hover,
[data-bs-theme="dark"] .btn-hero-primary:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.55);
    color: #ffffff;
}

html.theme-dark .btn-hero-secondary,
body.theme-dark .btn-hero-secondary,
[data-bs-theme="dark"] .btn-hero-secondary {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.theme-dark .btn-hero-secondary:hover,
body.theme-dark .btn-hero-secondary:hover,
[data-bs-theme="dark"] .btn-hero-secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    background: rgba(30, 41, 59, 0.9);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
}

/* Filter Hub in Dark Mode */
html.theme-dark .filter-hub,
body.theme-dark .filter-hub,
[data-bs-theme="dark"] .filter-hub {
    background: rgba(22, 29, 44, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 45px -10px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.theme-dark .filter-hub-header,
body.theme-dark .filter-hub-header,
[data-bs-theme="dark"] .filter-hub-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-dark #activeFilterBadge,
body.theme-dark #activeFilterBadge,
[data-bs-theme="dark"] #activeFilterBadge {
    background: rgba(56, 189, 248, 0.14) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.32);
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.15);
}

html.theme-dark .btn-reset-filter,
body.theme-dark .btn-reset-filter,
[data-bs-theme="dark"] .btn-reset-filter {
    color: #94a3b8;
}

html.theme-dark .btn-reset-filter:hover,
body.theme-dark .btn-reset-filter:hover,
[data-bs-theme="dark"] .btn-reset-filter:hover {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

html.theme-dark .filter-hub .border-light-subtle,
body.theme-dark .filter-hub .border-light-subtle,
[data-bs-theme="dark"] .filter-hub .border-light-subtle {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Search Bar in Dark Mode */
html.theme-dark .main-search-field,
body.theme-dark .main-search-field,
[data-bs-theme="dark"] .main-search-field {
    background: rgba(15, 21, 33, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

html.theme-dark .main-search-field::placeholder,
body.theme-dark .main-search-field::placeholder,
[data-bs-theme="dark"] .main-search-field::placeholder {
    color: #64748b;
}

html.theme-dark .main-search-field:focus,
body.theme-dark .main-search-field:focus,
[data-bs-theme="dark"] .main-search-field:focus {
    border-color: #38bdf8;
    background: #0f172a;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 8px 25px rgba(0, 0, 0, 0.65);
}

html.theme-dark .search-leading-icon,
body.theme-dark .search-leading-icon,
[data-bs-theme="dark"] .search-leading-icon {
    color: #38bdf8;
}

html.theme-dark .search-kbd-hint,
body.theme-dark .search-kbd-hint,
[data-bs-theme="dark"] .search-kbd-hint {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

html.theme-dark .clear-search-btn,
body.theme-dark .clear-search-btn,
[data-bs-theme="dark"] .clear-search-btn {
    color: #64748b;
}

html.theme-dark .clear-search-btn:hover,
body.theme-dark .clear-search-btn:hover,
[data-bs-theme="dark"] .clear-search-btn:hover {
    color: #f87171;
}

/* Category Chips in Dark Mode */
html.theme-dark .quick-prodi-pills,
body.theme-dark .quick-prodi-pills,
[data-bs-theme="dark"] .quick-prodi-pills {
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

html.theme-dark .category-chip,
body.theme-dark .category-chip,
[data-bs-theme="dark"] .category-chip {
    background: rgba(15, 21, 33, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    backdrop-filter: blur(10px);
}

html.theme-dark .category-chip:hover,
body.theme-dark .category-chip:hover,
[data-bs-theme="dark"] .category-chip:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    transform: translateY(-1px);
}

html.theme-dark .category-chip.active,
body.theme-dark .category-chip.active,
[data-bs-theme="dark"] .category-chip.active {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
}

html.theme-dark .chip-programmer.active,
body.theme-dark .chip-programmer.active,
[data-bs-theme="dark"] .chip-programmer.active {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 4px 16px rgba(8, 145, 178, 0.45);
}

html.theme-dark .chip-engineer.active,
body.theme-dark .chip-engineer.active,
[data-bs-theme="dark"] .chip-engineer.active {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.45);
}

html.theme-dark .chip-designer.active,
body.theme-dark .chip-designer.active,
[data-bs-theme="dark"] .chip-designer.active {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.45);
}

/* Secondary Filter Selects in Dark Mode */
html.theme-dark .custom-select-control,
body.theme-dark .custom-select-control,
[data-bs-theme="dark"] .custom-select-control {
    background-color: rgba(15, 21, 33, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

html.theme-dark .custom-select-control:focus,
body.theme-dark .custom-select-control:focus,
[data-bs-theme="dark"] .custom-select-control:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22);
}

html.theme-dark .custom-select-control option,
body.theme-dark .custom-select-control option,
[data-bs-theme="dark"] .custom-select-control option {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

/* Portfolio Cards in Dark Mode */
html.theme-dark .portfolio-card-modern,
body.theme-dark .portfolio-card-modern,
[data-bs-theme="dark"] .portfolio-card-modern {
    background: linear-gradient(180deg, rgba(26, 35, 52, 0.9) 0%, rgba(18, 24, 38, 0.95) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.theme-dark .portfolio-card-modern:hover,
body.theme-dark .portfolio-card-modern:hover,
[data-bs-theme="dark"] .portfolio-card-modern:hover {
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateY(-8px);
    box-shadow: 0 22px 50px -10px rgba(0, 0, 0, 0.9), 0 0 28px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html.theme-dark .card-media-wrap,
body.theme-dark .card-media-wrap,
[data-bs-theme="dark"] .card-media-wrap {
    background: #090e17;
}

html.theme-dark .author-avatar-wrap,
body.theme-dark .author-avatar-wrap,
[data-bs-theme="dark"] .author-avatar-wrap {
    border: 2px solid #38bdf8;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

html.theme-dark .author-name-link:hover,
body.theme-dark .author-name-link:hover,
[data-bs-theme="dark"] .author-name-link:hover {
    color: #38bdf8;
}

html.theme-dark .card-portfolio-title a:hover,
body.theme-dark .card-portfolio-title a:hover,
[data-bs-theme="dark"] .card-portfolio-title a:hover {
    color: #38bdf8;
}

html.theme-dark .card-media-hover-overlay,
body.theme-dark .card-media-hover-overlay,
[data-bs-theme="dark"] .card-media-hover-overlay {
    background: rgba(9, 14, 26, 0.7);
    backdrop-filter: blur(4px);
}

html.theme-dark .hover-view-label,
body.theme-dark .hover-view-label,
[data-bs-theme="dark"] .hover-view-label {
    background: rgba(15, 23, 42, 0.92);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), 0 0 15px rgba(56, 189, 248, 0.25);
}

html.theme-dark .card-action-footer,
body.theme-dark .card-action-footer,
[data-bs-theme="dark"] .card-action-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.theme-dark .btn-detail-link,
body.theme-dark .btn-detail-link,
[data-bs-theme="dark"] .btn-detail-link {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.28);
}

html.theme-dark .btn-detail-link:hover,
body.theme-dark .btn-detail-link:hover,
[data-bs-theme="dark"] .btn-detail-link:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.45);
}

html.theme-dark .card-stat-chip,
body.theme-dark .card-stat-chip,
[data-bs-theme="dark"] .card-stat-chip {
    color: #94a3b8 !important;
}

html.theme-dark .card-stat-chip i,
body.theme-dark .card-stat-chip i,
[data-bs-theme="dark"] .card-stat-chip i {
    color: #38bdf8 !important;
}

/* Badges in Dark Mode */
html.theme-dark .like-badge-modern,
body.theme-dark .like-badge-modern,
[data-bs-theme="dark"] .like-badge-modern {
    background: rgba(22, 29, 44, 0.92);
    color: #fb7185;
    border: 1px solid rgba(225, 29, 72, 0.35);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

html.theme-dark .badge-prodi-programmer,
body.theme-dark .badge-prodi-programmer,
[data-bs-theme="dark"] .badge-prodi-programmer {
    background: rgba(8, 145, 178, 0.9);
    border: 1px solid rgba(103, 232, 249, 0.45);
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}

html.theme-dark .badge-prodi-engineer,
body.theme-dark .badge-prodi-engineer,
[data-bs-theme="dark"] .badge-prodi-engineer {
    background: rgba(217, 119, 6, 0.9);
    border: 1px solid rgba(253, 224, 71, 0.45);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

html.theme-dark .badge-prodi-designer,
body.theme-dark .badge-prodi-designer,
[data-bs-theme="dark"] .badge-prodi-designer {
    background: rgba(168, 85, 247, 0.9);
    border: 1px solid rgba(244, 114, 182, 0.45);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

/* Load More & Progress in Dark Mode */
html.theme-dark .data-counter-pill,
body.theme-dark .data-counter-pill,
[data-bs-theme="dark"] .data-counter-pill {
    background: rgba(22, 29, 44, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

html.theme-dark .data-counter-pill strong,
body.theme-dark .data-counter-pill strong,
[data-bs-theme="dark"] .data-counter-pill strong {
    color: #38bdf8;
}

html.theme-dark .collection-progress-bar-wrap,
body.theme-dark .collection-progress-bar-wrap,
[data-bs-theme="dark"] .collection-progress-bar-wrap {
    background: rgba(30, 41, 59, 0.65);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

html.theme-dark .collection-progress-bar-fill,
body.theme-dark .collection-progress-bar-fill,
[data-bs-theme="dark"] .collection-progress-bar-fill {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

html.theme-dark .btn-load-more-modern,
body.theme-dark .btn-load-more-modern,
[data-bs-theme="dark"] .btn-load-more-modern {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
    color: #ffffff;
}

html.theme-dark .btn-load-more-modern:hover:not(:disabled),
body.theme-dark .btn-load-more-modern:hover:not(:disabled),
[data-bs-theme="dark"] .btn-load-more-modern:hover:not(:disabled) {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.55);
}

/* Empty State in Dark Mode */
html.theme-dark .empty-state-card,
body.theme-dark .empty-state-card,
[data-bs-theme="dark"] .empty-state-card {
    background: rgba(22, 29, 44, 0.65);
    border: 1px dashed rgba(255, 255, 255, 0.14);
}

html.theme-dark .empty-state-icon,
body.theme-dark .empty-state-icon,
[data-bs-theme="dark"] .empty-state-icon {
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
}

/* Navbar Theme Toggle Button Styling */
.btn-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: rgba(29, 114, 184, 0.08);
    border: 1px solid rgba(29, 114, 184, 0.18);
    color: #1d72b8;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-theme-toggle:hover {
    background: #1d72b8;
    color: #ffffff;
    transform: rotate(15deg) scale(1.08);
    box-shadow: 0 4px 14px rgba(29, 114, 184, 0.3);
}

html.theme-dark .btn-theme-toggle,
body.theme-dark .btn-theme-toggle,
[data-bs-theme="dark"] .btn-theme-toggle {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: #facc15;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

html.theme-dark .btn-theme-toggle:hover,
body.theme-dark .btn-theme-toggle:hover,
[data-bs-theme="dark"] .btn-theme-toggle:hover {
    background: rgba(250, 204, 21, 0.15);
    border-color: #facc15;
    color: #fef08a;
    transform: rotate(-20deg) scale(1.08);
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.35);
}

/* ========================================================
   DARK MODE TEXT SIZING NORMALIZATION
   Fix: Prevent Mazer's app-dark.css from enlarging headings,
   cards, buttons, and text elements in dark mode.
   ======================================================== */
html.theme-dark .hero-title,
body.theme-dark .hero-title,
[data-bs-theme="dark"] .hero-title,
html[data-bs-theme="dark"] h1.hero-title {
    font-size: clamp(2rem, 4.5vw, 2.9rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em !important;
}

html.theme-dark .hero-desc,
body.theme-dark .hero-desc,
[data-bs-theme="dark"] .hero-desc {
    font-size: clamp(0.95rem, 1.8vw, 1.125rem) !important;
    line-height: 1.6 !important;
}

html.theme-dark .hero-badge-pill,
body.theme-dark .hero-badge-pill,
[data-bs-theme="dark"] .hero-badge-pill {
    font-size: 0.82rem !important;
}

html.theme-dark .hero-stat-pill,
body.theme-dark .hero-stat-pill,
[data-bs-theme="dark"] .hero-stat-pill {
    font-size: 0.88rem !important;
}

html.theme-dark .filter-hub-title,
body.theme-dark .filter-hub-title,
[data-bs-theme="dark"] .filter-hub-title,
html[data-bs-theme="dark"] h2.filter-hub-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

html.theme-dark #activeFilterBadge,
body.theme-dark #activeFilterBadge,
[data-bs-theme="dark"] #activeFilterBadge {
    font-size: 0.78rem !important;
}

html.theme-dark .btn-reset-filter,
body.theme-dark .btn-reset-filter,
[data-bs-theme="dark"] .btn-reset-filter {
    font-size: 0.82rem !important;
}

html.theme-dark .main-search-field,
body.theme-dark .main-search-field,
[data-bs-theme="dark"] .main-search-field {
    font-size: 1rem !important;
}

html.theme-dark .search-kbd-hint,
body.theme-dark .search-kbd-hint,
[data-bs-theme="dark"] .search-kbd-hint {
    font-size: 0.75rem !important;
}

html.theme-dark .quick-pill-label,
body.theme-dark .quick-pill-label,
[data-bs-theme="dark"] .quick-pill-label {
    font-size: 0.78rem !important;
}

html.theme-dark .category-chip,
body.theme-dark .category-chip,
[data-bs-theme="dark"] .category-chip {
    font-size: 0.82rem !important;
}

html.theme-dark .custom-filter-label,
body.theme-dark .custom-filter-label,
[data-bs-theme="dark"] .custom-filter-label {
    font-size: 0.78rem !important;
}

html.theme-dark .custom-select-control,
body.theme-dark .custom-select-control,
[data-bs-theme="dark"] .custom-select-control {
    font-size: 0.92rem !important;
}

html.theme-dark .badge-prodi-float,
body.theme-dark .badge-prodi-float,
[data-bs-theme="dark"] .badge-prodi-float {
    font-size: 0.72rem !important;
}

html.theme-dark .like-badge-modern,
body.theme-dark .like-badge-modern,
[data-bs-theme="dark"] .like-badge-modern {
    font-size: 0.8rem !important;
}

html.theme-dark .author-name-link,
body.theme-dark .author-name-link,
[data-bs-theme="dark"] .author-name-link {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

html.theme-dark .author-meta-text,
body.theme-dark .author-meta-text,
[data-bs-theme="dark"] .author-meta-text {
    font-size: 0.74rem !important;
}

html.theme-dark .card-portfolio-title,
body.theme-dark .card-portfolio-title,
[data-bs-theme="dark"] .card-portfolio-title,
html[data-bs-theme="dark"] h3.card-portfolio-title,
html.theme-dark h3.card-portfolio-title {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.025em !important;
}

html.theme-dark .card-portfolio-title a,
body.theme-dark .card-portfolio-title a,
[data-bs-theme="dark"] .card-portfolio-title a {
    font-size: inherit !important;
}

html.theme-dark .card-portfolio-desc,
body.theme-dark .card-portfolio-desc,
[data-bs-theme="dark"] .card-portfolio-desc {
    font-size: 0.84rem !important;
    line-height: 1.55 !important;
}

html.theme-dark .card-stat-chip,
body.theme-dark .card-stat-chip,
[data-bs-theme="dark"] .card-stat-chip {
    font-size: 0.8rem !important;
}

html.theme-dark .btn-detail-link,
body.theme-dark .btn-detail-link,
[data-bs-theme="dark"] .btn-detail-link {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

html.theme-dark .hover-view-label,
body.theme-dark .hover-view-label,
[data-bs-theme="dark"] .hover-view-label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

html.theme-dark .data-counter-pill,
body.theme-dark .data-counter-pill,
[data-bs-theme="dark"] .data-counter-pill {
    font-size: 0.85rem !important;
}

html.theme-dark .btn-load-more-modern,
body.theme-dark .btn-load-more-modern,
[data-bs-theme="dark"] .btn-load-more-modern {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
}

html.theme-dark .empty-state-title,
body.theme-dark .empty-state-title,
[data-bs-theme="dark"] .empty-state-title,
html[data-bs-theme="dark"] h4.empty-state-title {
    font-size: 1.25rem !important;
}

html.theme-dark .empty-state-desc,
body.theme-dark .empty-state-desc,
[data-bs-theme="dark"] .empty-state-desc {
    font-size: 0.92rem !important;
}


