﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pink: #f472b6;
    --pink-dark: #e879a0;
    --purple: #a78bfa;
    --purple-dark: #7c3aed;
    --blue-light: #bae6fd;
    --bg: #f8f7ff;
    --bg-card: #ffffff;
    --text-dark: #0f0f1a;
    --text-muted: #6b7280;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 32px rgba(167,139,250,0.18);
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ── NAVBAR ── */
header.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 60px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav-links a {
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--text-muted);
        letter-spacing: 0.06em;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: var(--text-dark);
        }

.btn-get-in-touch {
    border: 1.5px solid var(--text-dark) !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    transition: background 0.25s, color 0.25s !important;
}

    .btn-get-in-touch:hover {
        background: var(--text-dark) !important;
        color: #fff !important;
    }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatDelayed {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-fade-up {
    animation: fadeUp 0.7s ease both;
}

.animate-fade-in {
    animation: fadeIn 0.9s ease both;
}

.animate-fade-up-delay {
    animation: fadeUp 0.7s ease 0.3s both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.floating-delayed {
    animation: floatDelayed 3.5s ease-in-out 0.5s infinite;
}

.floating-slow {
    animation: float 4.5s ease-in-out 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ── HERO ── */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 80px 60px;
    max-width: 1140px;
    margin: 0 auto;
    gap: 60px;
    min-height: 88vh;
}

.hero-eyebrow {
    font-size: 1rem;
    color: var(--pink);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.hero-name {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-title {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.accent {
    color: var(--pink);
    font-weight: 700;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 420px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(244,114,182,0.38);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(244,114,182,0.45);
        color: #fff;
    }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
    transition: border-color 0.2s, background 0.2s;
}

    .btn-secondary:hover {
        border-color: var(--purple);
        background: #f5f3ff;
        color: var(--purple-dark);
    }

/* ── HERO IMAGE ── */
.hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-ring {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbcfe8, #bae6fd, #ddd6fe, #fbcfe8);
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px #fff, 0 0 60px rgba(167,139,250,0.25);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ── BADGES ── */
/* ── HERO IMAGE ── */
.hero-image-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 420px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-ring {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbcfe8, #bae6fd, #ddd6fe, #fbcfe8);
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 6px #fff, 0 0 60px rgba(167,139,250,0.25);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* ── BADGES ── */
.badge {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.10);
    padding: 7px 16px;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text-dark);
    white-space: nowrap;
}

/* توزيع دائري — 12 badge حول الصورة */

/* أعلى يسار */
.badge-code {
    top: 20px;
    left: 30px;
    color: var(--pink);
    font-size: 1.1rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
}

/* أعلى وسط يمين */
.badge-dotnet {
    top: 30px;
    right: 60px;
    color: #512bd4;
    border-left: 3px solid #512bd4;
}

/* أعلى يمين */
.badge-kotlin {
    top: 80px;
    right: 10px;
    color: #7f52ff;
    border-left: 3px solid #7f52ff;
}

/* يمين وسط أعلى */
.badge-firebase {
    top: 160px;
    right: -10px;
    color: #ff6f00;
    border-left: 3px solid #ff6f00;
}

/* يمين وسط أسفل */
.badge-cpp {
    top: 240px;
    right: 0px;
    color: #00599c;
    border-left: 3px solid #00599c;
}

/* أسفل يمين */
.badge-ui {
    bottom: 60px;
    right: 30px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    font-size: 0.8rem;
    border: none;
}

/* أسفل وسط يمين */
.badge-w3 {
    bottom: 20px;
    right: 110px;
    color: #04aa6d;
    border-left: 3px solid #04aa6d;
}

/* أسفل وسط يسار */
.badge-python {
    bottom: 20px;
    left: 90px;
    color: #3776ab;
    border-left: 3px solid #3776ab;
}

/* أسفل يسار */
.badge-angular {
    bottom: 65px;
    left: 20px;
    color: #dd1b16;
    border-left: 3px solid #dd1b16;
}

/* يسار وسط أسفل */
.badge-db {
    top: 240px;
    left: 0px;
    color: #13aa52;
    border-left: 3px solid #13aa52;
}

/* يسار وسط أعلى */
.badge-ionic {
    top: 155px;
    left: -10px;
    color: #3880ff;
    border-left: 3px solid #3880ff;
}

/* يسار أعلى */
.badge-bootstrap {
    top: 75px;
    left: 10px;
    color: #7952b3;
    border-left: 3px solid #7952b3;
}

/* ── STATS BAR ── */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius);
    margin: 0 80px 60px;
    padding: 30px 40px;
    box-shadow: var(--shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* ── SECTION COMMON ── */
.section-header {
    margin-bottom: 36px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pink);
    background: #fce7f3;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}

/* ── EDUCATION ── */
.education-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 80px;
}

.edu-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform 0.25s, box-shadow 0.25s;
    border: 1px solid #f0f0f8;
}

    .edu-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.edu-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.edu-info h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.edu-major {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}

.edu-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.edu-badge {
    font-size: 0.78rem;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--text-dark);
    padding: 5px 14px;
    border-radius: 50px;
}

    .edu-badge.gpa {
        background: linear-gradient(135deg, #fce7f3, #ede9fe);
        color: var(--purple-dark);
    }

/* ── SKILLS ── */
.skills-section {
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 80px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: fadeUp 0.6s ease both;
}

    .skill-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.skill-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.skill-card h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.skill-card p {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── ABOUT ── */
.about-section {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 80px;
}

.about-content {
    flex: 1;
}

    .about-content p {
        font-size: 0.92rem;
        color: var(--text-muted);
        line-height: 1.8;
        margin-bottom: 16px;
    }

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    font-size: 0.82rem;
    font-weight: 600;
    background: #f5f3ff;
    color: var(--purple-dark);
    padding: 7px 16px;
    border-radius: 50px;
    border: 1px solid #ede9fe;
    transition: background 0.2s;
}

    .tag:hover {
        background: #ede9fe;
    }

.about-visual {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 240px;
}

.visual-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 14px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    line-height: 1.4;
    transition: transform 0.2s;
    animation: float 4s ease-in-out infinite;
}

    .visual-card:hover {
        transform: scale(1.05);
    }

    .visual-card small {
        font-weight: 400;
        color: var(--text-muted);
        font-size: 0.72rem;
    }

.vc1 {
    animation-delay: 0s;
    border-top: 3px solid #7f52ff;
}

.vc2 {
    animation-delay: 0.5s;
    border-top: 3px solid #dd1b16;
}

.vc3 {
    animation-delay: 1s;
    border-top: 3px solid var(--pink);
}

.vc4 {
    animation-delay: 1.5s;
    border-top: 3px solid var(--purple);
}

/* ── FOOTER ── */
.portfolio-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 80px;
    border-top: 1px solid #f0f0f8;
    background: #fff;
}

