:root {
    --bg-base:       #050505;
    --bg-surface:    #0a0a0a;
    --bg-card:       #111111;
    --bg-card-2:     #1a1a1a;
    --sidebar-bg:    #020202;
    --border:        rgba(255,255,255,0.08);
    --border-hover:  rgba(255,255,255,0.25);
    
    --accent:        #27272a;
    --accent-light:  #ffffff;
    --accent-glow:   rgba(255,255,255,0.1);
    
    --text-primary:  #f5f5f5;
    --text-secondary:#a3a3a3;
    --text-muted:    #737373;
    
    --green:   #34d399;
    --gold:    #facc15;
    --red:     #f87171;
    
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-pill: 999px;
    
    --sidebar-width: 280px;
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
    --ease-deck:  cubic-bezier(0.16, 1, 0.3, 1);
    --transition-deck: 0.32s var(--ease-deck);
    
    --font-main:   'Space Grotesk', sans-serif;
    --font-mono:   'Space Mono', monospace;
    --font-arabic: 'Noto Kufi Arabic', sans-serif;
}

[dir="rtl"],
[dir='rtl'] {
    --font-main: 'Noto Kufi Arabic', sans-serif;
    letter-spacing: normal;
}

[dir='rtl'] h1,
[dir='rtl'] h2,
[dir='rtl'] h3,
[dir='rtl'] h4,
[dir='rtl'] h5,
[dir='rtl'] h6,
[dir='rtl'] p,
[dir='rtl'] span,
[dir='rtl'] a,
[dir='rtl'] button,
[dir='rtl'] input,
[dir='rtl'] textarea {
    letter-spacing: normal !important;
}

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

:focus:not(:focus-visible) {
    outline: none;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

/* Global Image Protection */
img, .protected-img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

html { 
    scroll-behavior: smooth; 
    scrollbar-gutter: stable;
    overflow-y: scroll;
    overflow-x: hidden;
    overflow-x: clip;
}
body { 
    font-family: var(--font-main); 
    background: var(--bg-base); 
    color: var(--text-primary); 
    line-height: 1.7; 
    overflow-x: hidden; 
    overflow-x: clip;
    max-width: 100vw;
    -webkit-font-smoothing: antialiased; 
}

/* Custom Scrollbar for whole page */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}



/* Sidebar */
#sidebar {
    position: fixed;
    top: 0; left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 50;
    display: flex;
    flex-direction: column;
    scrollbar-width: none; /* Firefox */
}
#sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
.sidebar-inner { padding: 1.75rem 1.25rem; display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }

