#maincontent h2 i.text-success {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#maincontent .h6.text-uppercase.text-muted {
    color: var(--text-tertiary) !important;
    letter-spacing: 0.1em;
    font-size: 0.7rem;
}

/* Cardless Content Surfaces (Clean Flat Separation) */
.email-card,
.tech-item > div {
    background: #121216 !important;
    border: 1px solid #222228 !important;
    box-shadow: none !important;
    border-radius: var(--radius-md);
    transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.tech-category-col > div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.email-card:hover,
.tech-item > div:hover {
    background: #16161c !important;
    border-color: #3f3f46 !important;
    box-shadow: none !important;
    transform: translateY(-2px);
}

.hover-lift {
    transition: transform 0.25s ease, border-color 0.25s ease !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
    border-color: #3f3f46 !important;
    box-shadow: none !important;
}

.glow-box {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.hover-lift:hover .glow-box {
    transform: scale(1.05);
    background: #ffffff !important;
    color: #0c0c0f !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.25) !important;
}

/* Bootstrap Badge Overrides (Monochrome Sleek Pills) */
#maincontent .badge {
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.35em 0.75em;
    background: #18181c !important;
    color: #e4e4e7 !important;
    border: 1px solid #27272e !important;
    transition: all 0.2s ease;
}

#maincontent .badge.bg-primary-subtle,
#maincontent .badge.bg-secondary-subtle,
#maincontent .badge.bg-success-subtle,
#maincontent .badge.bg-warning-subtle,
#maincontent .badge.bg-danger-subtle,
#maincontent .badge.bg-info-subtle {
    background: #18181c !important;
    color: #e4e4e7 !important;
    border: 1px solid #27272e !important;
}

#maincontent .badge:hover {
    background: #24242a !important;
    color: #ffffff !important;
    border-color: #3f3f46 !important;
}

#maincontent .badge i {
    color: #a1a1aa !important;
}

/* Minimalist Progress Meter */
.progress {
    background: #18181c;
    border: 1px solid #222228;
    border-radius: 9999px;
    height: 4px;
    overflow: hidden;
}

[data-theme="light"] .progress {
    background: #e2e8f0;
}

.progress-bar {
    background: #ffffff !important;
    border-radius: 9999px;
    position: relative;
    transition: width 0.8s ease;
}

/* Cardless Project Showcase (No Enclosing Card Frame) */
.project-card {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
    transition: transform 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
    border-color: transparent !important;
}

.project-card .img-loading-wrapper {
    border-radius: var(--radius-md) !important;
    border: 1px solid #222228 !important;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

.project-card:hover .img-loading-wrapper {
    border-color: #3f3f46 !important;
}

.project-card img {
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.04);
}

.project-card .card-body {
    padding: 1rem 0 0 0 !important;
}

