        :root {
            --bg-dark: #07070a;
            --indigo: #3f0071;
            --hot-pink: #e90064;
            --cyan: #00d2d3;
            --amber: #ff9f43;
            --text-main: #f5f6fa;
            --text-muted: #a4b0be;
            --glass-bg: rgba(255, 255, 255, 0.03);
            --glass-border: rgba(255, 255, 255, 0.08);
            --jo-red: #ce1126;
            --jo-green: #007a3d;
            --jo-white: #ffffff;
            --jo-black: #1a1a1a;
        }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    /* Custom cursor is enabled by JS only on fine-pointer (mouse) devices */
    .cursor-dot, .cursor-ring { display: none; }
    body.custom-cursor { cursor: none; }
    body.custom-cursor a,
    body.custom-cursor .btn,
    body.custom-cursor button,
    body.custom-cursor .lang-toggle-btn,
    body.custom-cursor .project-card,
    body.custom-cursor .timeline-item { cursor: none; }
    body.custom-cursor .cursor-dot,
    body.custom-cursor .cursor-ring { display: block; }

    body {
        background-color: var(--bg-dark);
        color: var(--text-main);
        font-family: 'DM Sans', sans-serif;
        overflow-x: hidden;
        scroll-behavior: smooth;
    }

    h1, h2, h3, h4, .logo { font-family: 'Syne', sans-serif; }

    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: var(--bg-dark); }
    ::-webkit-scrollbar-thumb { background: var(--jo-green); border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--jo-red); }

    .noise {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        pointer-events: none; z-index: 50; opacity: 0.04;
        background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    }

    #particles { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

    #petra-bg {
        position: fixed; bottom: 0; left: 50%;
        width: 100vw; max-width: 1400px; height: 70vh;
        z-index: -2; pointer-events: none;
        transform: translateX(-50%);
        display: flex; justify-content: center; align-items: flex-end;
        animation: pulsePetra 9s ease-in-out infinite;
        transform-origin: bottom center;
    }
    .petra-silhouette {
        width: 100%; height: 100%;
        fill: none; stroke: url(#jordanGradient); stroke-width: 1.4;
        filter: drop-shadow(0 0 18px rgba(206, 17, 38, 0.25));
        stroke-dasharray: 2400;
        animation: drawPetra 24s linear infinite, rotatePetra 60s ease-in-out infinite;
        transform-origin: 500px 480px;
    }
    @keyframes drawPetra {
        0% { stroke-dashoffset: 2400; }
        50% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: -2400; }
    }
    @keyframes rotatePetra {
        0%, 100% { transform: rotate(-1.2deg); }
        50% { transform: rotate(1.2deg); }
    }
    @keyframes pulsePetra {
        0%, 100% { opacity: 0.05; transform: translateX(-50%) scale(1); }
        50% { opacity: 0.14; transform: translateX(-50%) scale(1.025); }
    }

    #star-bg {
        position: fixed; top: 50%; left: 50%;
        width: 60vmin; height: 60vmin;
        z-index: -3; pointer-events: none;
        transform: translate(-50%, -50%);
        display: flex; justify-content: center; align-items: center;
        animation: pulseStar 7s ease-in-out infinite;
    }
    .najma-star {
        width: 100%; height: 100%;
        fill: none; stroke: url(#jordanGradient); stroke-width: 1.6;
        filter: drop-shadow(0 0 16px rgba(0, 122, 61, 0.25));
        stroke-dasharray: 700;
        animation: drawStar 18s linear infinite, spinStar 80s linear infinite;
    }
    @keyframes drawStar {
        0% { stroke-dashoffset: 700; }
        50% { stroke-dashoffset: 0; }
        100% { stroke-dashoffset: -700; }
    }
    @keyframes spinStar {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }
    @keyframes pulseStar {
        0%, 100% { opacity: 0.05; transform: translate(-50%, -50%) scale(1); }
        50% { opacity: 0.13; transform: translate(-50%, -50%) scale(1.06); }
    }

    /* ---- Amman 3D Skyline ---- */
    #amman-skyline {
        position: fixed; bottom: 0; left: 0; right: 0;
        width: 100vw; height: 55vh;
        z-index: -1; pointer-events: none;
        display: flex; align-items: flex-end; justify-content: center;
        perspective: 900px;
        animation: skylineDrift 18s ease-in-out infinite;
    }
    @keyframes skylineDrift {
        0%,100% { opacity: 0.08; transform: translateY(0px); }
        50%      { opacity: 0.14; transform: translateY(-6px); }
    }
    .skyline-scene {
        width: 100%; max-width: 1400px;
        transform: rotateX(12deg) rotateY(-4deg);
        transform-style: preserve-3d;
        display: flex; align-items: flex-end;
        padding: 0 20px;
        animation: skylineRotate 24s ease-in-out infinite;
    }
    @keyframes skylineRotate {
        0%,100% { transform: rotateX(12deg) rotateY(-4deg); }
        50%      { transform: rotateX(10deg) rotateY(4deg); }
    }
    .skyline-svg {
        width: 100%; height: 100%;
        filter: drop-shadow(0 -6px 30px rgba(79,70,229,0.3))
                drop-shadow(0 0 60px rgba(34,211,238,0.15));
    }
    /* Buildings glow layers */
    .sky-bld { fill: none; stroke-width: 1; }
    .sky-face-front { fill: rgba(79,70,229,0.12); stroke: rgba(34,211,238,0.5); stroke-width:0.8; }
    .sky-face-top   { fill: rgba(34,211,238,0.08); stroke: rgba(34,211,238,0.6); stroke-width:0.8; }
    .sky-face-side  { fill: rgba(30,30,60,0.3);    stroke: rgba(79,70,229,0.4); stroke-width:0.8; }
    .sky-window     { fill: rgba(245,158,11,0.6); animation: winBlink 3s ease-in-out infinite; }
    .sky-window:nth-child(odd)  { animation-delay: 0.5s; }
    .sky-window:nth-child(3n)   { animation-delay: 1.2s; }
    @keyframes winBlink {
        0%,100% { opacity: 0.6; } 50% { opacity: 1; }
    }
    .sky-antenna { stroke: rgba(236,72,153,0.9); stroke-width:1.2; fill:none; }
    .sky-dome     { fill: none; stroke: rgba(34,211,238,0.7); stroke-width:1; }
    .sky-ground   { fill: rgba(79,70,229,0.08); stroke: rgba(79,70,229,0.3); stroke-width:1; }
    .sky-road     { fill: none; stroke: rgba(34,211,238,0.2); stroke-width:2; }
    .sky-flag     { fill: none; stroke: rgba(206,17,38,0.8); stroke-width:1.5; }

    .cursor-dot {
        width: 6px; height: 6px; background: var(--jo-green); border-radius: 50%;
        position: fixed; pointer-events: none; z-index: 100000; transform: translate(-50%, -50%);
        box-shadow: 0 0 10px var(--jo-green);
    }
    .cursor-ring {
        width: 30px; height: 30px; border: 1.5px solid var(--jo-red); border-radius: 50%;
        position: fixed; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s;
    }

    .loader-wrapper {
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: var(--bg-dark); display: flex; flex-direction: column;
        justify-content: center; align-items: center; z-index: 10000;
        transition: opacity 0.5s ease;
    }
    .loader-avatar {
        width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
        border: 3px solid var(--jo-green); box-shadow: 0 0 30px rgba(0, 122, 61, 0.4);
        margin-bottom: 30px; animation: pulse 1.5s infinite;
    }
    .loader-bar { width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
    .loader-progress {
        width: 0%; height: 100%; background: linear-gradient(90deg, var(--jo-red), var(--jo-white), var(--jo-green));
        animation: loadBar 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    @keyframes loadBar { 0% { width: 0%; } 100% { width: 100%; } }
    @keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }

    nav {
        position: fixed; top: -100px; left: 0; width: 100%; padding: 20px 5%;
        display: flex; justify-content: space-between; align-items: center;
        background: rgba(7, 7, 10, 0.85); backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--glass-border); z-index: 1000;
        transition: top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    nav.visible { top: 0; }
    .logo { font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
    .nav-links { display: flex; gap: 30px; }
    .nav-links a {
        color: var(--text-main); text-decoration: none; font-size: 0.9rem;
        position: relative; padding-bottom: 5px; transition: color 0.3s;
    }
    .nav-links a:hover { color: var(--jo-green); }
    .nav-links a.active { color: var(--jo-green); }
    .nav-links a.active::after { width: 100%; }
    .nav-links a::after {
        content: ''; position: absolute; left: 0; bottom: 0; width: 0%; height: 2px;
        background: var(--jo-red); transition: width 0.3s ease;
    }
    .nav-links a:hover::after { width: 100%; }

    .lang-toggle-btn {
        font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.78rem;
        padding: 8px 16px; border-radius: 20px; cursor: pointer;
        background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
        color: var(--text-main); transition: background 0.3s, border-color 0.3s, transform 0.3s;
        white-space: nowrap; letter-spacing: 0.02em;
    }
    .lang-toggle-btn:hover {
        border-color: var(--jo-green); background: rgba(0,122,61,0.12);
        transform: translateY(-2px);
    }
    @media (max-width: 760px) {
        .lang-toggle-btn { font-size: 0.7rem; padding: 7px 12px; }
    }

    .nav-actions { display: flex; align-items: center; gap: 12px; }

    /* Hamburger button — hidden on desktop, shown on mobile via media query */
    .menu-toggle {
        display: none; flex-direction: column; justify-content: center; gap: 5px;
        width: 42px; height: 38px; padding: 8px; border-radius: 10px;
        background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
        cursor: pointer;
    }
    .menu-toggle span {
        display: block; width: 100%; height: 2px; border-radius: 2px;
        background: var(--text-main); transition: transform 0.3s, opacity 0.2s;
    }
    .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .container { max-width: 1200px; margin: 0 auto; padding: 100px 5%; }
    .reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
    .reveal.active { opacity: 1; transform: translateY(0); }
    .reveal-left { transform: translateX(-40px); }
    .reveal-right { transform: translateX(40px); }
    .reveal-left.active, .reveal-right.active { transform: translateX(0); }

    .section-title {
        font-size: 2.5rem; margin-bottom: 50px; text-align: center;
        background: linear-gradient(90deg, #fff, var(--text-muted));
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    }

    #hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
    .hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
    .availability-tag {
        display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
        background: var(--glass-bg); border: 1px solid var(--glass-border);
        border-radius: 30px; font-size: 0.8rem; margin-bottom: 20px;
    }
    .availability-dot {
        width: 8px; height: 8px; background: var(--jo-green); border-radius: 50%;
        box-shadow: 0 0 10px var(--jo-green); animation: blink 1.5s infinite;
    }
    @keyframes blink { 0%, 100% {opacity: 1;} 50% {opacity: 0.4;} }

    .whatsapp-cta {
        display: inline-flex; align-items: center; gap: 10px;
        padding: 12px 26px; border-radius: 30px; margin-bottom: 26px;
        background: linear-gradient(45deg, #1faa59, var(--jo-green));
        color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
        font-family: 'Syne', sans-serif;
        box-shadow: 0 6px 20px -4px rgba(0, 122, 61, 0.45);
        transition: transform 0.3s, box-shadow 0.3s;
        width: fit-content;
    }
    .whatsapp-cta:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px -4px rgba(0, 122, 61, 0.6);
    }
    .whatsapp-cta .wa-icon { font-size: 1.1rem; }

    .hero-name {
        font-size: 4.5rem; line-height: 1.1; margin-bottom: 15px;
        background: linear-gradient(90deg, #fff, var(--jo-green), var(--jo-red), #fff);
        background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        animation: shimmerText 5s linear infinite;
    }
    @keyframes shimmerText { to { background-position: 200% center; } }

    .hero-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; max-width: 550px; line-height: 1.6; }
    .cta-group { display: flex; gap: 20px; }
    .btn {
        padding: 14px 32px; border-radius: 30px; font-family: 'Syne', sans-serif;
        font-weight: 600; text-decoration: none; transition: all 0.3s;
        position: relative; overflow: hidden; display: inline-block;
    }
    .btn-primary { background: linear-gradient(45deg, var(--jo-red), var(--jo-green)); color: #fff; border: none; }
    .btn-primary:hover { box-shadow: 0 0 20px rgba(206, 17, 38, 0.4); transform: translateY(-2px); }
    .btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
    .btn-secondary:hover { border-color: var(--jo-green); color: var(--jo-green); }

    .hero-visual { position: relative; perspective: 1000px; display: flex; justify-content: center; }
    .floating-card {
        width: 320px; padding: 40px; background: rgba(15, 15, 20, 0.6);
        backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,0.1);
        border-radius: 24px; text-align: center; transform-style: preserve-3d;
        animation: float 6s ease-in-out infinite; position: relative; z-index: 2;
    }
    @keyframes float {
        0%, 100% { transform: translateY(0) rotateX(2deg) rotateY(-2deg); }
        50% { transform: translateY(-20px) rotateX(-2deg) rotateY(2deg); }
    }
    .card-photo {
        width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
        object-fit: cover; border: 2px solid var(--jo-red); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .card-stats { margin-top: 30px; display: flex; flex-direction: column; gap: 15px; }
    .stat-item {
        background: rgba(255,255,255,0.03); padding: 10px; border-radius: 8px;
        font-size: 0.85rem; display: flex; justify-content: space-between;
        align-items: center; gap: 16px;
    }
    .stat-item > span:first-child { flex-shrink: 0; }
    .stat-item > span:last-child { text-align: right; }
    .orb {
        position: absolute; width: 300px; height: 300px;
        background: radial-gradient(circle, var(--jo-green) 0%, transparent 70%);
        opacity: 0.15; top: 50%; left: 50%; transform: translate(-50%, -50%);
        border-radius: 50%; filter: blur(40px); z-index: 1;
    }
    .dashed-ring {
        position: absolute; width: 380px; height: 380px;
        border: 2px dashed rgba(255,255,255,0.1); border-radius: 50%;
        top: 50%; left: 50%; transform: translate(-50%, -50%); animation: spin 20s linear infinite;
    }
    @keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

    .marquee-wrapper {
        width: 100%; overflow: hidden; background: rgba(0,0,0,0.3);
        border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
        padding: 20px 0; display: flex;
    }
    .marquee { display: flex; gap: 50px; animation: scroll 20s linear infinite; white-space: nowrap; }
    @keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
    .marquee span {
        font-family: 'Syne'; font-weight: 600; color: rgba(255,255,255,0.4);
        font-size: 1.2rem; text-transform: uppercase; letter-spacing: 2px;
    }

    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .about-text h3 { color: var(--jo-green); margin-bottom: 20px; font-size: 1.5rem; }
    .about-text p { margin-bottom: 15px; line-height: 1.7; color: #ccc; }
    .about-highlights { background: var(--glass-bg); padding: 30px; border-radius: 16px; border: 1px solid var(--glass-border); }
    .about-highlights h4 { color: var(--jo-red); margin-bottom: 20px; font-size: 1.2rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
    .about-highlights ul { list-style: none; padding: 0; }
    .about-highlights li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 10px; }
    .about-highlights li span.icon { color: var(--amber); }
    .about-highlights li span.text { color: #ccc; font-size: 0.95rem; line-height: 1.5; }

    .skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
    .skill-bar-wrapper { margin-bottom: 25px; }
    .skill-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.9rem;}
    .progress-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; position: relative; }
    .progress-fill {
        height: 100%; background: linear-gradient(90deg, var(--jo-green), var(--jo-red));
        width: 0; border-radius: 4px; position: relative; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .progress-fill::after {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transform: translateX(-100%); animation: shimmerSweep 2s infinite;
    }
    @keyframes shimmerSweep { to { transform: translateX(100%); } }
    .tech-cloud { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
    .tech-chip {
        padding: 10px 20px; background: var(--glass-bg); border: 1px solid var(--glass-border);
        border-radius: 20px; font-size: 0.9rem; transition: all 0.3s;
    }
    .tech-chip:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); border-color: var(--amber); color: var(--amber); }

    .timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
    .timeline::before {
        content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 2px;
        background: linear-gradient(to bottom, var(--jo-red), var(--jo-white), var(--jo-green));
    }
    .timeline-item {
        position: relative; margin-bottom: 50px; background: var(--glass-bg);
        border: 1px solid var(--glass-border); padding: 30px; border-radius: 16px; transition: all 0.4s;
    }
    .timeline-item::before {
        content: ''; position: absolute; left: -45px; top: 30px; width: 12px; height: 12px;
        border-radius: 50%; background: var(--bg-dark); border: 2px solid var(--jo-green);
    }
    .timeline-item:hover { transform: translateX(10px); box-shadow: -5px 5px 20px rgba(0, 122, 61, 0.1); border-color: rgba(0, 122, 61, 0.3); }
    .job-date { color: var(--jo-green); font-size: 0.85rem; margin-bottom: 10px; display: block; font-weight: 600; letter-spacing: 1px;}
    .job-title { font-size: 1.4rem; margin-bottom: 5px; }
    .job-company { color: var(--text-muted); margin-bottom: 15px; font-size: 0.95rem; }
    .job-desc { font-size: 0.9rem; line-height: 1.6; color: #ccc; margin-bottom: 15px; }

    .proj-page-sub {
        text-align: center; color: var(--text-muted); font-size: 1.05rem;
        max-width: 620px; margin: -30px auto 50px; line-height: 1.6;
    }
    body.rtl-mode .proj-page-sub { direction: rtl; }
    .cms-note {
        max-width: 620px; margin: 0 auto 40px; text-align: center;
        font-size: 0.85rem; color: var(--text-muted);
        background: var(--glass-bg); border: 1px dashed var(--glass-border);
        border-radius: 12px; padding: 12px 18px;
    }
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
    .project-card {
        background: var(--glass-bg); border: 1px solid var(--glass-border);
        border-radius: 16px; padding: 30px; position: relative; overflow: hidden; transition: all 0.4s;
    }
    .project-card.has-image { padding: 0; display: flex; flex-direction: column; }
    .project-card.has-image .proj-img { width: 100%; height: 300px; object-fit: cover; }
    .project-card.has-image .proj-content { padding: 30px; flex-grow: 1; }

    .project-card::before {
        content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
        background: linear-gradient(90deg, var(--jo-red), var(--jo-green));
        transform: scaleX(0); transform-origin: left; transition: transform 0.4s; z-index: 10;
    }
    .project-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
    .project-card:hover::before { transform: scaleX(1); }
    .proj-icon { font-size: 2.5rem; margin-bottom: 20px; }
    .proj-title { font-size: 1.3rem; margin-bottom: 15px; overflow-wrap: anywhere; word-break: break-word; }
    .proj-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; }
    .proj-desc.clamp {
        display: -webkit-box; -webkit-box-orient: vertical;
        -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
    }
    .project-card { cursor: pointer; }
    .proj-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
    .proj-actions .proj-visit { margin-top: 0; }
    .proj-more {
        padding: 9px 18px; border-radius: 24px; cursor: pointer;
        font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.82rem;
        color: var(--text-main); background: rgba(255,255,255,0.06);
        border: 1px solid var(--glass-border);
        transition: border-color 0.3s, background 0.3s, transform 0.3s;
    }
    .proj-more:hover { border-color: var(--jo-green); background: rgba(0,122,61,0.12); transform: translateY(-2px); }

    /* ---- Project detail modal ---- */
    body.modal-open { overflow: hidden; }
    .proj-modal {
        position: fixed; inset: 0; z-index: 10001;
        display: flex; align-items: center; justify-content: center; padding: 20px;
    }
    .proj-modal[hidden] { display: none; }
    .proj-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(4px); }
    .proj-modal-dialog {
        position: relative; z-index: 1; width: 100%; max-width: 640px; max-height: 88vh;
        background: #0e0e14; border: 1px solid var(--glass-border); border-radius: 18px;
        overflow: hidden; display: flex; flex-direction: column;
        box-shadow: 0 30px 80px -20px rgba(0,0,0,0.85);
        animation: projModalIn 0.35s cubic-bezier(0.16,1,0.3,1);
    }
    @keyframes projModalIn {
        from { opacity: 0; transform: translateY(20px) scale(0.98); }
        to   { opacity: 1; transform: none; }
    }
    .proj-modal-close {
        position: absolute; top: 12px; right: 12px; z-index: 2;
        width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        background: rgba(0,0,0,0.55); border: 1px solid var(--glass-border);
        color: #fff; font-size: 1.5rem; line-height: 1;
        transition: background 0.3s, transform 0.3s;
    }
    .proj-modal-close:hover { background: var(--jo-red); transform: rotate(90deg); }
    .proj-modal-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
    .proj-modal-img { width: 100%; max-height: 280px; object-fit: cover; display: block; }
    .proj-modal-text { padding: 30px 32px 36px; }
    .proj-modal-title {
        font-size: 1.6rem; margin-bottom: 16px; line-height: 1.2;
        overflow-wrap: anywhere; word-break: break-word;
    }
    .proj-modal-desc {
        color: var(--text-muted); line-height: 1.75; font-size: 0.98rem;
        white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
    }
    .proj-modal-visit { margin-top: 26px; }
    body.rtl-mode .proj-modal-text { text-align: right; direction: rtl; }
    body.rtl-mode .proj-modal-close { right: auto; left: 12px; }

    .proj-visit {
        display: inline-flex; align-items: center; gap: 6px; margin-top: 20px;
        padding: 9px 20px; border-radius: 24px; font-size: 0.85rem; font-weight: 600;
        font-family: 'Syne', sans-serif; text-decoration: none; color: #fff;
        background: linear-gradient(45deg, var(--jo-red), var(--jo-green));
        box-shadow: 0 6px 18px -6px rgba(0,122,61,0.5);
        transition: transform 0.3s, box-shadow 0.3s;
    }
    .proj-visit:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(206,17,38,0.5); }
    .proj-status {
        grid-column: 1 / -1; text-align: center; color: var(--text-muted);
        font-size: 0.95rem; padding: 40px 0;
    }

    /* Journey: Kindergarten to Master's — auto-play crossfade loop */
    .journey-stage-wrap {
        display: flex; justify-content: center; padding: 20px 0 10px;
    }
    .journey-stage {
        position: relative; width: 320px; height: 420px;
    }
    .journey-photo {
        position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
        border: 3px solid rgba(255,255,255,0.12);
        box-shadow: 0 25px 60px -15px rgba(0,0,0,0.65);
    }
    .journey-photo img {
        width: 100%; height: 100%; object-fit: cover; display: block;
        filter: saturate(0.9);
    }
    .journey-photo.start {
        z-index: 2; border-color: var(--jo-red);
        animation: journeyStartFade 9s ease-in-out infinite;
    }
    .journey-photo.end {
        z-index: 1; border-color: var(--jo-green);
        animation: journeyEndFade 9s ease-in-out infinite;
    }
    @keyframes journeyStartFade {
        0% { opacity: 1; transform: scale(1); }
        40% { opacity: 1; transform: scale(1); }
        55% { opacity: 0; transform: scale(0.82); }
        90% { opacity: 0; transform: scale(0.82); }
        100% { opacity: 1; transform: scale(1); }
    }
    @keyframes journeyEndFade {
        0% { opacity: 0; transform: scale(0.82); }
        40% { opacity: 0; transform: scale(0.82); }
        55% { opacity: 1; transform: scale(1); }
        90% { opacity: 1; transform: scale(1); }
        100% { opacity: 0; transform: scale(0.82); }
    }

    .journey-photo .jp-label {
        position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px 14px;
        background: linear-gradient(to top, rgba(0,0,0,0.88), transparent);
        color: #fff; font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700;
    }
    .journey-photo .jp-sub {
        display: block; font-family: 'DM Sans', sans-serif; font-weight: 400;
        font-size: 0.75rem; color: rgba(255,255,255,0.8); margin-top: 3px;
    }

    .journey-badge {
        position: absolute; top: -18px; left: 50%; transform: translateX(-50%) scale(1);
        background: linear-gradient(45deg, var(--jo-red), var(--jo-green));
        color: #fff; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.72rem;
        padding: 7px 16px; border-radius: 20px; white-space: nowrap; z-index: 5;
        box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5);
        animation: journeyBadgePulse 9s ease-in-out infinite;
    }
    @keyframes journeyBadgePulse {
        0%, 40% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5); }
        48% { transform: translateX(-50%) scale(1.18); box-shadow: 0 10px 28px -2px rgba(245,158,11,0.6); }
        55%, 90% { transform: translateX(-50%) scale(1); box-shadow: 0 8px 20px -4px rgba(0,0,0,0.5); }
        97% { transform: translateX(-50%) scale(1.18); box-shadow: 0 10px 28px -2px rgba(245,158,11,0.6); }
        100% { transform: translateX(-50%) scale(1); }
    }

    .journey-caption {
        text-align: center; max-width: 560px; margin: 30px auto 0;
        color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
    }

    @media (max-width: 760px) {
        .journey-stage { width: 250px; height: 330px; }
    }

    .edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
    .edu-card {
        background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
        backdrop-filter: blur(10px); padding: 30px; border-radius: 16px; border: 1px solid var(--glass-border);
    }
    .edu-degree { font-size: 1.2rem; color: var(--jo-red); margin-bottom: 10px; font-weight: 600; }
    .edu-school { font-size: 1rem; margin-bottom: 5px; }
    .edu-date { font-size: 0.85rem; color: var(--text-muted); }

    #contact { padding-bottom: 80px; }
    .contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .contact-cards { display: flex; flex-direction: column; gap: 20px; }
    .contact-item {
        background: var(--glass-bg); border: 1px solid var(--glass-border);
        padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 20px;
        transition: all 0.3s; text-decoration: none; color: inherit;
    }
    .contact-item:hover { transform: translateX(10px); border-color: var(--jo-green); }
    .contact-icon {
        width: 50px; height: 50px; background: rgba(0, 122, 61, 0.1); color: var(--jo-green);
        border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
    }
    .contact-info h4 { margin-bottom: 5px; font-size: 1.1rem; }
    .contact-info p { color: var(--text-muted); font-size: 0.9rem; }

    .contact-visual { position: relative; display: flex; justify-content: center; align-items: center; height: 400px;}
    .pulse-avatar {
        width: 140px; height: 140px; border-radius: 50%; object-fit: cover;
        border: 2px solid var(--jo-red); z-index: 10; position: relative;
    }
    .ripple {
        position: absolute; border-radius: 50%; border: 1px solid var(--jo-red);
        animation: rippleAnim 3s linear infinite; opacity: 0;
        top: 50%; left: 50%; transform: translate(-50%, -50%);
    }
    .r1 { width: 140px; height: 140px; animation-delay: 0s; }
    .r2 { width: 140px; height: 140px; animation-delay: 1s; border-color: var(--jo-white); }
    .r3 { width: 140px; height: 140px; animation-delay: 2s; border-color: var(--jo-green); }
    @keyframes rippleAnim {
        0% { width: 140px; height: 140px; opacity: 0.8; }
        100% { width: 350px; height: 350px; opacity: 0; }
    }

    footer { background: rgba(7, 7, 10, 0.8); border-top: 1px solid var(--glass-border); padding: 60px 5% 30px; }
    .footer-grid {
        max-width: 1200px; margin: 0 auto;
        display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
        margin-bottom: 40px; text-align: left;
    }
    .footer-about h3 { font-family: 'Syne'; font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
    .footer-about p { color: var(--text-muted); line-height: 1.6; font-size: 0.9rem; max-width: 450px; }
    .footer-links { text-align: right; }
    .footer-links h4 { color: var(--jo-green); margin-bottom: 15px; }
    .footer-nav { display: flex; gap: 20px; justify-content: flex-end; }
    .footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
    .footer-nav a:hover { color: var(--jo-red); }
    .footer-bottom { text-align: center; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

    /* Suggestion Form */
    .suggestion-section {
        max-width: 1200px; margin: 0 auto 50px;
        background: var(--glass-bg); border: 1px solid var(--glass-border);
        border-radius: 20px; padding: 40px clamp(20px, 5vw, 50px);
    }
    .suggestion-section h3 {
        font-size: 1.5rem; margin-bottom: 8px; color: #fff;
    }
    .suggestion-section .sugg-sub {
        color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px;
    }
    .suggestion-form {
        display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    }
    .suggestion-form .full-width { grid-column: 1 / -1; }
    .sugg-field { display: flex; flex-direction: column; gap: 6px; }
    .sugg-field label {
        font-size: 0.8rem; color: var(--text-muted); font-weight: 500;
    }
    .sugg-field label .optional-tag {
        color: var(--jo-green); font-size: 0.72rem; margin-left: 6px;
    }
    .sugg-field input, .sugg-field textarea {
        background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
        border-radius: 10px; padding: 12px 14px; color: var(--text-main);
        font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
        transition: border-color 0.3s, background 0.3s;
        resize: vertical;
    }
    .sugg-field input:focus, .sugg-field textarea:focus {
        outline: none; border-color: var(--jo-green);
        background: rgba(255,255,255,0.06);
    }
    .sugg-submit-row {
        grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
        margin-top: 6px;
    }
    .sugg-submit-btn {
        padding: 13px 30px; border-radius: 30px; border: none;
        background: linear-gradient(45deg, var(--jo-red), var(--jo-green));
        color: #fff; font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem;
        cursor: pointer; transition: transform 0.3s, box-shadow 0.3s;
        display: inline-flex; align-items: center; gap: 8px;
    }
    .sugg-submit-btn:hover {
        transform: translateY(-2px); box-shadow: 0 10px 24px -4px rgba(0,122,61,0.5);
    }
    .sugg-submit-btn:disabled { opacity: 0.6; cursor: default; }
    .sugg-status {
        font-size: 0.85rem; opacity: 0; transition: opacity 0.4s;
    }
    .sugg-status.show { opacity: 1; }
    .sugg-status.success { color: var(--jo-green); }
    .sugg-status.error { color: var(--jo-red); }

    @media (max-width: 700px) {
        .suggestion-form { grid-template-columns: 1fr; }
    }

    @media (max-width: 900px) {
        .hero-grid, .about-grid, .skills-container, .contact-content, .edu-grid, .footer-grid { grid-template-columns: 1fr; }
        .hero-name { font-size: 3rem; }
        .hero-visual { margin-top: 50px; }
        .nav-links { display: none; }
        .footer-links, .footer-nav { text-align: left; justify-content: flex-start; }
    }

    /* ---------- RTL (Arabic) Mode ---------- */
    body.rtl-mode {
        font-family: 'Tajawal', 'DM Sans', sans-serif;
    }
    body.rtl-mode h1, body.rtl-mode h2, body.rtl-mode h3, body.rtl-mode h4, body.rtl-mode .logo {
        font-family: 'Cairo', 'Syne', sans-serif;
    }
    body.rtl-mode nav { flex-direction: row; }
    body.rtl-mode .nav-links { flex-direction: row-reverse; }
    body.rtl-mode .nav-links a::after { right: 0; left: auto; }

    body.rtl-mode .hero-grid { direction: rtl; }
    body.rtl-mode .hero-subtitle,
    body.rtl-mode .about-text, body.rtl-mode .about-highlights,
    body.rtl-mode .job-desc, body.rtl-mode .proj-desc,
    body.rtl-mode .journey-caption, body.rtl-mode .sugg-sub,
    body.rtl-mode .footer-about p {
        text-align: right;
    }
    body.rtl-mode .about-highlights li { flex-direction: row-reverse; }
    body.rtl-mode .skill-info { flex-direction: row-reverse; }
    body.rtl-mode .stat-item { flex-direction: row-reverse; }

    body.rtl-mode .timeline { padding-left: 0; padding-right: 40px; }
    body.rtl-mode .timeline::before { left: auto; right: 0; }
    body.rtl-mode .timeline-item::before { left: auto; right: -45px; }
    body.rtl-mode .timeline-item:hover { transform: translateX(-10px); }

    body.rtl-mode .contact-item { flex-direction: row-reverse; text-align: right; }
    body.rtl-mode .contact-item:hover { transform: translateX(-10px); }
    body.rtl-mode .contact-cards { direction: rtl; }

    body.rtl-mode .footer-grid { direction: rtl; }
    body.rtl-mode .footer-links { text-align: left; }
    body.rtl-mode .footer-nav { justify-content: flex-start; }
    body.rtl-mode .footer-about { text-align: right; }

    body.rtl-mode .suggestion-form { direction: rtl; }
    body.rtl-mode .sugg-field label { text-align: right; }
    body.rtl-mode .sugg-field input, body.rtl-mode .sugg-field textarea { text-align: right; }
    body.rtl-mode .sugg-submit-row { flex-direction: row-reverse; }

    body.rtl-mode .edu-card { text-align: right; }
    body.rtl-mode .proj-content, body.rtl-mode .project-card { text-align: right; }
    body.rtl-mode .availability-tag { flex-direction: row-reverse; }
    body.rtl-mode .whatsapp-cta { flex-direction: row-reverse; }
    body.rtl-mode .cta-group { flex-direction: row-reverse; }

    @media (max-width: 900px) {
        body.rtl-mode .footer-links, body.rtl-mode .footer-nav { text-align: right; justify-content: flex-start; }
    }

    /* =====================================================
       CONSOLIDATED RESPONSIVE LAYOUT (overrides above)
       ===================================================== */

    /* ---- Tablet & below (≤900px): stack grids, mobile nav ---- */
    @media (max-width: 900px) {
        .menu-toggle { display: flex; }

        /* Turn nav links into a slide-down dropdown panel */
        .nav-links {
            display: flex; position: fixed; top: 70px; left: 0; right: 0;
            flex-direction: column; gap: 0;
            background: rgba(7, 7, 10, 0.97); backdrop-filter: blur(14px);
            border-bottom: 1px solid var(--glass-border);
            padding: 8px 5%;
            transform: translateY(-160%); opacity: 0; pointer-events: none;
            transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.25s;
            max-height: calc(100vh - 70px); overflow-y: auto;
        }
        .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
        .nav-links a { padding: 14px 4px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
        .nav-links a::after { display: none; }
        body.rtl-mode .nav-links { flex-direction: column; }

        .hero-grid, .about-grid, .skills-container,
        .contact-content, .edu-grid, .footer-grid { grid-template-columns: 1fr; }
        .about-grid, .skills-container, .contact-content { gap: 40px; }
        .hero-visual { margin-top: 40px; }
        .hero-subtitle { max-width: 100%; }
        .section-title { font-size: 2rem; margin-bottom: 40px; }
    }

    /* ---- Phones (≤600px) ---- */
    @media (max-width: 600px) {
        nav { padding: 16px 5%; }
        .logo { font-size: 1.2rem; }
        .container { padding: 70px 6%; }

        .section-title { font-size: 1.7rem; margin-bottom: 30px; }
        .hero-name { font-size: 2.4rem; }
        .hero-subtitle { font-size: 1rem; }
        #hero { padding-top: 90px; }

        .cta-group { flex-direction: column; align-items: stretch; }
        .cta-group .btn { width: 100%; text-align: center; }
        .whatsapp-cta { width: 100%; justify-content: center; }

        /* Timeline: tighten the left rail so it doesn't overflow */
        .timeline { padding-left: 26px; }
        .timeline-item::before { left: -32px; }
        body.rtl-mode .timeline { padding-right: 26px; padding-left: 0; }
        body.rtl-mode .timeline-item::before { right: -32px; left: auto; }

        .projects-grid { grid-template-columns: 1fr; }
        .job-title { font-size: 1.2rem; }
    }

    /* ---- Small phones (≤400px) ---- */
    @media (max-width: 400px) {
        .hero-name { font-size: 2rem; }
        .section-title { font-size: 1.5rem; }
        .container { padding: 60px 5%; }
        .lang-toggle-btn { font-size: 0.65rem; padding: 6px 10px; }
        .menu-toggle { width: 38px; height: 34px; }
    }