/* Sidebar Profile */
.sb-profile {
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.sb-avatar {
    position: relative;
    display: inline-block;
}
.sb-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    z-index: 2;
    pointer-events: auto;
}
.sb-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2), 0 0 0 6px rgba(255,255,255,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}
.sb-profile:hover .sb-avatar img {
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.3), 0 0 0 8px rgba(255,255,255,0.1);
}
.sb-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
}
.sb-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-pill);
    text-align: center;
    line-height: 1.2;
    margin-top: 0.35rem;
    min-height: 27px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sb-status:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(147, 197, 253, 0.4);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.25);
    transform: translateY(-1px);
}
.sb-status-text,
.sb-status [data-i18n="sb_status"] {
    display: inline-block;
    transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.sb-status-text.status-anim-out,
.sb-status [data-i18n="sb_status"].status-anim-out {
    opacity: 0;
    transform: translateY(-5px);
}
.sb-status-text.status-anim-prep,
.sb-status [data-i18n="sb_status"].status-anim-prep {
    opacity: 0;
    transform: translateY(5px);
    transition: none !important;
}
.sb-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    animation: pulse-blue 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.5); }
    70% { box-shadow: 0 0 0 5px rgba(96, 165, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* Sidebar Controls */
.sb-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.sb-lang {
    display: inline-flex;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 3px;
    align-items: center;
    position: relative;
}
.sb-lang-btn {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 0.85rem;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: transform 0.2s var(--ease-deck), background 0.22s var(--ease-deck), color 0.22s ease, box-shadow 0.22s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.sb-lang-btn:hover {
    color: var(--text-primary);
}
.sb-lang-btn:active {
    transform: scale(0.92);
}
.sb-lang-btn.active {
    background: var(--gold);
    color: #000;
    box-shadow: 0 2px 10px rgba(255, 208, 0, 0.28);
}
.sb-lang-btn.btn-pop {
    animation: langBtnPop 0.28s var(--ease-deck);
}
@keyframes langBtnPop {
    0% { transform: scale(0.88); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Sidebar Divider */
.sb-divider {
    height: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: 100%;
    margin: 0;
    flex-shrink: 0;
}

/* Sidebar Nav */
.sb-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.sb-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.sb-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 0.88rem;
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}
.sb-nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sb-nav-link:hover i {
    transform: scale(1.18) rotate(6deg);
    color: #ffffff;
}
.sb-nav-link:active {
    transform: translateY(0) scale(0.96);
    filter: brightness(0.92);
    box-shadow: none;
    transition: transform 0.1s ease;
}
.sb-nav-link.active {
    color: #ffffff;
    background: #19191e;
    border-color: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}
.sb-nav-link.active:hover {
    background: #23232b;
    color: #ffffff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.sb-nav-link.active:hover i {
    transform: scale(1.18) rotate(6deg);
}
.sb-nav-link.active:active {
    transform: translateY(0) scale(0.96);
    filter: brightness(0.92);
    box-shadow: none;
    transition: transform 0.1s ease;
}

/* Sidebar Socials */
.sb-socials {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.sb-social {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
}
.sb-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.sb-social[aria-label="WhatsApp"]:hover,
.sb-social--wa:hover {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.4);
    background: rgba(37, 211, 102, 0.08);
}
.sb-social[aria-label="GitHub"]:hover,
.sb-social--github:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}
.sb-social[aria-label="Instagram"]:hover,
.sb-social--ig:hover {
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.4);
    background: rgba(225, 48, 108, 0.08);
}
.sb-social[aria-label="Email"]:hover,
.sb-social--email:hover {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.08);
}

/* Mobile Topbar */
#mobile-topbar {
    display: none;
}

#mob-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(17,17,24,0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
@media (min-width: 901px) {
    #mob-menu {
        display: none !important;
    }
}
#mob-menu.open {
    max-height: 500px;
}
.mob-nav {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.mob-nav-link {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}
.mob-nav-link:hover {
    color: var(--accent-light);
    background: rgba(255,255,255,0.08);
}
.mob-nav-link.active {
    color: #ffffff;
    background: #19191e;
    font-weight: 600;
}
.mob-nav-link:active {
    background: rgba(255,255,255,0.12);
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Main Content */
#main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    overflow-x: clip;
}

.pt-section {
    max-width: 860px;
    width: 100%;
    padding: 3.5rem 3rem 2.5rem;
    flex: 1 0 auto;
    box-sizing: border-box;
    scroll-margin-top: 64px;
}

/* Home Section */
.section-label {
    display: none !important;
}
.pt-greeting {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.pt-greeting-name {
    color: var(--accent-light);
}
.pt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.pt-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.pt-meta-item i {
    font-size: 0.7rem;
    color: var(--accent);
}
.pt-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
.pt-bio p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.pt-bio strong {
    color: var(--text-primary);
}

/* General Section Headings */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 0.4rem;
}
.section-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* About Section */

.skill-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    margin-bottom: 2rem;
}
.skill-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    outline: none !important;
    background: #181820;
    color: #9090a2;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.2s ease,
                color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
    user-select: none;
    will-change: transform;
}
.skill-filter-btn:hover {
    color: #ffffff;
    background: #23232c;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-1.5px);
}
.skill-filter-btn:active {
    transform: scale(0.95);
}
.skill-filter-btn.active {
    background: #ffd000;
    color: #000000;
    border-color: #ffd000 !important;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 208, 0, 0.24);
}
.skill-filter-btn.active:hover {
    background: #ffd51a;
    color: #000000;
}
.sf-count {
    background: #23232c;
    color: #717182;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.skill-filter-btn.active .sf-count {
    background: rgba(0, 0, 0, 0.18);
    color: #000000;
    transform: scale(1.05);
}