/* Image Skeleton Loading & Transitions */
.img-loading-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--skeleton-base);
    background-image: linear-gradient(
        90deg,
        var(--skeleton-base) 0%,
        var(--skeleton-shine) 50%,
        var(--skeleton-base) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-loading-wrapper.loaded,
.img-loading-wrapper:has(.img-lazy-load.loaded) {
    animation: none;
    background-image: none;
}

.certificate-img-wrapper.loaded,
.certificate-img-wrapper:has(.img-lazy-load.loaded) {
    background: var(--bg-card-solid);
}

.img-lazy-load {
    opacity: 0;
    position: relative;
    z-index: 1;
    transition: opacity 0.3s ease-in-out, transform 0.4s ease;
}

.img-lazy-load.loaded {
    opacity: 1;
}


.project-card .card-title {
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.project-card:hover .card-title {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.project-card .card-text {
    color: var(--text-secondary) !important;
    font-size: 0.88rem;
    line-height: 1.6;
}

/* Portfolio Tabs - Sleek Minimalist Segment Switcher */
.portfolio-nav-container {
    background: #121216 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4px;
    border-radius: 50rem !important;
    border: 1px solid #222228 !important;
    box-shadow: none !important;
    top: 1rem !important;
    z-index: 1020;
    overflow: hidden;
}

.portfolio-nav-container .nav-pills {
    flex-wrap: nowrap !important;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.portfolio-nav-container .nav-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    margin: 0 1px;
}

.portfolio-nav-container .nav-link {
    color: #a1a1aa;
    border: none;
    background: transparent;
    -webkit-transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.82rem;
    white-space: nowrap;
    padding: 7px 12px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: 50rem !important;
}

.portfolio-nav-container .nav-link > * {
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .portfolio-nav-container .nav-link {
        font-size: 0.76rem;
        padding: 6px 4px;
        gap: 4px;
    }
    .portfolio-nav-container .nav-link i {
        font-size: 0.82rem;
    }
}

@media (max-width: 767.98px) {
    .portfolio-nav-container {
        top: 0.5rem !important;
        padding: 3px;
    }
    .portfolio-nav-container .nav-link {
        font-size: 0.72rem;
        padding: 5px 3px;
        gap: 3px;
    }
    .portfolio-nav-container .nav-link i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .portfolio-nav-container {
        padding: 2px;
    }
    .portfolio-nav-container .nav-link {
        font-size: 0.65rem;
        padding: 4px 1px;
        flex-direction: column;
        gap: 2px;
    }
    .portfolio-nav-container .nav-link i {
        font-size: 0.82rem;
    }
}

.portfolio-nav-container .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.portfolio-nav-container .nav-link.active {
    background: #ffffff !important;
    color: #0c0c0f !important;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
    font-weight: 600;
}

.portfolio-nav-container .nav-link.active i {
    color: #0c0c0f !important;
}

.portfolio-nav-container .nav-link.active .tab-count {
    background: #e4e4e7 !important;
    color: #0c0c0f !important;
}

.portfolio-nav-container .tab-count {
    background: #222228 !important;
    color: #a1a1aa !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-content.portfolio-tab-content {
    min-height: 400px;
}


/* Animations */
@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(16px);
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(16px);
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

.animate-in {
    -webkit-animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation: fadeInUp 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.animate-in:nth-child(1) { -webkit-animation-delay: 0.04s; animation-delay: 0.04s; }
.animate-in:nth-child(2) { -webkit-animation-delay: 0.08s; animation-delay: 0.08s; }
.animate-in:nth-child(3) { -webkit-animation-delay: 0.12s; animation-delay: 0.12s; }
.animate-in:nth-child(4) { -webkit-animation-delay: 0.16s; animation-delay: 0.16s; }
.animate-in:nth-child(5) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
.animate-in:nth-child(6) { -webkit-animation-delay: 0.24s; animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .animate-in,
    #maincontent {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* Bootstrap Alert Theme Overrides */
#maincontent .alert {
    border: 1px solid transparent;
}

#maincontent .alert.alert-success {
    background: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.25) !important;
    color: #4ade80 !important;
}

#maincontent .alert.alert-danger {
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
}

[data-theme="light"] #maincontent .alert.alert-success {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}

[data-theme="light"] #maincontent .alert.alert-danger {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

[data-theme="dark"] #maincontent .alert .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 17px;
    width: 2px;
    background: #27272e;
    border-radius: 4px;
    z-index: 1;
}

@media (min-width: 576px) {
    .timeline::before {
        left: 21px;
    }
}

.timeline-node {
    position: absolute;
    top: 0;
    left: -1.75rem;
    width: 38px;
    height: 38px;
    background: #121216;
    border: 1px solid #3f3f46;
    color: #ffffff;
    font-size: 0.85rem;
    z-index: 2;
    transition: all 0.25s ease;
}

@media (min-width: 576px) {
    .timeline-node {
        left: -2.25rem;
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }
}

.timeline-node.node-education {
    border-color: #3f3f46;
    color: #ffffff;
}