.footer-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    gap: 18px;
}

    .footer-links a {
        color: var(--text-muted);
        transition: color 0.2s, transform 0.2s;
        display: flex;
    }

        .footer-links a:hover {
            color: var(--pink);
            transform: translateY(-2px);
        }

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    header.navbar {
        padding: 16px 24px;
    }

    .hero-section {
        flex-direction: column;
        padding: 50px 24px 40px;
        min-height: auto;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        max-width: 100%;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 300px;
    }

    .hero-image-ring {
        width: 240px;
        height: 240px;
    }

    .badge-ionic, .badge-dotnet, .badge-firebase,
    .badge-db, .badge-cpp, .badge-w3 {
        display: none;
    }

    .stats-bar {
        margin: 0 24px 40px;
        padding: 20px;
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .education-section, .skills-section, .about-section {
        padding: 0 24px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        flex-direction: column;
    }

    .about-visual {
        width: 100%;
    }

    .portfolio-footer {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
        text-align: center;
    }
}

/* ── PROJECTS PAGE ── */
.projects-hero {
    text-align: center;
    padding: 70px 80px 50px;
    max-width: 700px;
    margin: 0 auto;
}

.projects-hero-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: var(--text-dark);
    margin: 12px 0 16px;
}

.projects-hero-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.projects-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 60px 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.25s, box-shadow 0.25s;
}

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

    .project-card.featured {
        border-top: 3px solid var(--pink);
    }

        .project-card.featured:nth-child(2) {
            border-top-color: var(--purple);
        }

        .project-card.featured:nth-child(3) {
            border-top-color: #3880ff;
        }

        .project-card.featured:nth-child(4) {
            border-top-color: #04aa6d;
        }

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.project-icon {
    font-size: 1.8rem;
}

