:root {
      --bg: #07080b;
      --panel: rgba(17, 19, 26, 0.88);
      --text: #f6f6f6;
      --muted: #a9acb7;
      --line: rgba(255,255,255,0.1);
      --red: #a00020;
      --red-light: #ff244f;
      --gold: #f4b942;
      --shadow: 0 24px 70px rgba(0,0,0,0.42);
      --container: min(1120px, calc(100% - 36px));
    }

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

    html { scroll-behavior: smooth; }

    body {
      min-height: 100vh;
      font-family: Inter, Segoe UI, Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 20% 10%, rgba(160,0,32,0.22), transparent 28%),
        linear-gradient(135deg, var(--bg), #101116);
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: linear-gradient(to bottom, black, transparent 80%);
      pointer-events: none;
      z-index: -1;
    }

    a { color: inherit; text-decoration: none; }

    .container { width: var(--container); margin-inline: auto; }

    .topbar {
      position: fixed;
      top: 18px;
      left: 50%;
      transform: translateX(-50%);
      width: var(--container);
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(13,15,22,0.82);
      backdrop-filter: blur(18px);
      box-shadow: 0 14px 36px rgba(0,0,0,0.22);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 900;
      letter-spacing: 0.5px;
      padding-left: 6px;
      white-space: nowrap;
    }

    .logo {
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      background: linear-gradient(135deg, var(--red), var(--red-light));
      color: #fff;
      box-shadow: 0 0 28px rgba(255,36,79,0.35);
      font-weight: 950;
      letter-spacing: -1px;
    }

    .brand-white { color: #fff; }
    .brand-red { color: var(--red-light); }

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

    .nav a,
    .lang button,
    .menu-btn {
      border: 1px solid transparent;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      font: inherit;
      font-size: 0.9rem;
      padding: 9px 12px;
      cursor: pointer;
      transition: 0.2s ease;
      white-space: nowrap;
    }

    .nav a:hover,
    .lang button:hover,
    .lang button.active,
    .nav a.active,
    .menu-btn:hover {
      color: var(--text);
      background: rgba(255,255,255,0.08);
      border-color: var(--line);
    }

    .lang { display: flex; align-items: center; gap: 2px; }
    .menu-btn { display: none; }

    main { padding-top: 100px; }

    section {
      padding-block: 82px;
      scroll-margin-top: 120px;
    }

    .hero {
      min-height: calc(100vh - 100px);
      display: grid;
      align-items: center;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 44px;
      align-items: center;
    }

    .badge {
      display: inline-flex;
      padding: 9px 13px;
      margin-bottom: 24px;
      border: 1px solid rgba(255,36,79,0.3);
      border-radius: 999px;
      background: rgba(160,0,32,0.15);
      color: var(--muted);
      font-weight: 700;
    }

    h1 {
      font-size: clamp(3rem, 7vw, 6.4rem);
      line-height: 0.92;
      letter-spacing: -4px;
      margin-bottom: 22px;
    }

    .red {
      color: var(--red-light);
      text-shadow: 0 0 34px rgba(255,36,79,0.35);
    }

    .hero p {
      max-width: 640px;
      color: var(--muted);
      font-size: 1.12rem;
      line-height: 1.75;
    }

    .typing,
    .typing-copy {
      color: var(--text);
      font-weight: 900;
      border-right: 2px solid var(--red-light);
      padding-right: 5px;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 30px;
    }

    .btn {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 20px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,0.045);
      font-weight: 800;
      transition: 0.22s ease;
    }

    .btn.primary {
      border-color: transparent;
      color: #fff;
      background: linear-gradient(135deg, var(--red), var(--red-light));
      box-shadow: 0 15px 35px rgba(160,0,32,0.28);
    }

    .btn:hover { transform: translateY(-3px); filter: brightness(1.08); }

    .code-card {
      border: 1px solid var(--line);
      border-radius: 32px;
      padding: 22px;
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .code-header {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 0.9rem;
      margin-bottom: 16px;
    }

    .dots { display: flex; gap: 7px; }

    .dots i {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--red-light);
      opacity: 0.8;
    }

    .code {
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(0,0,0,0.22);
      padding: 20px;
      overflow-x: auto;
      font-family: Consolas, Monaco, monospace;
      line-height: 1.85;
      color: var(--muted);
      direction: ltr;
    }

    .c-red { color: #ff5577; }
    .c-blue { color: #7fcaff; }
    .c-gold { color: var(--gold); }

    .section-title { margin-bottom: 34px; }

    .section-title h2 {
      font-size: clamp(2.1rem, 4vw, 3.2rem);
      letter-spacing: -2px;
    }

    .line {
      width: min(420px, 70vw);
      height: 2px;
      margin-top: 14px;
      background: linear-gradient(90deg, var(--red), transparent);
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: 26px;
      background: var(--panel);
      box-shadow: var(--shadow);
    }

    .about-card,
    .contact-card {
      padding: 30px;
    }

    .about-card h3,
    .contact-card h3 {
      margin-bottom: 14px;
      font-size: 1.35rem;
    }

    .about-card p,
    .contact-card p {
      color: var(--muted);
      line-height: 1.85;
      max-width: 900px;
    }

    .about-meta {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      margin-top: 22px;
    }

    .meta-item {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 14px;
      background: rgba(255,255,255,0.04);
    }

    .meta-item b {
      display: block;
      margin-bottom: 4px;
    }

    .meta-item span {
      color: var(--muted);
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
      gap: 14px;
    }

    .skill {
      position: relative;
      min-height: 112px;
      display: grid;
      place-items: center;
      text-align: center;
      overflow: hidden;
      padding: 18px 14px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: var(--panel);
      transition: 0.25s ease;
    }

    .skill::after {
      content: "";
      position: absolute;
      width: 110px;
      height: 110px;
      right: -38px;
      bottom: -52px;
      border-radius: 50%;
      background: rgba(160,0,32,0.18);
      transition: 0.25s ease;
    }

    .skill:hover {
      transform: translateY(-7px);
      border-color: rgba(255,36,79,0.35);
      box-shadow: 0 24px 54px rgba(160,0,32,0.15);
    }

    .skill:hover::after { transform: scale(1.35); }

    .skill b,
    .skill small {
      display: block;
      position: relative;
      z-index: 1;
    }

    .skill b { margin-bottom: 6px; }
    .skill small { color: var(--muted); }

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

    .info-card {
      padding: 26px;
    }

    .info-card h3 {
      color: var(--red-light);
      font-size: 1.45rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 14px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--red);
    }

    .clean-list {
      list-style: none;
      display: grid;
      gap: 10px;
      color: var(--muted);
    }

    .clean-list li::before {
      content: "•";
      color: var(--red-light);
      font-weight: 900;
      margin-right: 8px;
    }

    html[data-lang="ar"] .clean-list li::before {
      margin-right: 0;
      margin-left: 8px;
    }

    .language-list {
      display: grid;
      gap: 14px;
    }

    .language-row {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      font-weight: 850;
      margin-bottom: 7px;
    }

    .bar {
      height: 8px;
      border-radius: 999px;
      background: rgba(255,255,255,0.13);
      overflow: hidden;
    }

    .fill {
      height: 100%;
      border-radius: 999px;
      background: var(--red-light);
    }

    .projects-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
      gap: 22px;
    }

    .project {
      padding: 24px;
      min-height: 310px;
      transition: 0.22s ease;
    }

    .project:hover {
      transform: translateY(-6px);
      border-color: rgba(255,36,79,0.35);
    }

    .project-top {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .number {
      min-width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      background: rgba(160,0,32,0.14);
      color: var(--red-light);
      font-weight: 900;
    }

    .project h3 { margin-bottom: 7px; }

    .project-type {
      color: var(--muted);
      font-size: 0.84rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      font-weight: 800;
    }

    .project p {
      color: var(--muted);
      line-height: 1.7;
      margin-bottom: 18px;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 18px;
    }

    .tags span {
      padding: 7px 10px;
      border: 1px solid rgba(255,36,79,0.25);
      border-radius: 999px;
      background: rgba(160,0,32,0.12);
      font-size: 0.8rem;
      font-weight: 750;
    }

    .open-link {
      color: var(--red-light);
      font-weight: 900;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 22px;
    }

    .contact-list {
      display: grid;
      gap: 12px;
    }

    .contact-item {
      display: flex;
      justify-content: space-between;
      gap: 16px;
      padding: 15px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255,255,255,0.04);
      color: var(--muted);
    }

    .contact-item b { color: var(--text); }

    .footer {
      width: var(--container);
      margin-inline: auto;
      padding: 36px 0;
      border-top: 1px solid var(--line);
      text-align: center;
      color: var(--muted);
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: 0.65s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    [data-lang-text] { display: none; }

    html[data-lang="en"] [data-lang-text="en"],
    html[data-lang="nl"] [data-lang-text="nl"],
    html[data-lang="ar"] [data-lang-text="ar"] {
      display: inline;
    }

    [data-lang-block] { display: none; }

    html[data-lang="en"] [data-lang-block="en"],
    html[data-lang="nl"] [data-lang-block="nl"],
    html[data-lang="ar"] [data-lang-block="ar"] {
      display: block;
    }

    html[data-lang="ar"] body { direction: rtl; }

    html[data-lang="ar"] .brand,
    html[data-lang="ar"] .tags,
    html[data-lang="ar"] .actions,
    html[data-lang="ar"] .skills-grid {
      direction: rtl;
    }

    html[data-lang="ar"] .logo,
    html[data-lang="ar"] .code {
      direction: ltr;
    }

    @media (max-width: 940px) {
      .info-grid,
      .contact-grid {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 880px) {
      .topbar {
        border-radius: 26px;
        align-items: flex-start;
      }

      .menu-btn { display: inline-flex; }

      .nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 0;
        width: min(260px, calc(100vw - 36px));
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: #11131a;
        box-shadow: var(--shadow);
      }

      .nav.open { display: flex; }

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

    @media (max-width: 600px) {
      .topbar {
        width: calc(100% - 24px);
        display: grid;
        grid-template-columns: 1fr auto;
      }

      .lang {
        grid-column: 1 / -1;
        justify-content: center;
      }

      main { padding-top: 145px; }

      h1 { letter-spacing: -2px; }

      .actions .btn { width: 100%; }

      .contact-item {
        flex-direction: column;
        gap: 5px;
      }
    }