
      /* =============================================
   ROOT VARIABLES
============================================= */
      :root {
        --bg: #0a0e17;
        --bg-2: #0f1420;
        --bg-card: #131928;
        --border: rgba(255, 255, 255, 0.07);
        --primary: #00d4ff;
        --primary-d: #00a8cc;
        --accent: #7c5cfc;
        --green: #39d98a;
        --text: #e2e8f0;
        --text-muted: #7f8ea3;
        --white: #ffffff;
        --radius: 12px;
        --font-body: "Fira Code", monospace;
        --font-head: "Syne", sans-serif;
        /* --font-ar: "Noto Sans Arabic", sans-serif; */
        --font-ar: "Noto Kufi Arabic", sans-serif;
        --nav-h: 72px;
      }

      /* =============================================
   BASE
============================================= */
      html {
        scroll-behavior: smooth;
      }

      *,
      *::before,
      *::after {
        box-sizing: border-box;
      }

      body {
        font-family: var(--font-body);
        background: var(--bg);
        color: var(--text);
        line-height: 1.7;
        overflow-x: hidden;
      }

      /* RTL support */
      [dir="rtl"] body {
        font-family: var(--font-ar), var(--font-body);
      }
      [dir="rtl"] h1,
      [dir="rtl"] h2,
      [dir="rtl"] h3 {
        font-family: var(--font-ar), var(--font-head);
      }

      h1,
      h2,
      h3 {
        font-family: var(--font-head);
      }

      section {
        padding: 6rem 0;
      }

      /* =============================================
   SCROLLBAR
============================================= */
      ::-webkit-scrollbar {
        width: 5px;
      }
      ::-webkit-scrollbar-track {
        background: var(--bg);
      }
      ::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
      }

      /* =============================================
   NAVBAR
============================================= */
      #mainNav {
        background: rgba(10, 14, 23, 0.9);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        height: var(--nav-h);
        transition: box-shadow 0.3s;
      }
      #mainNav.scrolled {
        box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
      }

      /* Brand */
      .navbar-brand {
        font-family: var(--font-head);
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--white) !important;
        letter-spacing: 0.02em;
      }
      .brand-bracket {
        color: var(--primary);
      }
      .brand-dot {
        color: var(--accent);
      }

      /* Nav links */
      .nav-link {
        color: var(--text-muted) !important;
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        padding: 0.4rem 0.8rem !important;
        border-radius: 6px;
        transition:
          color 0.2s,
          background 0.2s;
      }
      .nav-link:hover,
      .nav-link.active {
        color: var(--primary) !important;
        background: rgba(0, 212, 255, 0.08);
      }

      /* Mobile toggler */
      .navbar-toggler {
        border-color: rgba(0, 212, 255, 0.3);
      }
      .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,212,255,.8)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
      }

      /* Language Switcher */
      .lang-switcher {
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 0.25rem 0.5rem;
      }
      .lang-btn {
        background: transparent;
        border: none;
        color: var(--text-muted);
        font-family: var(--font-body);
        font-size: 0.7rem;
        letter-spacing: 0.12em;
        padding: 0.2rem 0.5rem;
        border-radius: 5px;
        cursor: pointer;
        transition:
          color 0.2s,
          background 0.2s;
      }
      .lang-btn:hover,
      .lang-btn.active {
        color: var(--primary);
        background: rgba(0, 212, 255, 0.1);
      }
      .lang-sep {
        color: var(--border);
        font-size: 0.8rem;
        user-select: none;
      }

      /* =============================================
   HERO
============================================= */
      #hero {
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding-top: var(--nav-h);
        background: var(--bg);
      }

      /* Dot-grid background */
      .hero-grid {
        position: absolute;
        inset: 0;
        background-image: radial-gradient(
          circle,
          rgba(0, 212, 255, 0.12) 1px,
          transparent 1px
        );
        background-size: 40px 40px;
        animation: gridDrift 20s linear infinite;
      }
      @keyframes gridDrift {
        from {
          background-position: 0 0;
        }
        to {
          background-position: 80px 80px;
        }
      }

      /* Glow orbs */
      .orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        pointer-events: none;
      }
      .orb-1 {
        width: 500px;
        height: 500px;
        background: radial-gradient(
          circle,
          rgba(0, 212, 255, 0.15),
          transparent 70%
        );
        top: -100px;
        left: -150px;
        animation: float1 8s ease-in-out infinite;
      }
      .orb-2 {
        width: 400px;
        height: 400px;
        background: radial-gradient(
          circle,
          rgba(124, 92, 252, 0.15),
          transparent 70%
        );
        bottom: -80px;
        right: -100px;
        animation: float2 10s ease-in-out infinite;
      }
      @keyframes float1 {
        0%,
        100% {
          transform: translate(0, 0);
        }
        50% {
          transform: translate(40px, 30px);
        }
      }
      @keyframes float2 {
        0%,
        100% {
          transform: translate(0, 0);
        }
        50% {
          transform: translate(-30px, -20px);
        }
      }

      /* Hero content */
      .hero-content {
        position: relative;
        z-index: 1;
        animation: fadeUp 0.8s ease both;
      }
      @keyframes fadeUp {
        from {
          opacity: 0;
          transform: translateY(32px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .hero-eyebrow {
        font-size: 0.78rem;
        letter-spacing: 0.3em;
        text-transform: uppercase;
        color: var(--primary);
        margin-bottom: 1rem;
        display: block;
      }

      .hero-title {
        font-family: var(--font-head);
        font-size: clamp(3rem, 8vw, 6rem);
        font-weight: 800;
        line-height: 1;
        color: var(--white);
        margin-bottom: 1.2rem;
        background: linear-gradient(135deg, #fff 40%, var(--primary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .hero-sub {
        font-size: clamp(1rem, 2.5vw, 1.4rem);
        color: var(--text-muted);
        margin-bottom: 1.2rem;
        min-height: 2em;
      }
      .typed-text {
        color: var(--primary);
      }
      .cursor {
        color: var(--primary);
        animation: blink 0.7s infinite;
      }
      @keyframes blink {
        0%,
        100% {
          opacity: 1;
        }
        50% {
          opacity: 0;
        }
      }

      .hero-desc {
        font-size: 0.95rem;
        color: var(--text-muted);
        max-width: 560px;
        margin: 0 auto 1.5rem;
        line-height: 1.85;
      }

      /* Hero social icons */
      .hero-socials a {
        color: var(--text-muted);
        font-size: 1.3rem;
        transition:
          color 0.2s,
          transform 0.2s;
        text-decoration: none;
      }
      .hero-socials a:hover {
        color: var(--primary);
        transform: translateY(-3px);
      }

      /* Scroll hint */
      .scroll-hint {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1;
      }
      .scroll-dot {
        width: 6px;
        height: 24px;
        border: 1.5px solid var(--primary);
        border-radius: 3px;
        position: relative;
        overflow: hidden;
      }
      .scroll-dot::after {
        content: "";
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 8px;
        background: var(--primary);
        border-radius: 2px;
        animation: scrollDown 1.5s ease infinite;
      }
      @keyframes scrollDown {
        from {
          top: -8px;
          opacity: 1;
        }
        to {
          top: 28px;
          opacity: 0;
        }
      }

      /* =============================================
   SHARED SECTION STYLES
============================================= */
      .section-dark {
        background: var(--bg-2);
      }

      .section-label {
        font-size: 0.68rem;
        letter-spacing: 0.28em;
        text-transform: uppercase;
        color: var(--primary);
        margin-bottom: 0.7rem;
      }

      .section-title {
        font-family: var(--font-head);
        font-size: clamp(1.7rem, 3.5vw, 2.5rem);
        font-weight: 700;
        color: var(--white);
        line-height: 1.2;
        margin-bottom: 1rem;
      }
      [dir="rtl"] .section-title {
        font-family: var(--font-ar), var(--font-head);
      }

      .section-intro {
        color: var(--text-muted);
        font-size: 0.9rem;
        max-width: 500px;
        margin: 0 auto;
      }
      .section-body {
        color: var(--text-muted);
        font-size: 0.9rem;
        line-height: 1.9;
        margin-bottom: 0.8rem;
      }

      /* Buttons */
      .btn-primary-custom {
        background: var(--primary);
        color: var(--bg);
        font-family: var(--font-body);
        font-size: 0.78rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        border-radius: 8px;
        padding: 0.75rem 1.8rem;
        border: none;
        transition:
          background 0.25s,
          transform 0.2s,
          box-shadow 0.25s;
        text-decoration: none;
        display: inline-block;
      }
      .btn-primary-custom:hover {
        background: var(--primary-d);
        color: var(--bg);
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
      }

      .btn-ghost-custom {
        background: transparent;
        border: 1.5px solid rgba(0, 212, 255, 0.4);
        color: var(--primary);
        font-family: var(--font-body);
        font-size: 0.78rem;
        letter-spacing: 0.1em;
        border-radius: 8px;
        padding: 0.75rem 1.8rem;
        transition: all 0.25s;
        text-decoration: none;
        display: inline-block;
      }
      .btn-ghost-custom:hover {
        background: rgba(0, 212, 255, 0.1);
        border-color: var(--primary);
        transform: translateY(-2px);
        color: var(--primary);
      }

      /* =============================================
   ABOUT SECTION
============================================= */
      #about {
        background: var(--bg);
      }

      .about-img-container {
        position: relative;
        display: inline-block;
      }
      .about-img {
        width: 100%;
        max-width: 380px;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        filter: grayscale(20%);
        transition: filter 0.4s;
      }
      .about-img:hover {
        filter: grayscale(0%);
      }

      /* corner frame */
      .about-img-container::before,
      .about-img-container::after {
        content: "";
        position: absolute;
        width: 50px;
        height: 50px;
        border-color: var(--primary);
        border-style: solid;
        opacity: 0.5;
      }
      .about-img-container::before {
        top: -10px;
        left: -10px;
        border-width: 2px 0 0 2px;
      }
      .about-img-container::after {
        bottom: -10px;
        right: -10px;
        border-width: 0 2px 2px 0;
      }

      .about-badge {
        position: absolute;
        bottom: -14px;
        right: -14px;
        background: var(--primary);
        color: var(--bg);
        font-family: var(--font-head);
        font-weight: 700;
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
      }

      .stat-chip {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 10px;
        padding: 0.7rem 1.2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 90px;
        transition:
          border-color 0.25s,
          transform 0.25s;
      }
      .stat-chip:hover {
        border-color: var(--primary);
        transform: translateY(-3px);
      }
      .stat-num {
        font-family: var(--font-head);
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--primary);
        line-height: 1;
      }
      .stat-lbl {
        font-size: 0.72rem;
        color: var(--text-muted);
        margin-top: 0.2rem;
      }

      /* =============================================
   SKILLS SECTION
============================================= */
      .skill-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1.4rem 1.2rem;
        text-align: center;
        transition:
          border-color 0.3s,
          transform 0.3s;
      }
      .skill-card:hover {
        border-color: var(--primary);
        transform: translateY(-5px);
      }
      .skill-icon {
        font-size: 2rem;
        margin-bottom: 0.7rem;
      }
      .skill-name {
        font-family: var(--font-head);
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 0.8rem;
      }

      .skill-bar {
        height: 4px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 2px;
        overflow: hidden;
        margin-bottom: 0.4rem;
      }
      .skill-fill {
        height: 100%;
        width: 0;
        background: linear-gradient(90deg, var(--primary), var(--accent));
        border-radius: 2px;
        transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
      }
      .skill-fill.animate {
        width: var(--fill);
      }

      .skill-pct {
        font-size: 0.7rem;
        color: var(--text-muted);
      }

      /* =============================================
   PROJECTS SECTION
============================================= */
      #projects {
        background: var(--bg);
      }

      .project-card {
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
        transition:
          border-color 0.3s,
          transform 0.3s,
          box-shadow 0.3s;
      }
      .project-card:hover {
        border-color: rgba(0, 212, 255, 0.4);
        transform: translateY(-6px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      }

      .project-img-wrap {
        position: relative;
        overflow: hidden;
      }
      .project-img-wrap img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s ease;
        filter: brightness(0.85);
      }
      .project-card:hover .project-img-wrap img {
        transform: scale(1.06);
      }

      .project-overlay {
        position: absolute;
        inset: 0;
        background: rgba(10, 14, 23, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s;
      }
      .project-card:hover .project-overlay {
        opacity: 1;
      }

      .project-body {
        padding: 1.3rem;
      }
      .project-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem;
      }
      .tag {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.2);
        color: var(--primary);
        padding: 0.2rem 0.6rem;
        border-radius: 4px;
      }
      .project-title {
        font-family: var(--font-head);
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--white);
        margin-bottom: 0.4rem;
      }
      .project-desc {
        font-size: 0.82rem;
        color: var(--text-muted);
        line-height: 1.7;
      }

      /* =============================================
   ACCORDION (Experience)
============================================= */
      .custom-accordion .accordion-item {
        background: var(--bg-card);
        border: 1px solid var(--border) !important;
        border-radius: var(--radius) !important;
        margin-bottom: 0.7rem;
        overflow: hidden;
      }
      .custom-accordion .accordion-button {
        background: var(--bg-card);
        color: var(--white);
        font-family: var(--font-head);
        font-size: 1rem;
        font-weight: 600;
        padding: 1.2rem 1.4rem;
        border: none;
      }
      .custom-accordion .accordion-button:not(.collapsed) {
        background: rgba(0, 212, 255, 0.06);
        color: var(--primary);
        box-shadow: none;
      }
      .custom-accordion .accordion-button::after {
        filter: invert(1) sepia(1) saturate(3) hue-rotate(170deg);
      }
      .custom-accordion .accordion-body {
        background: rgba(0, 0, 0, 0.15);
        padding: 1rem 1.4rem 1.3rem;
        font-size: 0.88rem;
        color: var(--text-muted);
        line-height: 1.8;
      }
      .acc-link {
        color: var(--primary);
        font-size: 0.82rem;
        text-decoration: none;
      }
      .acc-link:hover {
        color: var(--primary-d);
        text-decoration: underline;
      }

      /* =============================================
   CONTACT SECTION
============================================= */
      #contact {
        background: var(--bg);
      }

      .contact-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
      }
      .contact-icon {
        width: 44px;
        height: 44px;
        background: rgba(0, 212, 255, 0.1);
        border: 1px solid rgba(0, 212, 255, 0.2);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: var(--primary);
        flex-shrink: 0;
      }
      .contact-lbl {
        font-size: 0.68rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 0.1rem;
      }
      .contact-val {
        font-size: 0.9rem;
        color: var(--white);
      }

      /* Form */
      .form-label-custom {
        display: block;
        font-size: 0.7rem;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--text-muted);
        margin-bottom: 0.5rem;
      }
      .form-input {
        width: 100%;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text);
        font-family: var(--font-body);
        font-size: 0.88rem;
        padding: 0.75rem 1rem;
        transition:
          border-color 0.25s,
          box-shadow 0.25s;
        outline: none;
        resize: none;
      }
      .form-input::placeholder {
        color: rgba(127, 142, 163, 0.5);
      }
      .form-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
      }

      /* =============================================
   FOOTER
============================================= */
      footer {
        background: var(--bg-2);
        border-top: 1px solid var(--border);
        padding: 2.2rem 0;
      }
      .footer-brand {
        font-family: var(--font-head);
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 0.3rem;
      }
      .footer-copy {
        font-size: 0.75rem;
        color: var(--text-muted);
        margin: 0;
      }
      .footer-socials a {
        color: var(--text-muted);
        font-size: 1.2rem;
        text-decoration: none;
        transition:
          color 0.2s,
          transform 0.2s;
      }
      .footer-socials a:hover {
        color: var(--primary);
        transform: translateY(-2px);
      }

      /* =============================================
   RTL OVERRIDES
============================================= */
      [dir="rtl"] .navbar-brand {
        margin-left: 0;
        margin-right: 0;
      }
      [dir="rtl"] .ms-lg-3 {
        margin-left: 0 !important;
        margin-right: 1rem !important;
      }
      [dir="rtl"] .ms-auto {
        margin-left: 0 !important;
        margin-right: auto !important;
      }
      [dir="rtl"] .me-3 {
        margin-right: 0 !important;
        margin-left: 1rem !important;
      }
      [dir="rtl"] .me-2 {
        margin-right: 0 !important;
        margin-left: 0.5rem !important;
      }
      [dir="rtl"] .text-center {
        text-align: center !important;
      }
      [dir="rtl"] .about-img-container::before {
        left: auto;
        right: -10px;
        border-width: 2px 2px 0 0;
      }
      [dir="rtl"] .about-img-container::after {
        right: auto;
        left: -10px;
        border-width: 0 0 2px 2px;
      }
      [dir="rtl"] .about-badge {
        right: auto;
        left: -14px;
      }
      [dir="rtl"] .section-title,
      [dir="rtl"] .hero-title,
      [dir="rtl"] .navbar-brand {
        font-family: var(--font-ar), var(--font-head);
      }
      [dir="rtl"] .hero-title {
        font-family: var(--font-ar), var(--font-head);
      }

      /* =============================================
   RESPONSIVE TWEAKS
============================================= */
      @media (max-width: 991px) {
        .hero-title {
          font-size: 3rem;
        }
        .lang-switcher {
          margin-top: 0.5rem;
          width: fit-content;
        }
      }
      @media (max-width: 575px) {
        section {
          padding: 4rem 0;
        }
        .hero-title {
          font-size: 2.4rem;
        }
      }

      /* =============================================
   ACCESSIBILITY — Focus styles & WCAG 2.2 AA
============================================= */
      :focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
        border-radius: 4px;
      }

      .btn:focus-visible,
      .nav-link:focus-visible,
      .lang-btn:focus-visible,
      a:focus-visible {
        outline: 2px solid var(--primary);
        outline-offset: 3px;
        border-radius: 4px;
      }

      /* Remove focus outline for mouse users only */
      :focus:not(:focus-visible) {
        outline: none;
      }

      /* Skip-to-content link (hidden until focused) */
      .skip-link {
        position: absolute;
        top: -100%;
        left: 1rem;
        padding: 0.6rem 1.2rem;
        background: var(--primary);
        color: var(--bg);
        font-family: var(--font-body);
        font-size: 0.8rem;
        border-radius: 0 0 8px 8px;
        z-index: 10000;
        text-decoration: none;
        transition: top 0.2s;
      }
      .skip-link:focus {
        top: 0;
        outline: none;
      }

      /* Reduced motion — respect user preference */
      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
          scroll-behavior: auto !important;
        }
      }
    