.project-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    background: #f3f4f6;
    color: #555;
}

    .tech-badge.aspnet {
        background: #ede9fe;
        color: #512bd4;
    }

    .tech-badge.angular {
        background: #fee2e2;
        color: #dd1b16;
    }

    .tech-badge.ionic {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .tech-badge.kotlin {
        background: #ede9fe;
        color: #7f52ff;
    }

    .tech-badge.firebase {
        background: #fff7ed;
        color: #ff6f00;
    }

    .tech-badge.csharp {
        background: #e0e7ff;
        color: #3730a3;
    }

    .tech-badge.winforms {
        background: #f0fdf4;
        color: #166534;
    }

    .tech-badge.java {
        background: #fff7ed;
        color: #c2410c;
    }

    .tech-badge.oop {
        background: #fce7f3;
        color: #be185d;
    }

    .tech-badge.js {
        background: #fefce8;
        color: #854d0e;
    }

    .tech-badge.web {
        background: #f0fdf4;
        color: #065f46;
    }

    .tech-badge.ai {
        background: #f5f3ff;
        color: #6d28d9;
    }

.project-card h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.project-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    flex: 1;
}

.project-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.link-github, .link-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 50px;
    transition: all 0.2s;
}

.link-github {
    background: #f3f4f6;
    color: var(--text-dark);
    border: 1px solid #e5e7eb;
}

    .link-github:hover {
        background: var(--text-dark);
        color: #fff;
        border-color: var(--text-dark);
    }

.link-live {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    color: #fff;
    box-shadow: 0 4px 12px rgba(244,114,182,0.3);
}

    .link-live:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(244,114,182,0.4);
        color: #fff;
    }

/* ADDITIONAL */
.additional-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 60px;
}

.additional-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.additional-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    transition: transform 0.2s;
}

    .additional-card:hover {
        transform: translateY(-3px);
    }

.additional-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.additional-card h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.additional-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .projects-hero {
        padding: 50px 24px 30px;
    }

    .projects-section {
        padding: 0 24px 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .additional-section {
        padding: 0 24px;
    }

    .additional-grid {
        grid-template-columns: 1fr;
    }
}
/* ── CERTIFICATES SECTION ── */
.certificates-section {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 80px;
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.small-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.6s ease both;
}

    .small-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.cert-text {
    flex: 1;
    min-width: 0;
}

.cert-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .cert-thumb:hover {
        transform: scale(1.08);
        box-shadow: 0 6px 18px rgba(167, 139, 250, 0.3);
    }

/* ── CERTIFICATE LIGHTBOX MODAL ── */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.82);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 40px;
}

    .cert-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cert-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    animation: fadeUp 0.3s ease both;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .cert-modal-content img {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius);
        box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        object-fit: contain;
        background: #fff;
    }

.cert-modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

    .cert-modal-close:hover {
        background: rgba(255,255,255,0.25);
        transform: scale(1.08);
    }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .certificates-section {
        padding: 0 24px;
    }

    .grid-2col {
        grid-template-columns: 1fr;
    }

    .small-card {
        padding: 16px;
    }
}

@media (max-width: 600px) {
    .cert-modal-close {
        top: 14px;
        right: 14px;
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .cert-modal-overlay {
        padding: 16px;
    }
}

/* ── TECHNICAL SKILLS SECTION ── */
.tech-skills-section {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 80px;
}

.tech-skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 32px;
}

.tech-skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.25s ease;
}

    .tech-skill-item:hover {
        transform: translateY(-4px);
    }

.tech-skill-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    margin-bottom: 14px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tech-skill-item:hover .tech-skill-icon {
    box-shadow: var(--shadow-hover);
    transform: scale(1.06);
}

.tech-skill-item h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.tech-skill-item p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── SKILL INFO MODAL CONTENT ── */
.skill-modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px 40px;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeUp 0.3s ease both;
}

    .skill-modal-content h3 {
        font-size: 1.3rem;
        font-weight: 900;
        color: var(--text-dark);
        margin-bottom: 12px;
    }

    .skill-modal-content p {
        font-size: 0.95rem;
        color: var(--text-muted);
        line-height: 1.6;
    }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .tech-skills-section {
        padding: 0 24px;
    }

    .tech-skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .skill-modal-content {
        padding: 28px 24px;
        max-width: 90vw;
    }
}
/* ── MY TEAMS SECTION ── */
.teams-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 60px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.6s ease both;
}

    .content-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-hover);
    }

.card-body {
    padding: 26px;
}

/* ── BADGES (status pill at top of card) ── */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
}

.badge-amber {
    background: #fef3c7;
    color: #b45309;
}