.timeline-node.timeline-node-active {
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.timeline-item:hover .timeline-node {
    transform: scale(1.08);
    background: #ffffff;
    border-color: #ffffff;
    color: #0c0c0f;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

/* Timeline Custom Bullet List */
.timeline-list li {
    position: relative;
    padding-left: 1.35rem;
    margin-bottom: 0.55rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #71717a;
}

/* Bootstrap Button Variant for Filter Chips */
.tech-filter-btn {
    border-color: #222228 !important;
    background-color: #121216 !important;
    color: #a1a1aa !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    transition: all 0.25s ease;
}

.tech-filter-btn:hover {
    background-color: #18181e !important;
    border-color: #3f3f46 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.tech-filter-btn.active {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #0c0c0f !important;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.tech-filter-btn.active .filter-count {
    background-color: #e4e4e7 !important;
    color: #0c0c0f !important;
}

.tech-filter-btn .filter-count {
    font-size: 0.72rem;
    font-weight: 600;
    background-color: #222228 !important;
    color: #a1a1aa !important;
}

/* Bootstrap Form-Control for Tech Search */
.tech-search-input {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border-color: var(--border-subtle) !important;
    color: var(--text-primary) !important;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.tech-search-input:focus {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: #71717a !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.1) !important;
    color: var(--text-primary) !important;
}

.tech-search-input::placeholder {
    color: var(--text-tertiary) !important;
}

/* Light Theme Overrides for Bootstrap Components */
[data-theme="light"] .tech-filter-btn {
    background-color: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
    color: #52525b !important;
}

[data-theme="light"] .tech-filter-btn:hover {
    background-color: #e4e4e7 !important;
    border-color: #d4d4d8 !important;
    color: #09090b !important;
}

[data-theme="light"] .tech-filter-btn.active {
    background: #09090b !important;
    border-color: #09090b !important;
    color: #ffffff !important;
}

[data-theme="light"] .tech-filter-btn .filter-count {
    background-color: #e4e4e7 !important;
    color: #52525b !important;
}

[data-theme="light"] .tech-filter-btn.active .filter-count {
    background-color: #27272a !important;
    color: #ffffff !important;
}

[data-theme="light"] .tech-search-input {
    background-color: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
    color: #09090b !important;
}

[data-theme="light"] .tech-search-input:focus {
    background-color: #ffffff !important;
    border-color: #71717a !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08) !important;
    color: #09090b !important;
}

[data-theme="light"] .portfolio-nav-container {
    background: #f4f4f5 !important;
    border-color: #e4e4e7 !important;
}

[data-theme="light"] .portfolio-nav-container .nav-link {
    color: #52525b !important;
}

[data-theme="light"] .portfolio-nav-container .nav-link:hover {
    color: #09090b !important;
}

[data-theme="light"] .portfolio-nav-container .nav-link.active {
    background: #09090b !important;
    border-color: #09090b !important;
    color: #ffffff !important;
}

[data-theme="light"] .portfolio-nav-container .nav-link.active i {
    color: #ffffff !important;
}

[data-theme="light"] .portfolio-nav-container .tab-count {
    background-color: #e4e4e7 !important;
    border-color: #e4e4e7 !important;
    color: #52525b !important;
}

[data-theme="light"] .portfolio-nav-container .nav-link.active .tab-count {
    background: #27272a !important;
    border-color: #27272a !important;
    color: #ffffff !important;
}

[data-theme="light"] #maincontent .badge,
[data-theme="light"] #maincontent .badge.bg-primary-subtle,
[data-theme="light"] #maincontent .badge.bg-secondary-subtle,
[data-theme="light"] #maincontent .badge.bg-success-subtle,
[data-theme="light"] #maincontent .badge.bg-warning-subtle,
[data-theme="light"] #maincontent .badge.bg-danger-subtle,
[data-theme="light"] #maincontent .badge.bg-info-subtle {
    background: #f4f4f5 !important;
    color: #18181b !important;
    border: 1px solid #e4e4e7 !important;
}

[data-theme="light"] #maincontent .badge:hover {
    background: #e4e4e7 !important;
    color: #000000 !important;
    border-color: #d4d4d8 !important;
}

[data-theme="light"] #maincontent .badge i {
    color: #52525b !important;
}

[data-theme="light"] .progress {
    background: #e4e4e7 !important;
    border-color: #e4e4e7 !important;
}

[data-theme="light"] .progress-bar {
    background: #09090b !important;
}

[data-theme="light"] .timeline::before {
    background: #e4e4e7 !important;
}

[data-theme="light"] .timeline-node {
    background: #ffffff !important;
    border-color: #e4e4e7 !important;
    color: #09090b !important;
}

[data-theme="light"] .timeline-node.timeline-node-active {
    border-color: #09090b !important;
    color: #09090b !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .timeline-item:hover .timeline-node {
    background: #09090b !important;
    border-color: #09090b !important;
    color: #ffffff !important;
}

[data-theme="light"] .timeline-list li {
    color: #52525b !important;
}

[data-theme="light"] .timeline-list li::before {
    background: #a1a1aa !important;
}
