::selection {
    background-color: rgba(182, 255, 0, 0.22);
    color: #242834;
}

/* ── Typography helpers ─────────────────────────── */
.font-display {
    font-family: "Inter", "Kantumruy Pro", sans-serif;
}

/* ── Glassmorphism ──────────────────────────────── */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(36, 40, 52, 0.10);
    box-shadow: 0 1px 3px rgba(36, 40, 52, 0.04), 0 8px 24px rgba(36, 40, 52, 0.04);
}

/* ── Gradient text ──────────────────────────────── */
.text-gradient-brand {
    background: linear-gradient(135deg, #B6FF00 0%, #CDFF4D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-slate {
    background: linear-gradient(135deg, #242834 0%, #434653 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Button utilities ── SkillDrive ─────────────── */
.btn-primary {
    background: #B6FF00;
    color: #242834;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(182, 255, 0, 0.25);
    transition: all 0.25s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(182, 255, 0, 0.35), 0 4px 12px rgba(182, 255, 0, 0.20);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: #7D53FF;
    border: 2px solid #7D53FF;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    background: rgba(125, 83, 255, 0.06);
    box-shadow: 0 0 16px rgba(125, 83, 255, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #242834;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    background: #2e3342;
    transform: translateY(-1px);
}

/* ── Card ───────────────────────────────────────── */
.card-tech {
    background: #fff;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-tech:hover {
    box-shadow: 0 8px 24px rgba(36, 40, 52, 0.08), 0 4px 8px rgba(36, 40, 52, 0.04);
    transform: translateY(-2px);
}

/* ── Dot grid overlay ───────────────────────────── */
.dot-grid {
    background-image: radial-gradient(circle, rgba(36, 40, 52, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ── Sidebar (always show labels) ───────────────────── */
#sidebar {
    width: 260px;
    transition: transform 0.3s ease;
    overflow-x: hidden;
    z-index: 60;
}

/* Mobile: slide-out drawer */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #sidebarOverlay {
        display: block;
    }
}

.sidebar-label {
    display: inline;
    white-space: nowrap;
}

.nav-item {
    justify-content: flex-start !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.nav-item .gap-3 {
    gap: 12px;
}

#sidebarToggleBtn {
    display: none;
}

.main-content-margin {
    margin-left: 260px;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {

    .main-content-margin,
    .footer-margin {
        margin-left: 0 !important;
    }
}

/* Mobile overlay */
#sidebarOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 55;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#sidebarOverlay.show {
    display: block;
    opacity: 1;
}

/* ── Neon badge ─────────────────────────────────── */
.badge-brand {
    background: rgba(182, 255, 0, 0.12);
    border: 1px solid rgba(182, 255, 0, 0.30);
    color: #242834;
    border-radius: 999px;
}

/* Welcome popup animation */
@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Line clamp utilities ───────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