.badge-pink {
    background: #fce7f3;
    color: #be185d;
}

.badge-purple {
    background: #ede9fe;
    color: var(--purple-dark);
}

/* ── TAG PILLS (skills/topics row) ── */
.tag-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin: 0 6px 6px 0;
}

.tag-pink {
    background: #fce7f3;
    color: #be185d;
}

.tag-purple {
    background: #ede9fe;
    color: var(--purple-dark);
}

/* ── TEAM MEDIA (main image + thumbnails) ── */
.team-media {
    margin-top: 18px;
}

.team-main-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

    .team-main-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.team-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-dark);
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

    .team-play-btn:hover {
        transform: translate(-50%, -50%) scale(1.08);
        background: #fff;
    }

.team-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.team-thumb {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #f0f0f8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .team-thumb:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 14px rgba(167,139,250,0.3);
    }

/* ── TEAM MEMBERS FOOTER ── */
.member-pill {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 50px;
    margin: 0 6px 6px 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .teams-section {
        padding: 0 24px;
    }

    .teams-grid {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 20px;
    }
}

//card
/* تحديد لون الجزء العلوي لكل بطاقة باستخدام ترتيبها */
.project-card:nth-child(1) {
    border-top: 5px solid #FFB7B2;
}
/* باستيل وردي */
.project-card:nth-child(2) {
    border-top: 5px solid #FFDAC1;
}
/* باستيل برتقالي */
.project-card:nth-child(3) {
    border-top: 5px solid #E2F0CB;
}
/* باستيل أخضر */
.project-card:nth-child(4) {
    border-top: 5px solid #B5EAD7;
}
/* باستيل تركواز */
.project-card:nth-child(5) {
    border-top: 5px solid #C7CEEA;
}
/* باستيل أزرق */
.project-card:nth-child(6) {
    border-top: 5px solid #E0BBE4;
}
/* باستيل بنفسجي */
.project-card:nth-child(7) {
    border-top: 5px solid #FF9AA2;
}
/* باستيل أحمر فاتح */
.project-card:nth-child(8) {
    border-top: 5px solid #957DAD;
}
/* باستيل بنفسجي غامق قليلاً */
.project-card:nth-child(9) {
    border-top: 5px solid #A2E1DB;
}
/* باستيل أخضر مائي */
.project-card:nth-child(10) {
    border-top: 5px solid #FDFD96;
}
/* باستيل أصفر */


/* ── RESEARCH SECTION ── */
.research-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 60px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.research-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
    border-top: 3px solid var(--purple);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.25s, box-shadow 0.25s;
}

    .research-card:nth-child(2) {
        border-top-color: var(--pink);
    }

    .research-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-hover);
    }

.research-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.research-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--purple);
    background: #f5f3ff;
    padding: 4px 12px;
    border-radius: 50px;
}

.research-card:nth-child(2) .research-tag {
    color: var(--pink);
    background: #fce7f3;
}

.research-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 50px;
}

.research-card h3 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1.3;
}

.research-subtitle {
    font-size: 0.82rem;
    color: var(--purple);
    font-weight: 600;
    font-style: italic;
}

.research-card:nth-child(2) .research-subtitle {
    color: var(--pink);
}

.research-desc {
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.research-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.highlight-pill {
    font-size: 0.7rem;
    font-weight: 600;
    background: #f3f4f6;
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid #e5e7eb;
}

.research-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

.btn-research {
    display: inline-block;
    margin-top: auto;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 4px 14px rgba(124,58,237,0.28);
}

.research-card:nth-child(2) .btn-research {
    background: linear-gradient(135deg, var(--pink), var(--pink-dark));
    box-shadow: 0 4px 14px rgba(244,114,182,0.28);
}

.btn-research:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 900px) {
    .research-section {
        padding: 0 24px;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }
}
/* ── CONTACT SECTION ── */
.contact-section {
    max-width: 1100px;
    margin: 0 auto 80px;
    padding: 0 60px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 16px 0 28px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f8;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .contact-link-item:hover {
        transform: translateX(4px);
        box-shadow: var(--shadow-hover);
    }

.contact-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.github-color {
    background: #24292e;
}

.linkedin-color {
    background: #0077b5;
}

.instagram-color {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
}

.facebook-color {
    background: #1877f2;
}

.contact-link-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-link-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* FORM */
.contact-form-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f8;
}

    .contact-form-card h3 {
        font-size: 1.2rem;
        font-weight: 800;
        margin-bottom: 24px;
        color: var(--text-dark);
    }

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 7px;
    }