@keyframes filterBtnPop {
    0% { transform: scale(0.92); }
    45% { transform: scale(1.06); }
    100% { transform: scale(1); }
}
.skill-filter-btn.btn-pop {
    animation: filterBtnPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Skills Cloud Container */
.skills-cloud-wrap {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    gap: 0.55rem 0.65rem;
    max-width: 860px;
    min-height: 180px;
    position: relative;
}

/* Badge Pill Keyframes */
@keyframes pillBloomIn {
    0% {
        opacity: 0;
        transform: scale(0.72) translateY(8px);
        filter: blur(2px);
    }
    65% {
        opacity: 1;
        transform: scale(1.04) translateY(-2px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.skill-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 1.05rem;
    border-radius: 9999px;
    background: var(--bg-tint, #1f1f26);
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
    outline: 0 !important;
    box-shadow: none;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.2s ease,
                box-shadow 0.25s ease,
                border-color 0.2s ease,
                background-color 0.2s ease;
    user-select: none;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto;
    will-change: transform, opacity;
}

.skill-badge-pill.filtering-out {
    opacity: 0 !important;
    transform: scale(0.72) translateY(6px) !important;
    filter: blur(1.5px) !important;
    pointer-events: none;
    transition: opacity 0.13s cubic-bezier(0.4, 0, 1, 1),
                transform 0.13s cubic-bezier(0.4, 0, 1, 1),
                filter 0.13s ease !important;
}

.skill-badge-pill.pill-enter {
    animation: pillBloomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.skill-badge-pill.hidden {
    display: none !important;
}

.skill-badge-pill i {
    color: var(--brand-color, #ffffff);
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-badge-pill:hover {
    transform: translateY(-2.5px) scale(1.035);
    background: var(--bg-tint);
    filter: brightness(1.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38) !important;
}

.skill-badge-pill:focus,
.skill-badge-pill:focus-visible {
    outline: 0 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.skill-badge-pill:hover i {
    transform: scale(1.18) rotate(6deg);
}

[dir="rtl"] .skill-badge-pill:hover i {
    transform: scale(1.18) rotate(-6deg);
}

.skill-badge-pill:active {
    transform: translateY(0) scale(0.96);
    filter: brightness(0.95);
    transition: transform 0.1s ease;
}

/* Responsive Skills Badges (tetap mini & sesuai isi tulisan) */
@media (max-width: 900px) {
    .skills-cloud-wrap {
        gap: 0.55rem;
    }
    .skill-badge-pill {
        padding: 0.45rem 0.95rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .skill-filters {
        gap: 0.45rem;
        margin-top: 1rem;
        margin-bottom: 1.4rem;
    }
    .skill-filter-btn {
        padding: 0.38rem 0.8rem;
        font-size: 0.78rem;
        gap: 0.35rem;
    }
    .sf-count {
        font-size: 0.68rem;
        padding: 0.1rem 0.4rem;
    }
    .skills-cloud-wrap {
        gap: 0.5rem;
        min-height: 140px;
    }
    .skill-badge-pill {
        flex: 0 0 auto;
        width: auto;
        padding: 0.42rem 0.85rem;
        font-size: 0.82rem;
        gap: 0.45rem;
    }
    .skill-badge-pill i {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .skills-cloud-wrap {
        gap: 0.45rem;
        min-height: 120px;
    }
    .skill-badge-pill {
        padding: 0.38rem 0.75rem;
        font-size: 0.78rem;
        gap: 0.4rem;
    }
    .skill-badge-pill i {
        font-size: 0.9rem;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all var(--transition);
}
.project-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.project-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.project-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-light);
}
.project-icon--asuh {
    background: rgba(34, 197, 94, 0.12);
    border: none;
    color: #4ade80;
}
.project-icon--food {
    background: rgba(245, 158, 11, 0.12);
    border: none;
    color: #fbbf24;
}
.project-icon--salary {
    background: rgba(59, 130, 246, 0.12);
    border: none;
    color: #60a5fa;
}
.project-icon--erp {
    background: rgba(244, 63, 94, 0.12);
    border: none;
    color: #fb7185;
}
.project-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(255,255,255,0.08);
    border: none;
    padding: 0.28rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.project-badge--asuh {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: none;
}
.project-badge--food {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: none;
}
.project-badge--salary {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: none;
}
.project-badge--erp {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border: none;
}
.project-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}
.project-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex: 1;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.proj-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.05);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}
.proj-tag i {
    font-size: 0.8rem;
}
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}
.proj-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-light);
    text-decoration: none;
    border: none !important;
    outline: none !important;
    transition: color var(--transition);
}
.proj-link:hover {
    color: var(--text-primary);
}
.proj-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    background: #27272a;
    color: #ffffff;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-md);
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: all var(--transition);
}
.proj-photo-btn:hover {
    background: #3f3f46;
    color: #ffffff;
    border: none !important;
    outline: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
}
.proj-photo-btn:focus,
.proj-photo-btn:focus-visible {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    background: #3f3f46;
    color: #ffffff;
}
.proj-photo-btn:active {
    background: #52525b;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transform: scale(0.97);
}

/* Certificate Thumbnails for achievement.html */
.ach-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    cursor: pointer;
}
.ach-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}
.ach-thumb-wrap:hover .ach-thumb-img {
    transform: scale(1.04);
}
.ach-thumb-shield {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: transparent;
    pointer-events: auto;
}
.ach-thumb-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(2px);
}
.ach-thumb-wrap:hover .ach-thumb-overlay {
    opacity: 1;
}


