/* ─── ScrapChef Featured Section ─── */
#scrapchef {
    border: 2px solid #f59e0b;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15);
}

.scrapchef-intro {
    text-align: center;
    margin-bottom: 24px;
}

.scrapchef-intro p {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 16px;
    color: #b0b0b0;
}

body.light .scrapchef-intro p {
    color: #555;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.screenshot-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.screenshot-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

body.light .screenshot-img {
    border-color: rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 768px) {
    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .screenshot-img {
        height: 240px;
    }
}

@media screen and (max-width: 480px) {
    .screenshot-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .screenshot-img {
        height: 180px;
    }
}

/* ─── Skill Icon Colors ─── */
.icon-cpp {
    color: #00599C;
}

.icon-java {
    color: #007396;
}

.icon-csharp {
    color: #512BD4;
}

.icon-python {
    color: #3776AB;
}

.icon-html {
    color: #E34F26;
}

.icon-js {
    color: #F7DF1E;
}

.icon-git {
    color: #F05032;
}

.icon-nextjs {
    color: #61DAFB;
}

.icon-node {
    color: #339933;
}

.icon-aspnet {
    color: #00A4EF;
}

.icon-tailwind {
    color: #38BDF8;
}

.icon-postgres {
    color: #336791;
}

.icon-flutter {
    color: #02569B;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b5cf6;
}
body.light ::-webkit-scrollbar-track {
    background: #f5f7fa;
}

/* ─── Base ─── */
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: #0a0a0f;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
    background-position: -2px -2px, -2px -2px, -1px -1px, -1px -1px;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 0 16px;
    margin: 0;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ─── Sticky Navigation ─── */
.sticky-nav {
    position: sticky;
    top: 20px;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0 auto 24px;
    width: fit-content;
    max-width: 92%;
    background: rgba(10, 10, 15, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 6px 10px;
    transition: all 0.3s ease;
}
.sticky-nav a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 40px;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
    white-space: nowrap;
}
.sticky-nav a:hover {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.15);
}
.sticky-nav a.active {
    color: #ffffff;
    background: rgba(99, 102, 241, 0.25);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}
body.light .sticky-nav {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
body.light .sticky-nav a {
    color: #555;
}
body.light .sticky-nav a:hover {
    color: #1a1a1a;
    background: rgba(99, 102, 241, 0.08);
}
body.light .sticky-nav a.active {
    color: #ffffff;
    background: #6366f1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* ─── Header ─── */
header {
    text-align: center;
    padding: 32px 20px 28px;
    max-width: 900px;
    margin: 0 auto 30px;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}
.header-content {
    position: relative;
    z-index: 1;
}

#name {
    font-size: 2.4rem;
    margin-bottom: 4px;
    color: #ffffff;
    font-weight: 700;
    animation: fadeIn 0.2s ease-out 0.05s both;
    display: inline-block;
    letter-spacing: -0.5px;
}

#profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 10px auto 8px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: glowPulse 3s ease-in-out infinite, fadeIn 0.2s ease-out 0.1s both;
    display: block;
}
@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 255, 255, 0.05);
    }
}
#profile-img:hover {
    transform: scale(1.06) rotate(2deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

#course-year {
    font-size: 0.95rem;
    color: #a0a0a0;
    margin: 6px 0 0;
    font-weight: 400;
    animation: fadeIn 0.2s ease-out 0.15s both;
}

.header-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}
.theme-toggle {
    padding: 8px 20px;
    background: #4b5563;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: fadeIn 0.2s ease-out 0.2s both;
}
.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.light .theme-toggle {
    background: #6b7280;
}

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

/* ─── Sections ─── */
section {
    margin: 30px auto;
    padding: 36px 28px;
    max-width: 1200px;
    background: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: fadeInUp 0.25s ease-out both;
}
section:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
section h2 {
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: #ffffff;
    text-align: center;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}
section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

/* ─── About ─── */
#about p {
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.8;
    color: #b0b0b0;
    text-align: justify;
}
#about p:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
    color: #d0d0d0;
}

