.resume-box {
    background: var(--tab-glass-bg, rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid var(--tab-glass-border, rgba(255, 255, 255, 0.2));
    border-radius: 20px;
    padding: 22px 20px;
    box-shadow: 
        0 40px 80px -20px var(--tab-glass-shadow, rgba(0, 0, 0, 0.1)),
        0 10px 30px -10px var(--tab-glass-shadow, rgba(0, 0, 0, 0.1)),
        inset 0 2px 3px -1px var(--tab-glass-highlight, rgba(255, 255, 255, 0.3)),
        inset 0 -2px 4px -1px var(--tab-glass-caustic, rgba(255, 255, 255, 0.1)),
        inset 0 0 0 1px var(--tab-glass-border, rgba(255, 255, 255, 0.2));
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.resume-box::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 46%;
    border-radius: 20px 20px 12px 12px / 20px 20px 8px 8px;
    background: transparent;
    pointer-events: none;
    z-index: 6;
    transition: background 0.5s ease;
}

body.dark-theme .resume-box::before {
    background: linear-gradient(180deg, 
        var(--tab-reflection-start, rgba(255, 255, 255, 0.06)) 0%, 
        var(--tab-reflection-end, rgba(255, 255, 255, 0.0)) 100%
    );
}

.resume-glare-container {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.resume-glare {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(circle 70px at var(--rx, 50%) var(--ry, 50%), 
        rgba(255, 255, 255, 0.12) 0%, 
        transparent 100%
    );
    mix-blend-mode: overlay;
    pointer-events: none;
}

.resume-box:hover .resume-glare {
    opacity: 1;
}

body.dark-theme .resume-glare {
    background: radial-gradient(circle 70px at var(--rx, 50%) var(--ry, 50%), 
        rgba(255, 255, 255, 0.12) 0%, 
        transparent 100%
    );
}

body.dark-theme .resume-box {
    --tab-glass-bg: rgba(30, 30, 35, 0.35);
    --tab-glass-border: rgba(255, 255, 255, 0.08);
    --tab-glass-shadow: rgba(0, 0, 0, 0.4);
    --tab-glass-highlight: rgba(255, 255, 255, 0.05);
    --tab-glass-caustic: rgba(255, 255, 255, 0.02);
    --tab-reflection-start: rgba(255, 255, 255, 0.06);
    --tab-reflection-end: rgba(255, 255, 255, 0.0);
}

.resume-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.resume-icon i {
    color: #1a1a1a !important;
    font-size: 20px;
    transition: none !important;
    opacity: 1;
}

.resume-box:hover .resume-icon i {
    color: #1a1a1a !important;
}

.resume-icon i.fa-briefcase {
    color: #1a1a1a !important;
}

.resume-box:hover .resume-icon i.fa-briefcase {
    color: #1a1a1a !important;
}

body.dark-theme .resume-icon i {
    color: #ffd700 !important;
}

body.dark-theme .resume-icon i.fa-briefcase {
    color: #ffd700 !important;
}

body.dark-theme .resume-box:hover .resume-icon i {
    color: #ffd700 !important;
}

body.dark-theme .resume-box:hover .resume-icon i.fa-briefcase {
    color: #ffd700 !important;
}

.resume-title {
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    margin: 0;
    color: #1a1a1a;
    opacity: 1;
    transition: color 0.3s ease;
}

.resume-box:hover .resume-title {
    color: #007aff;
}

body.dark-theme .resume-title {
    color: #e0e0e0;
}

body.dark-theme .resume-box:hover .resume-title {
    color: #ffd700;
}

.resume-line {
    width: 40px;
    height: 2px;
    background: #1a1a1a;
    margin-bottom: 16px;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.resume-box:hover .resume-line {
    background: #007aff;
}

body.dark-theme .resume-line {
    background: #ffd700;
}

body.dark-theme .resume-box:hover .resume-line {
    background: #ffd700;
}

.resume-projects {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    position: relative;
    border: 1px solid transparent;
    will-change: auto;
    backface-visibility: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: transparent;
    transition: all 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    z-index: 0;
    pointer-events: none;
}

.project-item:hover::before {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 4px 12px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

body.dark-theme .project-item::before {
    inset: 2px 4px;
    border-radius: 10px;
}

body.dark-theme .project-item:hover::before {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.project-item .project-number,
.project-item .project-icon,
.project-item .project-info,
.project-item .project-arrow {
    position: relative;
    z-index: 1;
}

.project-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    min-width: 28px;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
    display: inline-block;
}

.project-item:hover .project-number {
    color: #007aff;
    transform: scale(1.05);
}

body.dark-theme .project-number {
    color: #ffd700;
}

body.dark-theme .project-item:hover .project-number {
    color: #ffd700;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.project-icon i {
    color: #1a1a1a !important;
    font-size: 18px;
    transition: all 0.3s ease;
}

.project-item:hover .project-icon {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.06);
}

.project-item:hover .project-icon i {
    color: #1a1a1a !important;
}

body.dark-theme .project-icon {
    background: rgba(255, 215, 0, 0.08);
}

body.dark-theme .project-icon i {
    color: #ffd700 !important;
}

body.dark-theme .project-item:hover .project-icon {
    background: rgba(255, 215, 0, 0.12);
}

body.dark-theme .project-item:hover .project-icon i {
    color: #ffd700 !important;
}

.project-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.project-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.project-item:hover .project-name {
    color: #1a1a1a;
}

body.dark-theme .project-name {
    color: #e0e0e0;
}

body.dark-theme .project-item:hover .project-name {
    color: #ffd700;
}

.project-desc {
    font-size: 0.7rem;
    color: #666;
    margin: 0;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

body.dark-theme .project-desc {
    color: #8aaec0;
}

.project-arrow {
    display: flex;
    align-items: center;
    color: #1a1a1a;
    opacity: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.project-item:hover .project-arrow {
    color: #007aff;
    opacity: 1;
    transform: translateX(-4px);
}

body.dark-theme .project-arrow {
    color: #ffd700;
}

body.dark-theme .project-item:hover .project-arrow {
    color: #ffd700;
}

.projects-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 12px 0 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

body.dark-theme .projects-pagination {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.projects-page-nav {
    background: var(--tab-glass-bg, rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid var(--tab-glass-border, rgba(255, 255, 255, 0.2));
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tab-icon-color, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 4px 15px var(--tab-glass-shadow, rgba(0, 0, 0, 0.04)), inset 0 1px 0 var(--tab-glass-highlight, rgba(255, 255, 255, 0.3));
    position: relative;
    overflow: hidden;
    padding: 0;
}

.projects-page-nav::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    border-radius: 50% 50% 12px 12px / 50% 50% 8px 8px;
    background: transparent;
    pointer-events: none;
}

body.dark-theme .projects-page-nav::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.0) 100%);
}

.projects-page-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle 30px at var(--pnx, 50%) var(--pny, 50%), var(--tab-glare-color, rgba(255, 255, 255, 0.15)) 0%, transparent 100%);
}

.projects-page-nav:hover::after {
    opacity: 1;
}

body.dark-theme .projects-page-nav {
    --tab-glass-bg: rgba(30, 30, 35, 0.35);
    --tab-glass-border: rgba(255, 255, 255, 0.08);
    --tab-glass-shadow: rgba(0, 0, 0, 0.15);
    --tab-glass-highlight: rgba(255, 255, 255, 0.05);
    --tab-glare-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.projects-page-nav:hover:not(:disabled) {
    background: #007aff;
    border-color: #007aff;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.dark-theme .projects-page-nav:hover:not(:disabled) {
    background: #ffd700;
    border-color: #ffd700;
    color: #0a1628;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.projects-page-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

.projects-page-nav i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.projects-page-nav:hover:not(:disabled) i {
    transform: scale(1.1);
}

.projects-page-btn {
    background: var(--tab-glass-bg, rgba(255, 255, 255, 0.12));
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid var(--tab-glass-border, rgba(255, 255, 255, 0.2));
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tab-icon-color, rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 4px 15px var(--tab-glass-shadow, rgba(0, 0, 0, 0.04)), inset 0 1px 0 var(--tab-glass-highlight, rgba(255, 255, 255, 0.3));
    position: relative;
    overflow: hidden;
}

.projects-page-btn::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 40%;
    border-radius: 50% 50% 12px 12px / 50% 50% 8px 8px;
    background: transparent;
    pointer-events: none;
}

body.dark-theme .projects-page-btn::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.0) 100%);
}