/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    min-width: 0;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.contact-card--wa:hover {
    border-color: rgba(37,211,102,0.4);
    background: rgba(37,211,102,0.06);
}
.contact-card--email:hover {
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(248, 113, 113, 0.06);
}
.contact-card--email:hover .contact-card-icon {
    color: #f87171;
}
.contact-card--github:hover {
    border-color: rgba(224,224,224,0.25);
    background: rgba(224,224,224,0.04);
}
.contact-card--ig:hover {
    border-color: rgba(225,48,108,0.35);
    background: rgba(225,48,108,0.05);
}
.contact-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-light);
    flex-shrink: 0;
}
.contact-card--wa .contact-card-icon { background: rgba(37,211,102,0.1); color: #4ade80; }
.contact-card--github .contact-card-icon { background: rgba(224,224,224,0.06); color: #c0c0c0; }
.contact-card--ig .contact-card-icon { background: rgba(225,48,108,0.1); color: #f472b6; }
.contact-card-info {
    flex: 1;
    min-width: 0;
}
.contact-card-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}
.contact-card-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    overflow-wrap: break-word;
}
.contact-card-arrow {
    font-size: 0.75rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.25s var(--ease-deck), color 0.25s ease;
}
.contact-card:hover .contact-card-arrow {
    transform: translate(3px, -3px);
    color: var(--text-primary);
}
[dir="rtl"] .contact-card:hover .contact-card-arrow {
    transform: translate(-3px, -3px);
}

.pt-footer {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 2.5rem 3rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid var(--border);
}
.pt-footer p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* Background Freeze when Lightbox is Open */
html.lb-open {
    scroll-behavior: auto !important;
}

html.lb-open,
body.lb-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
}

body.lb-open #sidebar,
body.lb-open #main-content,
body.lb-open #mobile-topbar,
body.lb-open #desktop-topbar,
body.lb-open #mob-menu {
    pointer-events: none !important;
    user-select: none !important;
}