/* ─── Skills Marquee ─── */
.skills-marquee {
    overflow: hidden;
    width: 100%;
    display: flex;
    position: relative;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.skills-track {
    display: flex;
    width: max-content;
    animation: scrollBelt 30s linear infinite;
}
.skills-group {
    display: flex;
    gap: 20px;
    padding: 12px 10px;
}
.skill-item {
    background: rgba(15, 15, 25, 0.6);
    padding: 20px 22px;
    width: 150px;
    flex-shrink: 0;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(15px);
}
.skills-marquee:hover .skills-track {
    animation-play-state: paused;
}
@keyframes scrollBelt {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.skill-item i {
    font-size: 2.6rem;
    transition: transform 0.3s ease;
}
.skill-item span {
    font-weight: 600;
    font-size: 1rem;
    color: #e0e0e0;
}
.skill-item:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    background: rgba(15, 15, 25, 0.8);
    border-color: rgba(99, 102, 241, 0.4);
}
.skill-item:hover i {
    transform: scale(1.15) rotate(6deg);
}

/* ─── Certifications ─── */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.achievement-item {
    background-color: rgba(15, 15, 25, 0.6);
    padding: 20px 18px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}
.achievement-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}
.certificate-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 12px;
    transition: transform 0.15s ease;
    cursor: pointer;
}
.certificate-img:hover {
    transform: scale(1.04);
}
.achievement-item h3 {
    margin: 8px 0 4px;
    color: #ffffff;
    font-size: 1.05rem;
}
.achievement-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* ─── Projects ─── */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-top: 16px;
}
.project-item {
    background-color: rgba(15, 15, 25, 0.6);
    padding: 22px 20px;
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(15px);
}
.project-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transition: left 0.5s ease;
}
.project-item:hover::before {
    left: 100%;
}
.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 12px;
    transition: transform 0.15s ease;
    cursor: pointer;
}
.project-img:hover {
    transform: scale(1.03);
}
.project-item h3 {
    margin: 8px 0 4px;
    color: #ffffff;
    font-size: 1.1rem;
}
.project-item p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 0.95rem;
}
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 12px;
}
.tech-tags span {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
    color: #a5b4fc;
}
.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}
.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.hci-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
body.light .hci-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1a1a2e;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

/* ─── Strong, visible gold border ─── */
.featured-project {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15), inset 0 0 20px rgba(245, 158, 11, 0.05) !important;
    transition: all 0.3s ease;
}
.featured-project:hover {
    border-color: #d97706 !important;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.25), inset 0 0 30px rgba(245, 158, 11, 0.08) !important;
    transform: translateY(-6px) scale(1.01);
}
body.light .featured-project {
    border-color: #fbbf24 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.08), inset 0 0 20px rgba(245, 158, 11, 0.02) !important;
}
body.light .featured-project:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.15), inset 0 0 30px rgba(245, 158, 11, 0.05) !important;
}

/* ─── Folder ─── */
.folder-container {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}
.folder-tab {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}
.folder-tab:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}
.folder-tab i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.folder-tab.collapsed i {
    transform: rotate(-90deg);
}
.folder-content {
    background: rgba(15, 15, 25, 0.6);
    padding: 20px;
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}
.folder-content.collapsed {
    max-height: 0;
    padding: 0 20px;
}
.folder-content .projects-container {
    margin-top: 0;
}

/* ─── Contact ─── */
#contact {
    text-align: center;
}
#contact p {
    margin: 14px auto;
    font-size: 1rem;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #b0b0b0;
}
#contact a {
    color: #6366f1;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}
#contact a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: #6366f1;
    transition: width 0.3s ease;
}
#contact a:hover::after {
    width: 100%;
}
#contact a:hover {
    color: #8b5cf6;
}
#contact p strong {
    color: #ffffff;
    font-weight: 700;
    min-width: 70px;
    text-align: right;
}