.contact-input,
.contact-textarea {
    width: 100%;
    background: #f5f3ff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
}

    .contact-input:focus,
    .contact-textarea:focus {
        border-color: var(--purple);
        box-shadow: 0 0 0 3px rgba(167,139,250,0.15);
        background: #fff;
    }

    .contact-input::placeholder,
    .contact-textarea::placeholder {
        color: #b0a8d0;
    }

.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 6px 20px rgba(124,58,237,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-send:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(124,58,237,0.38);
    }

.contact-success {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ── FOOTER UPGRADED ── */
.portfolio-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 30px;
    padding: 32px 80px;
    border-top: 1px solid #f0f0f8;
    background: #fff;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
}

.footer-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: 22px;
}

    .footer-nav a {
        text-decoration: none;
        font-size: 0.82rem;
        font-weight: 500;
        color: var(--text-muted);
        transition: color 0.2s;
    }

        .footer-nav a:hover {
            color: var(--pink);
        }

.footer-social {
    display: flex;
    gap: 12px;
}

    .footer-social a {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: #f3f4f6;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        transition: background 0.2s, color 0.2s, transform 0.2s;
        border: 1px solid #e5e7eb;
    }

        .footer-social a:hover {
            background: var(--text-dark);
            color: #fff;
            transform: translateY(-2px);
        }

.footer-copy {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid #f0f0f8;
    margin: 0;
}