/* Lightbox */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem;
    box-sizing: border-box;
    overscroll-behavior: contain;
    touch-action: none;
    cursor: default;
}
#lightbox.active {
    display: flex;
    animation: lbFadeIn 0.24s var(--ease-deck) forwards;
}
#lightbox.active .lb-img-container {
    animation: lbImgScale 0.28s var(--ease-deck) forwards;
}
@keyframes lbFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes lbImgScale {
    0% { opacity: 0; transform: scale(0.96); }
    100% { opacity: 1; transform: scale(1); }
}
.lb-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 210;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lb-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.06);
}
.lb-close.btn-hint {
    animation: filterBtnPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    background: rgba(255, 208, 0, 0.25) !important;
    border-color: rgba(255, 208, 0, 0.6) !important;
    color: #ffd000 !important;
}
@keyframes lbShake {
    10%, 90% { transform: scale(1) translate3d(-2px, 0, 0); }
    20%, 80% { transform: scale(1) translate3d(3px, 0, 0); }
    30%, 50%, 70% { transform: scale(1) translate3d(-5px, 0, 0); }
    40%, 60% { transform: scale(1) translate3d(5px, 0, 0); }
}
.lb-img-container.lb-shake {
    animation: lbShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.lb-img-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
    width: fit-content;
    height: fit-content;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #0c0c0e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}
#lb-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(85vh - 3rem);
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    box-sizing: border-box;
}
.lb-guard-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: transparent;
    cursor: default;
}
.lb-watermark {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
}
.lb-watermark-repeat {
    position: absolute;
    inset: -60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4.5rem;
    transform: rotate(-22deg);
    opacity: 0.26;
    pointer-events: none;
    user-select: none;
}
.lb-watermark-repeat span {
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.8vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 640px) {
    #lightbox {
        padding: 4.25rem 0.85rem 1.5rem;
    }
    .lb-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.12);
    }
    .lb-img-container {
        border-radius: 8px;
    }
    #lb-img {
        max-height: calc(82vh - 4rem);
    }
    .lb-watermark-repeat {
        gap: 2.5rem;
    }
    .lb-watermark-repeat span {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }
}

/* Utility & Bug Fixes */
.hidden {
    display: none !important;
}

/* Deck Page Transitions */
#main-content {
    transition: opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}
#main-content.deck-exit {
    opacity: 0 !important;
    transform: translateY(-8px) !important;
    filter: blur(1.5px) !important;
    pointer-events: none !important;
}
#main-content.deck-enter {
    animation: deckSlideIn 0.32s var(--ease-deck) forwards;
}
@keyframes deckSlideIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(1.5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Universal Keynote Stagger Entrance */
.anim-slide-up {
    opacity: 0;
    transform: translateY(16px);
    animation: deckElemIn 0.42s var(--ease-deck) forwards;
    will-change: transform, opacity;
}
@keyframes deckElemIn {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.delay-1 { animation-delay: 0.04s; }
.delay-2 { animation-delay: 0.08s; }
.delay-3 { animation-delay: 0.12s; }
.delay-4 { animation-delay: 0.16s; }
.delay-5 { animation-delay: 0.20s; }
.delay-6 { animation-delay: 0.24s; }
.delay-7 { animation-delay: 0.28s; }
.delay-8 { animation-delay: 0.32s; }

/* ============================================================
   Coordinated Direction-Aware i18n Transition Engine
   ============================================================ */

/* Common Transition Baseline (ID <-> EN) */
body.i18n-fade-out #main-content,
body.i18n-fade-out #sidebar .sidebar-inner,
body.i18n-fade-out #desktop-topbar .dt-container {
    opacity: 0 !important;
    filter: blur(2px) !important;
    transform: translateY(4px) !important;
    transition: opacity 0.13s ease, filter 0.13s ease, transform 0.13s ease !important;
}

body.i18n-fade-in #main-content,
body.i18n-fade-in #sidebar .sidebar-inner,
body.i18n-fade-in #desktop-topbar .dt-container {
    animation: i18nFadeBloom 0.28s var(--ease-deck) forwards;
}
@keyframes i18nFadeBloom {
    0% {
        opacity: 0;
        filter: blur(2px);
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* Cross-Direction: To Arabic (LTR -> RTL) */
body.i18n-flip-out-rtl #main-content,
body.i18n-flip-out-rtl #desktop-topbar .dt-container {
    opacity: 0 !important;
    filter: blur(3px) !important;
    transform: translateX(-16px) !important;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s var(--ease-deck) !important;
}
body.i18n-flip-out-rtl #sidebar {
    opacity: 0 !important;
    filter: blur(3px) !important;
    transform: translateX(-16px) !important;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s var(--ease-deck) !important;
}