.projects-page-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle 30px at var(--ppx, 50%) var(--ppy, 50%), var(--tab-glare-color, rgba(255, 255, 255, 0.15)) 0%, transparent 100%);
}

.projects-page-btn:hover::after {
    opacity: 1;
}

body.dark-theme .projects-page-btn {
    --tab-glass-bg: rgba(30, 30, 35, 0.35);
    --tab-glass-border: rgba(255, 255, 255, 0.08);
    --tab-glass-shadow: rgba(0, 0, 0, 0.15);
    --tab-glass-highlight: rgba(255, 255, 255, 0.05);
    --tab-glare-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.projects-page-btn:hover:not(:disabled) {
    background: #007aff;
    border-color: #007aff;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.dark-theme .projects-page-btn:hover:not(:disabled) {
    background: #ffd700;
    border-color: #ffd700;
    color: #0a1628;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.projects-page-btn.active {
    background: #007aff;
    border-color: #007aff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.dark-theme .projects-page-btn.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #0a1628;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.projects-page-btn.active::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.0) 100%);
}

.resume-footer {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

body.dark-theme .resume-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1a1a1a;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.github-link:hover {
    background: #007aff;
    color: white;
    border-color: #007aff;
    transform: scale(1.02);
}

body.dark-theme .github-link {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.04);
}

body.dark-theme .github-link:hover {
    background: #ffd700;
    color: #0a1628;
    border-color: #ffd700;
}

.github-link i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.github-link:hover i {
    transform: translateX(-3px);
}

.project-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

body.dark-theme .project-modal {
    background: rgba(0, 0, 0, 0.6);
}

.project-modal.open {
    opacity: 1;
    display: flex !important;
}

.project-modal-content {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 28px 24px;
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.08),
        0 10px 30px -10px rgba(0, 0, 0, 0.04),
        inset 0 2px 3px -1px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px -1px rgba(255, 255, 255, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    max-height: 85vh;
    overflow-y: auto;
}

body.dark-theme .project-modal-content {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(50px) saturate(200%);
    -webkit-backdrop-filter: blur(50px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 
        0 40px 80px -20px rgba(0, 0, 0, 0.5),
        0 10px 30px -10px rgba(0, 0, 0, 0.3),
        inset 0 2px 3px -1px rgba(255, 255, 255, 0.08),
        inset 0 -2px 4px -1px rgba(255, 255, 255, 0.03),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.project-modal.open .project-modal-content {
    transform: scale(1) translateY(0);
}

.project-modal-content::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 46%;
    border-radius: 20px 20px 12px 12px / 20px 20px 8px 8px;
    background: transparent;
    pointer-events: none;
    z-index: 6;
    transition: background 0.5s ease;
}

body.dark-theme .project-modal-content::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

.project-modal-content .modal-glare-container {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.project-modal-content .modal-glare {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    mix-blend-mode: overlay;
}

body.dark-theme .project-modal-content .modal-glare {
    background: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 100%);
}

.project-modal-content:hover .modal-glare {
    opacity: 1;
}

.project-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent !important;
    border: none !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    z-index: 2;
    padding: 0;
    transition: all 0.3s ease;
}

body.dark-theme .project-modal-close {
    color: rgba(255, 255, 255, 0.25);
}

.project-modal-close:hover {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #1a1a1a !important;
}

body.dark-theme .project-modal-close:hover {
    background: rgba(255, 215, 0, 0.08) !important;
    color: #ffd700 !important;
}

.project-modal-close i {
    width: 20px;
    height: 20px;
}

.project-modal-content-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.project-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 12px auto;
}