/* ─── Social Links ─── */
.social-links {
    margin-top: 30px;
    text-align: center;
    padding: 16px 0;
}
.social-links h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: #ffffff;
    font-weight: 600;
}
.social-link,
body.light .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    margin: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}
.social-link:hover::before {
    left: 100%;
}
.social-link:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.social-link i,
body.light .social-link i {
    color: #ffffff !important;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}
.social-link:hover i {
    transform: rotate(6deg) scale(1.08);
}

/* ─── GitHub social button ─── */
.github {
    background: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
}
.github:hover {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ─── LinkedIn social button ─── */
.linkedin {
    background: linear-gradient(135deg, #0077B5 0%, #005885 100%);
}
.linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #004562 100%);
    box-shadow: 0 8px 30px rgba(0, 119, 181, 0.4);
}

/* ─── Footer ─── */
footer {
    text-align: center;
    padding: 24px 20px;
    margin-top: 40px;
    color: #a0a0a0;
    font-size: 0.9rem;
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Back to Top ─── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}

/* ─── Light Theme ─── */
body.light {
    background-color: #f5f7fa;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(99, 102, 241, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.05) 1px, transparent 1px);
    color: #333;
}
body.light header {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
body.light #name {
    color: #1a1a2e;
}
body.light #profile-img {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
body.light #profile-img:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}
body.light #course-year {
    color: #666;
}
body.light section {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
body.light section h2 {
    color: #2c3e50;
}
body.light #about p {
    color: #555;
}
body.light #about p:first-of-type {
    color: #2c3e50;
}
body.light .skill-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
body.light .skill-item span {
    color: #333;
}
body.light .achievement-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
body.light .achievement-item h3 {
    color: #2c3e50;
}
body.light .achievement-item p {
    color: #666;
}
body.light .project-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
body.light .project-item h3 {
    color: #2c3e50;
}
body.light .project-item p {
    color: #666;
}
body.light footer {
    color: #666;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
body.light #contact p {
    color: #666;
}
body.light #contact a {
    color: #6366f1;
}
body.light #contact p strong {
    color: #2c3e50;
}
body.light .social-links h3 {
    color: #2c3e50;
}
body.light .folder-content {
    background: rgba(255, 255, 255, 0.92);
}
body.light .tech-tags span {
    background: rgba(99, 102, 241, 0.08);
    color: #4338ca;
}

/* ─── Modal ─── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.15s ease;
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.15s ease;
}
@keyframes zoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.1s ease;
    user-select: none;
}
.close:hover,
.close:focus {
    color: #6366f1;
}

/* ─── Responsive ─── */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    #name {
        font-size: 1.8rem;
    }
    #profile-img {
        width: 100px;
        height: 100px;
    }
    section h2 {
        font-size: 1.5rem;
    }
    .achievements-container,
    .projects-container {
        grid-template-columns: 1fr;
    }
    .sticky-nav {
        gap: 12px;
        padding: 6px 12px;
        border-radius: 40px;
        top: 12px;
    }
    .sticky-nav a {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    .skill-item {
        padding: 16px;
        width: 120px;
    }
    .skill-item i {
        font-size: 2rem;
    }
    .skill-item span {
        font-size: 0.85rem;
    }
    .social-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .social-link i {
        font-size: 1.1rem;
    }
    .modal-content {
        max-width: 95%;
        max-height: 80%;
    }
    .close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}

@media screen and (max-width: 480px) {
    #name {
        font-size: 1.5rem;
    }
    #profile-img {
        width: 85px;
        height: 85px;
    }
    section {
        padding: 18px 14px;
    }
    section h2 {
        font-size: 1.3rem;
    }
    .sticky-nav {
        gap: 8px;
        padding: 4px 8px;
        border-radius: 30px;
    }
    .sticky-nav a {
        font-size: 0.65rem;
        padding: 4px 10px;
    }
    .skills-group {
        gap: 12px;
    }
    .skill-item {
        padding: 14px;
        width: 100px;
    }
    .skill-item i {
        font-size: 1.6rem;
    }
    .skill-item span {
        font-size: 0.75rem;
    }
    .project-item {
        padding: 16px 14px;
    }
    .project-img {
        height: 150px;
    }
    .certificate-img {
        height: 130px;
    }
}