body.i18n-flip-in-rtl #main-content,
body.i18n-flip-in-rtl #desktop-topbar .dt-container {
    animation: i18nGlideInRtl 0.32s var(--ease-deck) forwards;
}
body.i18n-flip-in-rtl:not(.layout-topbar) #sidebar {
    animation: i18nGlideInRtl 0.32s var(--ease-deck) forwards;
}
@keyframes i18nGlideInRtl {
    0% {
        opacity: 0;
        filter: blur(3px);
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

/* Cross-Direction: From Arabic to Latin (RTL -> LTR) */
body.i18n-flip-out-ltr #main-content,
body.i18n-flip-out-ltr #desktop-topbar .dt-container {
    opacity: 0 !important;
    filter: blur(3px) !important;
    transform: translateX(16px) !important;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s var(--ease-deck) !important;
}
body.i18n-flip-out-ltr #sidebar {
    opacity: 0 !important;
    filter: blur(3px) !important;
    transform: translateX(16px) !important;
    transition: opacity 0.15s ease, filter 0.15s ease, transform 0.15s var(--ease-deck) !important;
}

body.i18n-flip-in-ltr #main-content,
body.i18n-flip-in-ltr #desktop-topbar .dt-container {
    animation: i18nGlideInLtr 0.32s var(--ease-deck) forwards;
}
body.i18n-flip-in-ltr:not(.layout-topbar) #sidebar {
    animation: i18nGlideInLtr 0.32s var(--ease-deck) forwards;
}
@keyframes i18nGlideInLtr {
    0% {
        opacity: 0;
        filter: blur(3px);
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

/* Backwards compatibility for single element triggers */
.i18n-dissolving {
    opacity: 0 !important;
    filter: blur(2px) !important;
    transform: translateY(3px) !important;
    transition: opacity 0.13s ease, filter 0.13s ease, transform 0.13s ease !important;
}
.i18n-emerging {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: translateY(0) !important;
    transition: opacity 0.24s var(--ease-deck), filter 0.24s var(--ease-deck), transform 0.24s var(--ease-deck) !important;
}

/* Zero-Jitter Margin Isolation: Prevent horizontal squish/shrink when switching languages between LTR and RTL */
body.i18n-active #main-content,
body.i18n-flip-out-rtl #main-content,
body.i18n-flip-in-rtl #main-content,
body.i18n-flip-out-ltr #main-content,
body.i18n-flip-in-ltr #main-content,
body.i18n-fade-out #main-content,
body.i18n-fade-in #main-content {
    transition: none !important;
}

/* Scroll Reveal (Backwards Compatibility) */
.reveal, .reveal-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-deck), transform 0.5s var(--ease-deck);
}
.reveal.visible, .reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Career Details Smooth Drawer */
.career-card[open] .career-body {
    animation: careerBodySlide 0.3s var(--ease-deck) forwards;
}
@keyframes careerBodySlide {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    #main-content.deck-exit,
    #main-content.deck-enter,
    .anim-slide-up,
    .career-card[open] .career-body,
    #lightbox.active,
    #lightbox.active .lb-img-container {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}

/* Layout Toggle Button */
.layout-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease-deck), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-size: 1.05rem;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}
.layout-toggle-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.08);
    transform: scale(1.05);
}
.layout-toggle-btn:active {
    transform: scale(0.92);
}
.layout-toggle-btn i {
    display: inline-block;
    transition: transform 0.25s var(--ease-deck), opacity 0.18s ease;
    will-change: transform, opacity;
}
.layout-toggle-btn.btn-pop {
    animation: btnSpring 0.32s var(--ease-deck);
}
@keyframes btnSpring {
    0% { transform: scale(1); }
    40% { transform: scale(0.88); }
    100% { transform: scale(1); }
}