body.dark-theme .project-modal-icon {
    background: rgba(255, 215, 0, 0.08);
    color: #ffd700;
}

.project-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #1a1a1a;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
}

body.dark-theme .project-modal-title {
    color: #e0e0e0;
}

.project-modal-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #444;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    margin: 0 0 24px 0;
    text-align: center;
}

body.dark-theme .project-modal-desc {
    color: #b0b8c8;
}

.project-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1a1a1a;
    border-radius: 30px;
    font-family: 'Estedad', 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-modal-link:hover {
    background: #007aff;
    border-color: #007aff;
    color: white;
    transform: scale(1.02);
}

body.dark-theme .project-modal-link {
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.06);
    color: #ffd700;
}

body.dark-theme .project-modal-link:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #0a1628;
}

.project-modal-link i {
    width: 18px;
    height: 18px;
}

.project-modal-link i:last-child {
    width: 16px;
    height: 16px;
}

.project-modal-link-wrapper {
    display: flex;
    justify-content: center;
}

.project-modal-content::-webkit-scrollbar {
    width: 4px;
}

.project-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.project-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

body.dark-theme .project-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.15);
}

@media (max-width: 768px) {
    .resume-box {
        padding: 18px 16px;
        border-radius: 18px;
    }
    .resume-title {
        font-size: 0.95rem;
    }
    .project-item {
        padding: 8px 10px;
        gap: 10px;
    }
    .project-item:hover::before {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    body.dark-theme .project-item::before {
        inset: 2px 4px;
        border-radius: 8px;
    }
    .project-number {
        font-size: 0.8rem;
        min-width: 24px;
    }
    .project-name {
        font-size: 0.85rem;
    }
    .project-desc {
        font-size: 0.65rem;
    }
    .project-icon {
        min-width: 30px;
        width: 30px;
        height: 30px;
    }
    .project-icon i {
        font-size: 16px;
    }
    .projects-page-nav {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .github-link {
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    .projects-page-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }
    .project-modal-content {
        max-width: 95%;
        padding: 24px 20px;
        border-radius: 18px;
    }
    .project-modal-title {
        font-size: 1.1rem;
    }
    .project-modal-desc {
        font-size: 0.85rem;
    }
    .project-modal-link {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
    .project-modal-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    .project-modal-close {
        top: 14px;
        right: 14px;
        width: 32px;
        height: 32px;
    }
    .project-modal-close i {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .resume-box {
        padding: 16px 14px;
        border-radius: 16px;
    }
    .resume-title {
        font-size: 0.9rem;
    }
    .project-item {
        padding: 6px 8px;
        gap: 8px;
    }
    .project-item:hover::before {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    body.dark-theme .project-item::before {
        inset: 1px 3px;
        border-radius: 6px;
    }
    .project-number {
        font-size: 0.75rem;
        min-width: 20px;
    }
    .project-name {
        font-size: 0.8rem;
    }
    .project-desc {
        font-size: 0.6rem;
    }
    .project-icon {
        min-width: 26px;
        width: 26px;
        height: 26px;
    }
    .project-icon i {
        font-size: 14px;
    }
    .projects-page-nav {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    .github-link {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .github-link i {
        font-size: 16px;
    }
    .project-modal-content {
        max-width: 98%;
        padding: 20px 16px;
        border-radius: 16px;
    }
    .project-modal-title {
        font-size: 1rem;
    }
    .project-modal-desc {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    .project-modal-link {
        font-size: 0.75rem;
        padding: 6px 16px;
        gap: 6px;
    }
    .project-modal-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .project-modal-close {
        top: 12px;
        right: 12px;
        width: 28px;
        height: 28px;
    }
    .project-modal-close i {
        width: 16px;
        height: 16px;
    }
}