@media (max-width: 900px) {
    .contact-section {
        padding: 0 24px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .portfolio-footer {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
        gap: 20px;
    }

    .footer-nav, .footer-social {
        justify-content: center;
    }
}

.portfolio-color {
    background: linear-gradient(135deg, var(--pink), var(--purple));
}
/*رتوش */
.projects-hero,
.additional-section .section-header,
.research-section .section-header {
    text-align: center;
}

.projects-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.skills-section
/* ── DARK MODE ── */
:root {
    --bg: #f8f7ff;
    --bg-card: #ffffff;
    --text-dark: #0f0f1a;
    --text-muted: #6b7280;
    --shadow: 0 4px 24px rgba(0,0,0,0.07);
    --shadow-hover: 0 8px 32px rgba(167,139,250,0.18);
}

body.dark {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --text-dark: #f0f0ff;
    --text-muted: #a0a0b8;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 32px rgba(167,139,250,0.25);
    background: var(--bg);
    color: var(--text-dark);
}

    body.dark header.navbar {
        background: rgba(26,26,46,0.9);
    }

    body.dark .project-card,
    body.dark .skill-card,
    body.dark .edu-card,
    body.dark .research-card,
    body.dark .cert-card,
    body.dark .additional-card,
    body.dark .contact-form-card,
    body.dark .contact-link-item,
    body.dark .stat-item,
    body.dark .visual-card {
        background: var(--bg-card);
        border-color: #2a2a4a;
    }

    body.dark .stats-bar,
    body.dark .portfolio-footer {
        background: var(--bg-card);
        border-color: #2a2a4a;
    }

    body.dark .contact-input,
    body.dark .contact-textarea {
        background: #1a1a2e;
        color: var(--text-dark);
        border-color: #3a3a5a;
    }

        body.dark .contact-input:focus,
        body.dark .contact-textarea:focus {
            background: #22223a;
            border-color: var(--purple);
        }

    body.dark .edu-badge {
        background: #2a2a4a;
        color: var(--text-dark);
    }

    body.dark .highlight-pill,
    body.dark .tech-badge {
        background: #2a2a4a;
        color: var(--text-muted);
    }

    body.dark .tag {
        background: #1e1e3a;
        border-color: #3a3a5a;
    }

    body.dark .link-github {
        background: #2a2a4a;
        border-color: #3a3a5a;
        color: var(--text-dark);
    }

    body.dark .footer-social a {
        background: #2a2a4a;
        border-color: #3a3a5a;
    }

    body.dark .skill-circle-icon {
        background: var(--bg-card);
        border-color: #2a2a4a;
    }

    body.dark .nav-links a {
        color: var(--text-muted);
    }

        body.dark .nav-links a:hover {
            color: var(--text-dark);
        }

    body.dark .btn-get-in-touch {
        border-color: var(--text-dark) !important;
        color: var(--text-dark) !important;
    }

        body.dark .btn-get-in-touch:hover {
            background: var(--text-dark) !important;
            color: #0f0f1a !important;
        }

/* Dark Toggle Button */
.dark-toggle {
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    color: var(--text-dark);
    flex-shrink: 0;
}

    .dark-toggle:hover {
        background: var(--purple);
        border-color: var(--purple);
        color: #fff;
    }

body.dark .dark-toggle {
    background: #2a2a4a;
    border-color: #3a3a5a;
    color: var(--text-dark);
}

.icon-moon {
    display: none;
}

.icon-sun {
    display: block;
}

body.dark .icon-moon {
    display: block;
}

body.dark .icon-sun {
    display: none;
}
/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

    .hamburger span {
        display: block;
        width: 24px;
        height: 2.5px;
        background: var(--text-dark);
        border-radius: 4px;
        transition: all 0.3s ease;
    }

    .hamburger.open span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.open span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

@media (max-width: 768px) {
    header.navbar {
        padding: 16px 24px;
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        padding: 20px 24px;
        gap: 4px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        z-index: 150;
        border-top: 1px solid #f0f0f8;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 0.9rem;
            transition: background 0.2s;
            width: 100%;
        }

            .nav-links a:hover {
                background: #f5f3ff;
                color: var(--purple-dark);
            }

        .nav-links .dark-toggle {
            margin-top: 8px;
            width: 38px;
        }

    body.dark .nav-links {
        background: rgba(26,26,46,0.98);
        border-top-color: #2a2a4a;
    }

        body.dark .nav-links a:hover {
            background: #2a2a4a;
        }
}
body.dark .member-pill {
    background: #2a2a4a;
    color: var(--text-dark);
    border: 1px solid #3a3a5a;
}

body.dark .tag-pill {
    color: var(--text-dark);
}

body.dark .tag-pink {
    background: #3a1a2a;
    color: #f9a8d4;
}

body.dark .tag-purple {
    background: #2a1a4a;
    color: #c4b5fd;
}

body.dark .card-badge {
    color: var(--text-dark);
}

body.dark .badge-amber {
    background: #2a1f00;
    color: #fcd34d;
}

body.dark .badge-pink {
    background: #3a1a2a;
    color: #f9a8d4;
}

body.dark .badge-purple {
    background: #2a1a4a;
    color: #c4b5fd;
}

body.dark .content-card {
    background: var(--bg-card);
    border-color: #2a2a4a;
}

body.dark .team-thumb,
body.dark .team-main-img {
    border-color: #2a2a4a;
}

body.dark .skill-modal-content {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
}

    body.dark .skill-modal-content h3 {
        color: var(--text-dark);
    }

    body.dark .skill-modal-content p {
        color: var(--text-muted);
    }

body.dark .cert-modal-close {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

    body.dark .cert-modal-close:hover {
        background: rgba(255,255,255,0.25);
    }

body.dark .project-card {
    background: var(--bg-card);
    border-color: #2a2a4a;
}

    body.dark .project-card:nth-child(1) {
        border-top: 5px solid #FFB7B2;
    }

    body.dark .project-card:nth-child(2) {
        border-top: 5px solid #FFDAC1;
    }

    body.dark .project-card:nth-child(3) {
        border-top: 5px solid #E2F0CB;
    }

    body.dark .project-card:nth-child(4) {
        border-top: 5px solid #B5EAD7;
    }

    body.dark .project-card:nth-child(5) {
        border-top: 5px solid #C7CEEA;
    }

    body.dark .project-card:nth-child(6) {
        border-top: 5px solid #E0BBE4;
    }

    body.dark .project-card:nth-child(7) {
        border-top: 5px solid #FF9AA2;
    }

    body.dark .project-card:nth-child(8) {
        border-top: 5px solid #957DAD;
    }

    body.dark .project-card:nth-child(9) {
        border-top: 5px solid #A2E1DB;
    }

    body.dark .project-card:nth-child(10) {
        border-top: 5px solid #FDFD96;
    }

    body.dark .project-card h3 {
        color: var(--text-dark);
    }

    body.dark .project-card p {
        color: var(--text-muted);
    }

body.dark .link-github {
    background: #2a2a4a;
    border-color: #3a3a5a;
    color: var(--text-dark);
}

    body.dark .link-github:hover {
        background: var(--purple);
        border-color: var(--purple);
        color: #fff;
    }

body.dark .tech-badge {
    background: #2a2a4a;
    color: var(--text-muted);
}