/* Desktop Topbar */
#desktop-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(17,17,17,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    z-index: 60;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
}
.dt-container {
    max-width: 1100px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}
.dt-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.2px;
}
.dt-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dt-nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    cursor: pointer;
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.dt-nav-link:hover {
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
}
.dt-nav-link:active {
    transform: translateY(0) scale(0.96);
    transition: transform 0.1s ease;
}
.dt-nav-link.active {
    color: var(--accent-light);
    background: rgba(255,255,255,0.1);
    font-weight: 600;
}
.dt-nav-link.active:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    transform: translateY(-2px) scale(1.03);
}
.dt-nav-link.active:active {
    transform: translateY(0) scale(0.96);
    transition: transform 0.1s ease;
}
.dt-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Layout Transition Engine */
#sidebar {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    will-change: transform, opacity;
}

body.layout-ready #sidebar {
    transition: transform 0.36s var(--ease-deck), opacity 0.28s ease, visibility 0.36s;
}
body.layout-ready #desktop-topbar {
    transition: transform 0.36s var(--ease-deck), opacity 0.28s ease, visibility 0.36s;
}
body.layout-ready:not(.i18n-active) #main-content {
    transition: margin-left 0.36s var(--ease-deck), margin-right 0.36s var(--ease-deck), padding-top 0.36s var(--ease-deck), opacity 0.16s ease, transform 0.16s ease, filter 0.16s ease;
}
body.layout-ready:not(.i18n-active) .pt-section,
body.layout-ready:not(.i18n-active) .pt-footer {
    transition: max-width 0.36s var(--ease-deck), margin 0.36s var(--ease-deck);
}

/* Layout Topbar Active State */
html.layout-topbar body #sidebar,
body.layout-topbar #sidebar {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
[dir='rtl'] html.layout-topbar body #sidebar,
[dir='rtl'] body.layout-topbar #sidebar {
    transform: translateX(100%);
}

html.layout-topbar body #desktop-topbar,
body.layout-topbar #desktop-topbar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

html.layout-topbar body #main-content,
body.layout-topbar #main-content {
    margin-left: 0 !important;
    padding-top: 64px;
}
[dir='rtl'] html.layout-topbar body #main-content,
[dir='rtl'] body.layout-topbar #main-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

html.layout-topbar body .pt-section,
html.layout-topbar body .pt-footer,
body.layout-topbar .pt-section,
body.layout-topbar .pt-footer {
    margin: 0 auto;
    max-width: 900px;
}

/* Staggered entrance for Topbar items when entering Topbar */
body.layout-ready.layout-topbar #desktop-topbar .dt-logo {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.05s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-nav-link:nth-child(1) {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.08s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-nav-link:nth-child(2) {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.11s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-nav-link:nth-child(3) {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.14s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-nav-link:nth-child(4) {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.17s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-nav-link:nth-child(5) {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.20s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-nav-link:nth-child(6) {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.23s;
}
body.layout-ready.layout-topbar #desktop-topbar .dt-controls {
    animation: dtCascadeIn 0.34s var(--ease-deck) both;
    animation-delay: 0.26s;
}
@keyframes dtCascadeIn {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Support */
[dir='rtl'] #sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border);
}
[dir='rtl'] #main-content {
    margin-left: 0;
    margin-right: var(--sidebar-width);
}

/* Contact Card RTL */
[dir='rtl'] .contact-card-arrow {
    transform: scaleX(-1);
    display: inline-block;
}
[dir='rtl'] .contact-card-value {
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}

