:root {
    --primary-orange: #f97316;
    --primary-amber: #f59e0b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #ffffff;
    color: var(--slate-900);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Sidebar Navigation --- */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: white;
    border-right: 1px solid var(--slate-100);
    z-index: 2000;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--slate-200);
    border-radius: 20px;
}

.profile-card {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-img-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    padding: 4px;
    background: linear-gradient(45deg, var(--primary-orange), var(--primary-amber));
    border-radius: 2rem;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.15);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.8rem;
    background: white;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    color: var(--slate-600);
    font-weight: 600;
    border-radius: 1rem;
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    background-color: #fff7ed;
    color: var(--primary-orange);
}

/* --- Main Content --- */
main {
    margin-left: 280px;
    padding: 4rem;
    max-width: 1100px;
}

section {
    padding-bottom: 5rem;
}

.section-title-badge {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--primary-orange);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-amber));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Skills Grid --- */
.filter-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.filter-btn {
    border: 1px solid var(--slate-200);
    background: white;
    color: var(--slate-600);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-btn.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.skill-card {
    background: white;
    border: 1px solid var(--slate-100);
    border-radius: 24px;
    padding: 2.25rem 1.75rem;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-orange);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.skill-icon {
    width: 54px;
    height: 54px;
    background: var(--slate-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    transition: background 0.3s ease;
}

.skill-title {
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--slate-900);
}

.skill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-category {
    color: var(--slate-400);
}

.meta-level {
    color: var(--primary-orange);
}

.skill-item.hidden,
.project-item.hidden {
    display: none;
}

/* --- Content Cards --- */
.content-card {
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 2rem;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.content-card:hover {
    background: white;
    border-color: #ffedd5;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.05);
}

/* --- Projects --- */
.project-card {
    border-radius: 2rem;
    overflow: hidden;
    background: white;
    border: 1px solid var(--slate-100);
    height: 100%;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.project-img {
    height: 180px;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
}

.tech-badge {
    font-size: 0.65rem;
    background: var(--slate-100);
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    color: var(--slate-600);
    margin-right: 4px;
    margin-bottom: 4px;
    display: inline-block;
}

/* --- Mobile Responsiveness --- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--slate-100);
    z-index: 1500;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.2);
    }

    main {
        margin-left: 0;
        padding: 7rem 1.25rem 2rem;
    }

    .mobile-header {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1800;
}

.overlay.active {
    display: block;
}

.btn-close-sidebar {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--slate-50);
    border: none;
    padding: 0.5rem;
    border-radius: 0.75rem;
    color: var(--slate-600);
}

.footer-cta {
    background: var(--slate-900);
    border-radius: 3rem;
    padding: 4rem 2rem;
    color: white;
    text-align: center;
    margin-top: 5rem;
}

.btn-primary-custom {
    background-color: var(--primary-orange);
    border: none;
    padding: 1.15rem 2.25rem;
    border-radius: 1.25rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}