/* Career Accordion RTL */
[dir='rtl'] .career-arrow {
    left: auto;
    right: 1.5rem;
}
[dir='rtl'] .career-arrow i {
    transform: scaleX(-1);
    display: inline-block;
}
[dir='rtl'] .career-card[open] .career-arrow i {
    transform: rotate(90deg);
}
@media (min-width: 601px) {
    [dir='rtl'] .career-body {
        padding: 0 5rem 1.5rem 1.5rem;
    }
}

/* Responsive */
@media (max-width: 900px) {
    #sidebar { display: none !important; }
    #desktop-topbar { display: none !important; }
    #mobile-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        background: rgba(10, 10, 12, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        align-items: center;
        justify-content: space-between;
        padding: 0 1.25rem;
        z-index: 100;
    }
    .mob-logo {
        font-family: var(--font-main);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        letter-spacing: -0.3px;
        text-decoration: none;
    }
    .mob-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
    .mob-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-secondary);
        border-radius: 2px;
        transition: all var(--transition);
    }
    .mob-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mob-hamburger.open span:nth-child(2) {
        opacity: 0;
    }
    .mob-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    #main-content,
    body.layout-topbar #main-content,
    [dir='rtl'] #main-content,
    [dir='rtl'] body.layout-topbar #main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-top: 56px !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    [dir='rtl'] .mob-nav {
        text-align: right;
    }
    [dir='rtl'] .mob-nav-link {
        text-align: right;
    }
    [dir='rtl'] .mob-lang {
        justify-content: flex-start;
    }
    .pt-section { padding: 3rem 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .pt-footer { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .pt-section { padding: 2.5rem 1rem; }
    .pt-footer { padding: 1.5rem 1rem; }
    .pt-greeting { font-size: 1.6rem; }
}

/* Career Card (Experience) */
.career-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.career-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-2);
}
.career-card summary {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none;
    align-items: flex-start;
    position: relative;
}
.career-card summary::-webkit-details-marker {
    display: none;
}
.career-arrow {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.career-arrow i {
    transition: transform 0.3s ease;
}
.career-card[open] .career-arrow i {
    transform: rotate(90deg);
}
.career-logo {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.career-info {
    flex: 1;
    padding-bottom: 2rem;
}
.career-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.career-meta, .career-meta-2 {
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.career-meta {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.career-meta-2 {
    color: var(--text-muted);
    gap: 0.75rem;
}
.career-body {
    padding: 0 1.5rem 1.5rem 5rem;
    border-top: 1px solid var(--border);
    margin-top: -1rem;
    display: grid;
    gap: 1.5rem;
}
.career-section-title {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.career-list-items {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.career-list-items li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.career-list-items li i {
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.career-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
@media (max-width: 600px) {
    .career-card summary {
        flex-direction: column;
        padding-bottom: 3.5rem;
    }
    .career-body {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}

/* ===== Education Section (Matching UI Card Design) ===== */
.about-edu-section {
    margin-top: 4.5rem;
}

.edu-section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.edu-title-icon {
    color: var(--accent);
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.edu-section-sub {
    margin-bottom: 1.5rem !important;
}

.edu-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin-top: 0;
}

.edu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all var(--transition);
}

.edu-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.edu-logo-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.edu-logo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    background: transparent;
    z-index: 2;
    pointer-events: auto;
}

.edu-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.edu-info {
    flex: 1;
    min-width: 0;
}

.edu-school-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.4rem 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.edu-meta-line1 {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
    line-height: 1.5;
}

.edu-meta-line2 {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.45;
}

.edu-bullet {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.6;
    user-select: none;
}

.edu-country-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 1px 5px;
    letter-spacing: 0.5px;
}

@media (max-width: 640px) {
    .edu-card {
        align-items: flex-start;
        padding: 1.2rem 1.1rem;
        gap: 1rem;
    }
    .edu-logo-wrap {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 10px;
        padding: 4px;
    }
    .edu-school-name {
        font-size: 1rem;
    }
    .edu-meta-line1 {
        font-size: 0.82rem;
        gap: 0.35rem;
    }
    .edu-meta-line2 {
        font-size: 0.78rem;
        gap: 0.35rem;
    }
}
