*, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent; /* Prevents gray tap flash on mobile */
    }

    :root {
      --black:    #050505;
      --white:    #f5f5f3;
      --grey:     #888;
      --grey-lt:  rgba(255,255,255,0.5);
      --accent:   #c8ff00;
      --card-bg:  rgba(255,255,255,0.04);
      --border:   rgba(255,255,255,0.08);
      /* System font stacks as fallbacks — text stays readable before
         web fonts arrive, and font-display:swap handles the swap. */
      --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
      --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
      --font-arabic:  'Cairo', 'Segoe UI', Tahoma, sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--black);
      color: var(--white);
      font-family: var(--font-body);
      font-size: 16px;
      overflow-x: hidden;
      cursor: auto; /* Fallback for no-js */
    }

    body.js-enabled {
      cursor: none;
    }

    /* ============================================================
       CUSTOM CURSOR
       ============================================================ */
    .cursor {
      width: 8px;
      height: 8px;
      background: var(--white);
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9999;
      transform: translate(-50%, -50%);
      will-change: transform;
      display: none;
    }

    .cursor-ring {
      width: 36px;
      height: 36px;
      border: 1px solid rgba(255,255,255,0.4);
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9998;
      transform: translate(-50%, -50%);
      transition: transform 0.15s ease, border-color 0.15s ease;
      will-change: transform;
      display: none;
    }

    body.js-enabled .cursor,
    body.js-enabled .cursor-ring {
      display: block;
    }

    /* ============================================================
       SMOKE CANVAS
       ============================================================ */
    #smokeCanvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      opacity: 0.7;
    }

    /* ============================================================
       NAV
       ============================================================ */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      padding: 24px 48px;
      backdrop-filter: blur(12px);
      background: rgba(5,5,5,0.5);
      border-bottom: 1px solid var(--border);
      transition: padding 0.3s;
    }

    nav.scrolled { padding: 16px 48px; }

    .nav-links {
      margin-left: auto;
      margin-right: 32px;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-shrink: 0;
    }

    .logo-text {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 18px;
      letter-spacing: -0.3px;
      color: var(--white);
      text-decoration: none;
      font-style: normal;
    }
    .logo-text span { color: var(--accent); font-style: normal; }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 32px;
      list-style: none;
    }

    .nav-links a {
      font-size: 13px;
      font-weight: 400;
      color: var(--grey);
      text-decoration: none;
      letter-spacing: 0.5px;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--white); }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px !important;
      background: var(--white) !important;
      color: var(--black) !important;
      border-radius: 999px;
      font-size: 13px !important;
      font-weight: 500 !important;
      transition: background 0.2s, transform 0.2s !important;
    }
    .nav-cta:hover {
      background: var(--accent) !important;
      color: var(--black) !important;
      transform: scale(1.03);
    }

    .hamburger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 4px;
    }
    body.js-enabled .hamburger { cursor: none; }
    
    .hamburger span {
      display: block;
      width: 24px;
      height: 1.5px;
      background: var(--white);
      margin: 5px 0;
      transition: 0.3s;
    }

    /* ============================================================
       MOBILE NAV OVERLAY — Split wipe reveal
       ============================================================ */
    .mobile-overlay {
      display: flex;
      flex-direction: column;
      position: fixed;
      inset: 0;
      z-index: 200;
      pointer-events: none;
      overflow: hidden;
    }

    .mob-panel {
      position: absolute;
      left: 0; right: 0;
      background: #080808;
      transition: height 0.55s cubic-bezier(0.76, 0, 0.24, 1);
      z-index: 0;
    }
    .mob-panel--top    { top: 0;    height: 0; }
    .mob-panel--bottom { bottom: 0; height: 0; }
    .mobile-overlay.open .mob-panel--top    { height: 50.5%; }
    .mobile-overlay.open .mob-panel--bottom { height: 50.5%; }

    .mob-content {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      opacity: 0;
      transition: opacity 0.2s ease 0.44s;
      pointer-events: none;
      overflow-y: auto; /* Allow scrolling for small horizontal screens */
      overflow-x: hidden;
    }
    .mobile-overlay.open .mob-content {
      opacity: 1;
      pointer-events: all;
    }

    .mob-divider {
      position: absolute;
      left: 0; right: 0; top: 50%;
      height: 1px;
      background: linear-gradient(90deg, transparent 0%, rgba(200,255,0,0.7) 40%, rgba(200,255,0,0.7) 60%, transparent 100%);
      z-index: 2;
      pointer-events: none;
      transform: scaleX(0);
      transition: transform 0.35s ease 0.18s, opacity 0.25s ease 0.52s;
      opacity: 0;
    }
    .mobile-overlay.open .mob-divider {
      transform: scaleX(1);
      opacity: 0;
    }

    .mob-bg-glow {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }
    .mob-bg-glow--1 {
      width: 400px; height: 400px;
      background: radial-gradient(circle, rgba(200,255,0,0.05) 0%, transparent 65%);
      bottom: -80px; right: -80px;
    }
    .mob-bg-glow--2 {
      width: 240px; height: 240px;
      background: radial-gradient(circle, rgba(200,255,0,0.03) 0%, transparent 65%);
      top: 60px; left: -60px;
    }

    .mob-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 28px 36px;
      flex-shrink: 0;
      position: relative; z-index: 1;
    }

    .mob-logo {
      font-family: var(--font-display);
      font-weight: 700; font-size: 18px;
      color: var(--white);
      text-decoration: none; letter-spacing: -0.3px;
    }
    .mob-logo span { color: var(--accent); }

    .mobile-close {
      width: 42px; height: 42px;
      border-radius: 50%;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--white); font-size: 15px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.25s, border-color 0.25s,
                  transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    body.js-enabled .mobile-close { cursor: none; }

    .mobile-close:hover {
      background: rgba(200,255,0,0.12);
      border-color: rgba(200,255,0,0.5);
      color: var(--accent);
      transform: rotate(135deg) scale(1.1);
    }

    .mob-nav {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 0 36px;
      gap: 2px;
      position: relative; z-index: 1;
      min-height: max-content;
    }

    .mob-link {
      display: flex;
      align-items: center;
      gap: 22px;
      padding: 13px 16px;
      border-radius: 16px;
      text-decoration: none;
      color: rgba(255,255,255,0.3);
      position: relative;
      overflow: hidden;

      opacity: 0;
      transform: translateY(20px) skewX(-2deg);
      transition:
        opacity    0.5s ease,
        transform  0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        color      0.2s ease,
        background 0.2s ease;
    }

    .mobile-overlay.open .mob-link:nth-child(1) { transition-delay: 0.38s; }
    .mobile-overlay.open .mob-link:nth-child(2) { transition-delay: 0.43s; }
    .mobile-overlay.open .mob-link:nth-child(3) { transition-delay: 0.48s; }
    .mobile-overlay.open .mob-link:nth-child(4) { transition-delay: 0.53s; }
    .mobile-overlay.open .mob-link:nth-child(5) { transition-delay: 0.58s; }
    .mobile-overlay.open .mob-link:nth-child(6) { transition-delay: 0.63s; }

    .mobile-overlay.open .mob-link {
      opacity: 1;
      transform: translateY(0) skewX(0deg);
    }

    .mob-link::before {
      content: '';
      position: absolute;
      left: 0; top: 10%; bottom: 10%;
      width: 3px;
      background: var(--accent);
      border-radius: 0 3px 3px 0;
      transform: scaleY(0);
      transform-origin: bottom;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .mob-link:hover::before { transform: scaleY(1); }

    .mob-link::after {
      content: '';
      position: absolute;
      top: 0; left: -80%;
      width: 50%; height: 100%;
      background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.04) 50%, transparent 70%);
      transition: left 0.5s ease;
    }
    .mob-link:hover::after { left: 130%; }

    .mob-link:hover {
      color: var(--white);
      background: rgba(255,255,255,0.035);
    }
    .mob-link:hover .mob-num   { opacity: 1; color: var(--accent); }
    .mob-link:hover .mob-arrow { transform: translateX(6px); color: var(--accent); opacity: 1; }

    .mob-num {
      font-family: var(--font-display);
      font-size: 10px; font-weight: 700;
      color: rgba(200,255,0,0.4);
      letter-spacing: 1.5px;
      width: 22px; flex-shrink: 0;
      transition: color 0.2s, opacity 0.2s;
    }

    .mob-label {
      font-family: var(--font-display);
      font-size: clamp(26px, 6.5vw, 44px);
      font-weight: 800;
      line-height: 1;
      letter-spacing: -0.5px;
      flex: 1;
    }

    .mob-arrow {
      font-size: 13px;
      color: rgba(255,255,255,0.15);
      opacity: 0.6;
      flex-shrink: 0;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s, opacity 0.2s;
    }

    .mob-footer {
      padding: 22px 36px;
      border-top: 1px solid rgba(255,255,255,0.05);
      display: flex; align-items: center; justify-content: space-between;
      flex-shrink: 0;
      position: relative; z-index: 1;

      opacity: 0;
      transform: translateY(10px);
      transition: opacity 0.4s ease 0.72s, transform 0.4s ease 0.72s;
    }
    .mobile-overlay.open .mob-footer {
      opacity: 1; transform: translateY(0);
    }

    .mob-socials { display: flex; gap: 10px; }
    .mob-socials a {
      width: 36px; height: 36px;
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--grey); font-size: 13px;
      text-decoration: none;
      transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    .mob-socials a:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--black);
      transform: scale(1.15);
    }

    .mob-tagline {
      font-size: 11px; color: rgba(255,255,255,0.18);
      letter-spacing: 0.4px; max-width: 150px;
      text-align: right; line-height: 1.5;
    }

    /* ============================================================
       SHARED SECTION WRAPPER
       ============================================================ */
    section, header { position: relative; z-index: 1; }

    .section {
      padding: 120px 48px;
      max-width: 1200px;
      margin: 0 auto;
    }

    .section-label {
      font-size: 11px;
      letter-spacing: 3px;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 16px;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(36px, 5vw, 62px);
      font-weight: 700;
      letter-spacing: -0.5px;
      line-height: 1.1;
      margin-bottom: 8px;
    }
    .section-title em {
      font-style: normal;
      color: transparent;
      -webkit-text-stroke: 1px rgba(255,255,255,0.28);
    }

    /* ============================================================
       FADE-UP ANIMATION
       ============================================================ */
    .fade-up {
      opacity: 0;
      transform: translateY(36px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }
    .fade-up.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ============================================================
       HERO
       ============================================================ */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 120px 24px 80px;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 18px;
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 12px;
      color: var(--grey);
      letter-spacing: 0.5px;
      margin-bottom: 36px;
      backdrop-filter: blur(8px);
    }
    .badge-dot {
      width: 6px;
      height: 6px;
      background: var(--accent);
      border-radius: 50%;
      animation: pulse 2s ease-in-out infinite;
    }
    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.5; transform: scale(0.7); }
    }

    .hero h1 {
      font-family: var(--font-display);
      font-size: clamp(42px, 9vw, 120px); /* Lowered from 56px for tiny screens */
      font-weight: 800;
      line-height: 1.0;
      letter-spacing: -1.5px;
      margin-bottom: 28px;
      max-width: 900px;
    }
    .hero h1 em {
      font-style: normal;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(255,255,255,0.28);
    }

    .hero-sub {
      font-size: 15px;
      color: var(--grey);
      max-width: 460px;
      line-height: 1.8;
      margin-bottom: 48px;
    }

    .hero-btns {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .btn-fill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 32px;
      background: var(--white);
      color: var(--black);
      border-radius: 999px;
      font-size: 14px;
      font-weight: 500;
      font-family: var(--font-body);
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: background 0.2s, transform 0.2s;
    }
    body.js-enabled .btn-fill { cursor: none; }
    .btn-fill:hover { background: var(--accent); transform: translateY(-2px); }
    .btn-full { width: 100%; justify-content: center; }

    .btn-outline-w {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 32px;
      background: transparent;
      color: var(--white);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 14px;
      text-decoration: none;
      cursor: pointer;
      transition: border-color 0.2s, transform 0.2s;
    }
    body.js-enabled .btn-outline-w { cursor: none; }
    .btn-outline-w:hover { border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }

    .scroll-hint {
      margin-top: 80px;
      display: flex;
      align-items: center;
      gap: 20px;
      font-size: 12px;
      color: var(--grey);
      letter-spacing: 1px;
    }
    .scroll-hint::before, .scroll-hint::after {
      content: '';
      flex: 1;
      max-width: 100px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--border), transparent);
    }
    .scroll-mouse {
      width: 22px;
      height: 34px;
      border: 1.5px solid rgba(255,255,255,0.25);
      border-radius: 11px;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding-top: 5px;
    }
    .scroll-dot {
      width: 3px;
      height: 6px;
      background: var(--white);
      border-radius: 2px;
      animation: scrollDot 2s ease-in-out infinite;
    }
    @keyframes scrollDot {
      0%, 100% { transform: translateY(0); opacity: 1; }
      60%       { transform: translateY(8px); opacity: 0; }
    }

    /* BRAND BAR */
    .brands {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 48px;
      flex-wrap: wrap;
      padding: 40px 48px;
      border-top: 1px solid var(--border);
      font-size: 13px;
      color: rgba(255,255,255,0.22);
      font-weight: 500;
      letter-spacing: 1px;
    }

    /* ============================================================
       ABOUT
       ============================================================ */
    .about-layout {
      display: grid;
      grid-template-columns: 360px 1fr;
      gap: 72px;
      align-items: start;
      margin-top: 64px;
    }

    .about-photo-frame {
      position: relative;
      width: 100%;
      aspect-ratio: 3/4;
      border-radius: 28px;
      overflow: visible;
      border: 1px solid var(--border);
      background: var(--card-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(200,255,0,0.03));
    }

    .about-photo-badge {
      position: absolute;
      bottom: -18px; left: 50%;
      transform: translateX(-50%);
      background: var(--accent);
      color: var(--black);
      font-size: 12px; font-weight: 600;
      padding: 9px 22px; border-radius: 999px;
      white-space: nowrap; letter-spacing: 0.4px;
      display: flex; align-items: center; gap: 7px;
      box-shadow: 0 8px 24px rgba(200,255,0,0.3);
    }

    .about-photo-location {
      position: absolute;
      top: 18px; right: -16px;
      background: rgba(5,5,5,0.9);
      backdrop-filter: blur(10px);
      border: 1px solid var(--border);
      color: var(--grey);
      font-size: 11px; padding: 7px 14px; border-radius: 999px;
      white-space: nowrap; display: flex; align-items: center; gap: 6px;
    }
    .about-photo-location i { color: var(--accent); }

    .about-stat-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
      margin-top: 32px;
    }

    .about-stat-pill {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px 18px;
      display: flex;
      flex-direction: column;
      gap: 3px;
      transition: border-color 0.2s, background 0.2s;
    }
    .about-stat-pill:hover {
      border-color: rgba(200,255,0,0.3);
      background: rgba(200,255,0,0.03);
    }

    .asp-num {
      font-family: var(--font-display);
      font-size: 26px; font-weight: 800;
      color: var(--white); line-height: 1;
    }
    .asp-label {
      font-size: 10px; color: var(--grey);
      letter-spacing: 0.5px; text-transform: uppercase;
    }

    .about-intro {
      font-size: 17px;
      color: var(--white);
      line-height: 1.8;
      margin-bottom: 20px;
      font-weight: 400;
    }

    .about-body {
      font-size: 14.5px;
      color: rgba(255,255,255,0.5);
      line-height: 1.85;
      margin-bottom: 18px;
    }

    .about-traits {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 36px;
    }

    .about-trait {
      display: flex;
      align-items: flex-start;
      gap: 16px;
      padding: 18px 20px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 16px;
      transition: all 0.25s;
    }
    .about-trait:hover {
      border-color: rgba(200,255,0,0.25);
      background: rgba(200,255,0,0.03);
      transform: translateX(4px);
    }

    .trait-icon {
      width: 38px; height: 38px;
      background: rgba(200,255,0,0.1);
      border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      font-size: 15px; color: var(--accent);
      flex-shrink: 0;
      transition: background 0.2s;
    }
    .about-trait:hover .trait-icon { background: rgba(200,255,0,0.2); }

    .trait-title {
      font-family: var(--font-display);
      font-size: 14px; font-weight: 700;
      color: var(--white); margin-bottom: 3px;
    }
    .trait-desc {
      font-size: 12.5px; color: var(--grey); line-height: 1.5;
    }

    @media (max-width: 1024px) {
      .about-layout { grid-template-columns: 1fr; gap: 48px; }
      .about-left-visual { max-width: 360px; }
      .about-photo-frame { max-width: 360px; }
    }
    @media (max-width: 600px) {
      .about-stat-row { grid-template-columns: 1fr 1fr; }
      .asp-num { font-size: 22px; }
    }

    /* ============================================================
       TIMELINE — Card Design (Education & Experience)
       ============================================================ */
    .tl-grid {
      margin-top: 64px;
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .tl-card {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 0 24px;
      position: relative;
    }

    .tl-card-left {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .tl-icon-wrap {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--card-bg);
      border: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      color: var(--grey);
      flex-shrink: 0;
      transition: all 0.3s ease;
      z-index: 1;
    }

    .tl-card:hover .tl-icon-wrap {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--black);
      transform: scale(1.1);
    }

    .tl-card--active .tl-icon-wrap {
      border-color: rgba(200,255,0,0.5);
      color: var(--accent);
      box-shadow: 0 0 0 4px rgba(200,255,0,0.08);
    }

    .tl-line {
      width: 1px;
      flex: 1;
      min-height: 24px;
      background: linear-gradient(to bottom, var(--border), transparent);
      margin: 8px 0;
    }

    .tl-card-body {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 28px 32px;
      margin-bottom: 16px;
      transition: border-color 0.3s, transform 0.3s, background 0.3s;
      position: relative;
      overflow: hidden;
    }

    .tl-card-body::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 20px;
      background: radial-gradient(circle at 0% 0%, rgba(200,255,0,0.04) 0%, transparent 60%);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .tl-card:hover .tl-card-body {
      border-color: rgba(255,255,255,0.12);
      transform: translateX(6px);
      background: rgba(255,255,255,0.03);
    }

    .tl-card:hover .tl-card-body::before { opacity: 1; }

    .tl-card--active .tl-card-body {
      border-color: rgba(200,255,0,0.2);
      background: rgba(200,255,0,0.03);
    }

    .tl-meta {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 14px;
    }

    .tl-tag {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(255,255,255,0.07);
      color: var(--grey);
      border: 1px solid var(--border);
    }

    .tl-tag--green {
      background: rgba(200,255,0,0.1);
      color: var(--accent);
      border-color: rgba(200,255,0,0.25);
    }

    .tl-tag--gold {
      background: rgba(255,210,50,0.1);
      color: #ffd232;
      border-color: rgba(255,210,50,0.25);
    }

    .tl-tag--blue {
      background: rgba(100,180,255,0.1);
      color: #64b4ff;
      border-color: rgba(100,180,255,0.25);
    }

    .tl-date {
      font-size: 11px;
      color: var(--grey);
      letter-spacing: 0.5px;
      margin-left: auto;
    }

    .tl-title {
      font-family: var(--font-display);
      font-size: 19px;
      font-weight: 700;
      color: var(--white);
      margin-bottom: 8px;
      line-height: 1.3;
    }

    .tl-place {
      display: flex;
      align-items: center;
      gap: 7px;
      font-size: 12px;
      color: var(--grey);
      margin-bottom: 14px;
      letter-spacing: 0.3px;
    }
    .tl-place i { color: var(--accent); font-size: 11px; }

    .tl-body {
      font-size: 14px;
      color: rgba(255,255,255,0.5);
      line-height: 1.8;
      margin-bottom: 18px;
    }

    .tl-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tl-chips span {
      font-size: 11px;
      padding: 4px 12px;
      border-radius: 999px;
      background: rgba(255,255,255,0.05);
      color: rgba(255,255,255,0.4);
      border: 1px solid rgba(255,255,255,0.07);
      letter-spacing: 0.3px;
      transition: all 0.2s;
    }

    .tl-card:hover .tl-chips span {
      background: rgba(255,255,255,0.07);
      color: rgba(255,255,255,0.6);
    }

    .tl-card--last .tl-card-body {
      margin-bottom: 0;
    }

    @media (max-width: 600px) {
      .tl-card { grid-template-columns: 40px 1fr; gap: 0 16px; }
      .tl-icon-wrap { width: 36px; height: 36px; font-size: 13px; }
      .tl-card-body { padding: 20px; }
      .tl-title { font-size: 16px; }
    }

    /* ============================================================
       SKILLS — Marquee
       ============================================================ */
    .skills-marquee-section {
      margin-top: 44px;
      padding: 20px 0;
      display: flex;
      flex-direction: column;
      gap: 14px;
      overflow: hidden;
      isolation: isolate;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
      mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
    }

    .marquee-row {
      display: flex;
      gap: 14px;
      width: max-content;
    }

    .marquee-row--left  { animation: marqueeLeft  28s linear infinite; }
    .marquee-row--right { animation: marqueeRight 32s linear infinite; }
    .skills-marquee-section:hover .marquee-row { animation-play-state: paused; }

    @keyframes marqueeLeft  { 0% { transform: translateX(0); }    100% { transform: translateX(-50%); } }
    @keyframes marqueeRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); }    }

    .skill-card {
      flex-shrink: 0;
      width: 160px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 20px 16px;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 9px;
      transition: transform 0.3s, border-color 0.3s, background 0.3s;
      cursor: default;
      position: relative;
      overflow: hidden;
    }

    .skill-card::after {
      content: '';
      position: absolute;
      top: -100%;
      left: -60%;
      width: 40%;
      height: 300%;
      background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
      transition: left 0.5s ease;
    }
    .skill-card:hover::after { left: 130%; }

    .skill-card:hover {
      transform: translateY(-6px) scale(1.04);
    }

    .skill-card-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 19px;
      transition: transform 0.3s;
    }
    .skill-card:hover .skill-card-icon { transform: scale(1.15) rotate(-5deg); }

    .skill-card-title {
      font-family: var(--font-display);
      font-size: 12px; font-weight: 700;
      color: var(--white); line-height: 1.3;
    }

    .skill-card-level {
      font-size: 9.5px; color: var(--grey);
      letter-spacing: 0.4px;
      padding: 3px 10px;
      border: 1px solid var(--border);
      border-radius: 999px;
    }

    .skill-card--web  { border-color: rgba(200,255,0,0.08); }
    .skill-card--web .skill-card-icon  { background: rgba(200,255,0,0.08); color: var(--accent); }
    .skill-card--web:hover  { border-color: rgba(200,255,0,0.3); background: rgba(200,255,0,0.03); }

    .skill-card--design { border-color: rgba(162,89,255,0.1); }
    .skill-card--design .skill-card-icon { background: rgba(162,89,255,0.1); color: #a259ff; }
    .skill-card--design:hover { border-color: rgba(162,89,255,0.3); background: rgba(162,89,255,0.03); }

    .skill-card--tools { border-color: rgba(97,218,251,0.08); }
    .skill-card--tools .skill-card-icon { background: rgba(97,218,251,0.08); color: #61dafb; }
    .skill-card--tools:hover { border-color: rgba(97,218,251,0.25); background: rgba(97,218,251,0.02); }

    .skill-card--lang { border-color: rgba(255,189,46,0.1); }
    .skill-card--lang .skill-card-icon { background: rgba(255,189,46,0.1); color: #ffbd2e; }
    .skill-card--lang:hover { border-color: rgba(255,189,46,0.3); background: rgba(255,189,46,0.02); }

    @media (max-width: 600px) {
      .skill-card { width: 140px; padding: 16px 12px; }
    }

    /* ============================================================
       PROJECTS
       ============================================================ */
    .projects-grid {
      margin-top: 64px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }

    .project-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 24px;
      overflow: visible;
      display: flex;
      flex-direction: column;
      transition: border-color 0.3s, transform 0.3s;
      cursor: pointer;
    }
    body.js-enabled .project-card { cursor: none; }

    .project-card-top  { border-radius: 24px 24px 0 0; overflow: hidden; }
    .project-card-bottom { border-radius: 0 0 24px 24px; overflow: hidden; }
    .project-card:hover {
      border-color: rgba(255,255,255,0.14);
      transform: translateY(-6px);
    }

    .project-card--featured {
      border-color: rgba(200,255,0,0.15);
    }
    .project-card--featured:hover {
      border-color: rgba(200,255,0,0.3);
    }

    .project-card-top {
      padding: 20px 20px 0;
    }

    .project-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .project-num {
      font-size: 11px; color: var(--grey); letter-spacing: 2px;
    }

    .project-card-actions {
      display: flex; align-items: center; gap: 10px;
    }

    .project-status {
      font-size: 10px; font-weight: 600; letter-spacing: 1px;
      text-transform: uppercase;
      padding: 4px 10px; border-radius: 999px;
      background: rgba(255,255,255,0.07);
      color: var(--grey);
      border: 1px solid var(--border);
    }
    .project-status--live {
      background: rgba(200,255,0,0.1);
      color: var(--accent);
      border-color: rgba(200,255,0,0.25);
    }
    .project-status--wip {
      background: rgba(100,180,255,0.1);
      color: #64b4ff;
      border-color: rgba(100,180,255,0.25);
    }

    .project-arrow {
      width: 34px; height: 34px;
      border: 1px solid var(--border);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--grey); font-size: 12px;
      transition: all 0.2s;
    }
    .project-card:hover .project-arrow {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--black);
    }
    
    .project-arrow-wrap {
      position: relative;
      display: inline-flex;
    }
    .project-arrow-wrap.popup-open .project-links-popup {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0) scale(1);
    }
    .project-arrow-wrap.popup-open .project-arrow {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--black);
    }

    .project-links-popup {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      z-index: 100;
      display: flex;
      flex-direction: column;
      gap: 6px;
      background: #111;
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      padding: 10px;
      min-width: 170px;
      white-space: nowrap;
      opacity: 0;
      pointer-events: none;
      transform: translateY(6px) scale(0.97);
      transform-origin: top right;
      transition: opacity 0.18s ease, transform 0.18s ease;
      box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    }

    .project-link-btn {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 13px;
      border-radius: 9px;
      font-size: 13px;
      font-weight: 500;
      color: #ccc;
      text-decoration: none;
      direction: ltr;
      transition: background 0.15s, color 0.15s;
    }
    .project-link-btn i { font-size: 13px; flex-shrink: 0; }
    .project-link-btn:hover { background: rgba(255,255,255,0.07); color: #fff; }
    .project-link-source:hover { color: var(--accent); }
    .project-link-demo:hover   { color: #64b4ff; }

    body.rtl .project-links-popup {
      right: auto;
      left: 0;
      transform-origin: top left;
      transform: translateY(6px) scale(0.97);
    }
    body.rtl .project-arrow-wrap.popup-open .project-links-popup {
      transform: translateY(0) scale(1);
    }
    body.rtl .project-link-btn {
      direction: ltr;
      text-align: left;
    }

    .project-preview {
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--border);
      border-bottom: none;
      border-radius: 12px 12px 0 0;
      padding: 12px 14px 20px;
      min-height: 110px;
    }

    .project-preview-dots {
      display: flex; gap: 5px; margin-bottom: 12px;
    }
    .project-preview-dots span {
      width: 7px; height: 7px; border-radius: 50%;
      background: rgba(255,255,255,0.1);
    }
    .project-preview-dots span:nth-child(1) { background: rgba(255,95,87,0.5); }
    .project-preview-dots span:nth-child(2) { background: rgba(255,189,46,0.5); }
    .project-preview-dots span:nth-child(3) { background: rgba(39,201,63,0.5); }

    .project-preview-lines { display: flex; flex-direction: column; gap: 6px; }
    .ppl {
      height: 6px; border-radius: 4px;
      background: rgba(255,255,255,0.08);
      width: 55%;
    }
    .ppl--accent { background: rgba(200,255,0,0.25); width: 30%; }
    .ppl--wide   { width: 80%; }
    .ppl--mid    { width: 65%; }
    .ppl--short  { width: 20%; }

    .project-preview-wip {
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      height: 70px; gap: 8px;
      color: rgba(255,255,255,0.15);
      font-size: 24px;
    }
    .project-preview-wip span {
      font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.15);
    }
    .project-preview--wip { min-height: 110px; justify-content: center; display: flex; flex-direction: column; }

    .project-card-bottom {
      padding: 24px 24px 28px;
      flex: 1; display: flex; flex-direction: column;
    }

    .project-title {
      font-family: var(--font-display);
      font-size: 18px; font-weight: 700;
      margin-bottom: 10px; color: var(--white);
    }

    .project-desc {
      font-size: 13.5px; color: rgba(255,255,255,0.45);
      line-height: 1.7; margin-bottom: 20px; flex: 1;
    }

    .project-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: auto; }
    .project-tag {
      padding: 4px 11px;
      background: rgba(200,255,0,0.07);
      color: var(--accent);
      border-radius: 999px;
      font-size: 10.5px; letter-spacing: 0.5px;
      border: 1px solid rgba(200,255,0,0.12);
    }

    @media (max-width: 900px) {
      .projects-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 580px) {
      .projects-grid { grid-template-columns: 1fr; }
    }

    /* ============================================================
       CONTACT
       ============================================================ */
    .contact-wrapper {
      margin-top: 64px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 64px;
      align-items: start;
    }

    .contact-big-text {
      font-family: var(--font-display);
      font-size: clamp(32px, 4vw, 58px);
      font-weight: 800;
      letter-spacing: -1px;
      line-height: 1.1;
      margin-bottom: 20px;
    }
    .contact-big-text em {
      font-style: normal;
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(255,255,255,0.28);
    }

    .contact-sub {
      font-size: 14px;
      color: var(--grey);
      line-height: 1.75;
      margin-bottom: 40px;
      max-width: 340px;
    }

    .contact-links { display: flex; flex-direction: column; gap: 4px; }

    .contact-link-item {
      display: flex;
      align-items: center;
      gap: 16px;
      padding: 16px 18px;
      border-radius: 16px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      text-decoration: none;
      color: var(--white);
      transition: all 0.25s;
    }
    .contact-link-item:hover {
      border-color: rgba(200,255,0,0.3);
      background: rgba(200,255,0,0.04);
      transform: translateX(4px);
    }

    .contact-link-icon {
      width: 42px; height: 42px;
      border: 1px solid var(--border);
      border-radius: 12px;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px; color: var(--grey);
      flex-shrink: 0;
      transition: all 0.25s;
    }
    .contact-link-item:hover .contact-link-icon {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--black);
    }

    .contact-link-text { flex: 1; min-width: 0; }
    .contact-link-label { font-size: 10px; color: var(--grey); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
    .contact-link-val   { font-size: 13px; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .contact-link-arrow {
      color: rgba(255,255,255,0.15);
      font-size: 12px;
      flex-shrink: 0;
      transition: transform 0.2s, color 0.2s;
    }
    .contact-link-item:hover .contact-link-arrow {
      color: var(--accent);
      transform: translateX(3px);
    }

    .contact-right {
      display: flex;
      flex-direction: column;
      margin-top: 96px;
    }

    .contact-form-card {
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 24px;
      overflow: hidden;
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .contact-form-header {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 14px 20px;
      background: rgba(255,255,255,0.03);
      border-bottom: 1px solid var(--border);
    }
    .cfh-dot {
      width: 10px; height: 10px; border-radius: 50%;
    }
    .cfh-dot--red    { background: rgba(255,95,87,0.6); }
    .cfh-dot--yellow { background: rgba(255,189,46,0.6); }
    .cfh-dot--green  { background: rgba(39,201,63,0.6); }
    .cfh-label {
      margin-left: 8px;
      font-size: 11px; color: var(--grey); letter-spacing: 0.5px;
    }

    form { padding: 48px; }

    .form-group { margin-bottom: 18px; }
    .form-group label {
      display: block;
      font-size: 10px;
      color: var(--grey);
      letter-spacing: 1.5px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }
    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 14px 16px;
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 12px;
      color: var(--white);
      font-family: var(--font-body);
      font-size: 14px;
      outline: none;
      transition: border-color 0.2s, background 0.2s;
      resize: vertical;
    }
    .form-group input:focus,
    .form-group textarea:focus {
      border-color: rgba(200,255,0,0.4);
      background: rgba(200,255,0,0.02);
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: rgba(255, 255, 255, 0.35);
    }

    .form-group textarea { min-height: 120px; }

    /* ============================================================
       FOOTER
       ============================================================ */
    footer {
      position: relative;
      z-index: 1;
      border-top: 1px solid var(--border);
      padding: 40px 48px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 20px;
    }

    .footer-copy { font-size: 13px; color: var(--grey); }

    .footer-social { display: flex; gap: 12px; }
    .footer-social a {
      width: 38px; height: 38px;
      border: 1px solid var(--border);
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      color: var(--grey);
      font-size: 14px;
      text-decoration: none;
      transition: all 0.2s;
    }
    .footer-social a:hover {
      background: var(--accent);
      border-color: var(--accent);
      color: var(--black);
    }

    /* ============================================================
       LANGUAGE SWITCHER
       ============================================================ */
    .nav-right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .lang-switcher {
      position: relative;
    }

    .lang-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 9px 16px;
      background: var(--card-bg);
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--white);
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      white-space: nowrap;
    }
    body.js-enabled .lang-btn { cursor: none; }
    
    .lang-btn:hover {
      border-color: rgba(255,255,255,0.25);
      background: rgba(255,255,255,0.08);
    }
    .lang-btn i { color: var(--grey); font-size: 12px; }
    .lang-chevron {
      transition: transform 0.25s;
      font-size: 10px !important;
    }
    .lang-switcher.open .lang-chevron {
      transform: rotate(180deg);
    }

    .lang-dropdown {
      position: absolute;
      top: calc(100% + 10px);
      right: 0;
      background: #111;
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 6px;
      min-width: 150px;
      opacity: 0;
      transform: translateY(-8px) scale(0.97);
      pointer-events: none;
      transition: all 0.2s ease;
      z-index: 300;
      backdrop-filter: blur(12px);
    }
    .lang-switcher.open .lang-dropdown {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: all;
    }

    .lang-option {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 10px 14px;
      background: none;
      border: none;
      border-radius: 9px;
      color: var(--grey);
      font-family: var(--font-body);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.15s;
      text-align: left;
    }
    body.js-enabled .lang-option { cursor: none; }
    
    .lang-option:hover {
      background: var(--card-bg);
      color: var(--white);
    }
    .lang-option.active {
      color: var(--accent);
      background: rgba(200,255,0,0.07);
    }

    /* ============================================================
       RTL / ARABIC — Mirror layout
       ============================================================ */
    body.rtl {
      direction: rtl;
      text-align: right;
    }

    body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4, body.rtl h5,
    body.rtl p, body.rtl a, body.rtl li, body.rtl label,
    body.rtl input, body.rtl textarea, body.rtl button,
    body.rtl [data-ar],
    body.rtl .tl-title,
    body.rtl .skill-card-level,
    body.rtl .skill-card-title,
    body.rtl .project-title,
    body.rtl .project-desc {
      font-family: 'Cairo', sans-serif !important;
    }

    body.rtl span:not([class*="fa"]):not([class*="mob-num"]) {
      font-family: 'Cairo', sans-serif !important;
    }

    body.rtl h1, body.rtl h2, body.rtl h3,
    body.rtl .section-title, body.rtl .contact-big-text,
    body.rtl .nav-links a, body.rtl .section-label,
    body.rtl .tl-tag, body.rtl .mob-num, body.rtl .skill-card-level,
    body.rtl .project-status, body.rtl .tl-date,
    body.rtl .contact-link-label, body.rtl .form-group label,
    body.rtl .cfh-label, body.rtl .asp-label {
      letter-spacing: 0 !important;
    }

    body.rtl h1, body.rtl h2, body.rtl h3,
    body.rtl .section-title, body.rtl .contact-big-text {
      line-height: 1.4;
    }

    body.rtl p, body.rtl .hero-sub, body.rtl .about-intro,
    body.rtl .about-body, body.rtl .tl-body, body.rtl .project-desc,
    body.rtl .contact-sub, body.rtl .trait-desc {
      font-size: 15.5px;
      line-height: 2;
    }

    body.rtl .section-label, body.rtl .tl-meta, body.rtl .tl-date,
    body.rtl .hero-sub, body.rtl .tl-title, body.rtl .tl-body {
      unicode-bidi: plaintext;
    }

    body.rtl .fa-arrow-right,
    body.rtl .project-arrow i,
    body.rtl .fa-paper-plane {
      transform: scaleX(-1);
    }

    body.rtl .nav-links {
      margin-left: 32px;
      margin-right: auto;
    }
    body.rtl .lang-dropdown { right: auto; left: 0; }

    body.rtl .mob-link {
      transform: translateY(20px) skewX(2deg);
    }
    body.rtl .mobile-overlay.open .mob-link { transform: translateY(0) skewX(0deg); }
    body.rtl .mob-link::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }
    body.rtl .mob-link:hover .mob-arrow { transform: translateX(-6px) scaleX(-1); }
    body.rtl .mob-label { font-size: clamp(22px, 5.5vw, 36px); }
    body.rtl .mob-link::after { left: auto; right: -80%; transition: right 0.5s ease; }
    body.rtl .mob-link:hover::after { right: 130%; left: auto; }

    body.rtl .hero h1 {
      font-size: clamp(40px, 8vw, 110px); /* Lowered from 52px for tiny screens */
      line-height: 1.15;
    }

    body.rtl .about-photo-location { right: auto; left: -16px; }
    body.rtl .about-trait:hover { transform: translateX(-4px); }

    body.rtl .tl-date { margin-left: 0; margin-right: auto; }
    body.rtl .tl-card:hover .tl-card-body { transform: translateX(-6px); }

    body.rtl .skills-marquee-section { direction: ltr; }
    body.rtl .skill-card { direction: rtl; }
    body.rtl .marquee-row--left  { animation-name: marqueeRight; }
    body.rtl .marquee-row--right { animation-name: marqueeLeft; }
    body.rtl .skill-card::after { left: auto; right: -60%; transition: right 0.5s ease; }
    body.rtl .skill-card:hover::after { right: 130%; left: auto; }

    body.rtl .project-card:hover { transform: translateY(-6px); } 

    body.rtl .contact-link-item:hover { transform: translateX(-4px); }
    body.rtl .contact-link-text { text-align: right; }
    body.rtl .contact-link-val { direction: ltr; text-align: right; }
    body.rtl .contact-link-item:hover .contact-link-arrow { transform: translateX(-3px) scaleX(-1); }
    body.rtl .cfh-label { margin-left: 0; margin-right: 8px; }


    /* ============================================================
       RESPONSIVE (Shared RTL & LTR)
       ============================================================ */
    @media (max-width: 1024px) {
      .about-layout { grid-template-columns: 1fr; }
      .about-right { position: relative; top: 0; max-width: 400px; }
      .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
      .contact-right { margin-top: 0; }
    }

    @media (max-width: 768px) {
      nav { padding: 18px 24px; }
      .nav-links { display: none; }
      .hamburger { display: block; }
      .nav-right { margin-left: auto; }
      .lang-switcher:not(.mob-lang-switcher) { display: none; }
      .section { padding: 80px 24px; }
      footer { flex-direction: column; align-items: center; text-align: center; }
      .brands { gap: 24px; padding: 32px 24px; }
      .skill-card { flex: 0 0 150px; }
      .projects-grid { grid-template-columns: 1fr 1fr; }
      .tl-card { grid-template-columns: 40px 1fr; gap: 0 14px; }
      .contact-big-text { font-size: clamp(28px, 6vw, 44px); }

      /* RTL mobile fixes */
      body.rtl .nav-links { display: none; }
      body.rtl .nav-right { margin-right: auto; margin-left: 0; }
    }

    .mob-lang-switcher { display: none; }

    @media (max-width: 768px) {
      .mob-lang-switcher { display: block; position: relative; }
      .mob-lang-switcher .lang-dropdown { bottom: calc(100% + 10px); top: auto; right: 0; left: auto; }
    }

    @media (max-width: 600px) {
      .projects-grid { grid-template-columns: 1fr !important; }
      .tl-card-body { padding: 18px 16px; }
      .contact-wrapper { gap: 32px; }
      form { padding: 18px; }
      .mob-label { font-size: clamp(22px, 7vw, 36px); }
    }

    @media (max-width: 480px) {
      .hero h1 { letter-spacing: -1px; }
      .about-stat-row { grid-template-columns: 1fr 1fr; }
      .project-card-bottom { padding: 18px; }
    }

    @media (pointer: coarse), (max-width: 768px) {
      .cursor, .cursor-ring { display: none !important; }
      body { cursor: auto; }
    }

    /* ============================================================
       SKILLS — VIEW ALL BUTTON
       ============================================================ */
    .skills-view-all {
      display: flex;
      justify-content: center;
      margin-top: 48px;
    }

    .btn-view-all {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 32px;
      border: 1px solid rgba(255,255,255,0.18);
      background: transparent;
      color: var(--white);
      font-family: var(--font-display);
      font-size: 0.95rem;
      font-weight: 600;
      letter-spacing: 0.04em;
      border-radius: 100px;
      cursor: pointer;
      transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.2s;
      position: relative;
      overflow: hidden;
    }
    body.js-enabled .btn-view-all { cursor: none; }

    .btn-view-all::before {
      content: '';
      position: absolute;
      inset: 0;
      background: var(--accent);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.3s ease;
      border-radius: 100px;
      z-index: 0;
    }

    .btn-view-all:hover::before { transform: scaleX(1); }
    .btn-view-all:hover { color: #050505; border-color: var(--accent); }
    .btn-view-all span, .btn-view-all i { position: relative; z-index: 1; }
    .btn-view-all i { transition: transform 0.25s ease; }
    .btn-view-all:hover i { transform: translateX(4px); }

    /* ============================================================
       SKILLS MODAL
       ============================================================ */
    .skills-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(5,5,5,0.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      z-index: 8000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
    }

    .skills-modal-overlay.open {
      opacity: 1;
      pointer-events: all;
    }

    .skills-modal-box {
      background: #0f0f0f;
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 20px;
      width: 100%;
      max-width: 820px;
      max-height: 85vh;
      overflow-y: auto;
      padding: 36px;
      transform: translateY(24px) scale(0.97);
      transition: transform 0.35s cubic-bezier(.22,1,.36,1);
      scrollbar-width: thin;
      scrollbar-color: rgba(255,255,255,0.12) transparent;
    }

    .skills-modal-overlay.open .skills-modal-box {
      transform: translateY(0) scale(1);
    }

    .skills-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
    }

    .skills-modal-title {
      font-family: var(--font-display);
      font-size: clamp(1.4rem, 3vw, 2rem);
      font-weight: 800;
    }

    .skills-modal-close {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.15);
      background: transparent;
      color: var(--white);
      font-size: 1rem;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, border-color 0.2s;
      flex-shrink: 0;
    }
    body.js-enabled .skills-modal-close { cursor: none; }

    .skills-modal-close:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(255,255,255,0.3);
    }

    .skills-modal-cats {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 28px;
    }

    .skills-cat-btn {
      padding: 7px 18px;
      border-radius: 100px;
      border: 1px solid rgba(255,255,255,0.12);
      background: transparent;
      color: var(--grey);
      font-family: var(--font-body);
      font-size: 0.82rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
    }
    body.js-enabled .skills-cat-btn { cursor: none; }

    .skills-cat-btn:hover {
      border-color: rgba(255,255,255,0.3);
      color: var(--white);
    }

    .skills-cat-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #050505;
      font-weight: 700;
    }

    .skills-modal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 14px;
    }

    .sm-card {
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.07);
      border-radius: 14px;
      padding: 20px 16px;
      text-align: center;
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }

    .sm-card:hover {
      background: rgba(255,255,255,0.08);
      border-color: rgba(200,255,0,0.25);
      transform: translateY(-3px);
    }

    .sm-card.hidden { display: none; }

    .sm-icon {
      font-size: 1.6rem;
      color: var(--accent);
      margin-bottom: 10px;
    }

    .sm-title {
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 700;
      margin-bottom: 6px;
      line-height: 1.3;
    }

    .sm-level {
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.04em;
      padding: 3px 10px;
      border-radius: 100px;
      display: inline-block;
    }

    .sm-level--practical { background: rgba(255,255,255,0.08); color: var(--grey-lt); }
    .sm-level--beginner  { background: rgba(100,180,255,0.12); color: #80c8ff; }
    .sm-level--advanced  { background: rgba(200,255,0,0.12);  color: var(--accent); }

    @media (max-width: 600px) {
      .skills-modal-box { padding: 24px 18px; }
      .skills-modal-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    }
    .project-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.project-link-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
/* ---- PROJECTS VIEW ALL ---- */
.projects-extra {
  display: contents; /* renders children as if they're direct grid children */
}

.projects-extra.hidden > * {
  display: none;
}

.projects-view-all {
  text-align: center;
  margin-top: 3rem;
}

.projects-view-all .btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.projects-view-all .btn-view-all:hover {
  border-color: #c8ff00;
  color: #050505;
  background: #c8ff00;
}

.projects-view-all .btn-view-all i {
  transition: transform 0.25s ease;
}

.projects-view-all .btn-view-all.expanded i {
  transform: rotate(90deg);
}

/* ============================================================
   ACCESSIBILITY — Focus styles
   Visible keyboard focus rings for all interactive elements.
   Using :focus-visible so mouse users are unaffected.
   ============================================================ */

/* Global reset — remove browser default only where we replace it */
*:focus { outline: none; }

/* All interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Nav links — slightly tighter offset */
.nav-links a:focus-visible {
  outline-offset: 5px;
}

/* Cards — larger radius to match card shape */
.skill-card:focus-visible,
.project-card:focus-visible {
  outline-offset: 4px;
  border-radius: 12px;
}

/* Lang dropdown options */
.lang-option:focus-visible {
  background: rgba(200, 255, 0, 0.12);
  outline-offset: 0;
}

/* Mobile overlay links */
.mob-link:focus-visible {
  outline-offset: 6px;
}

/* Buttons with custom backgrounds — keep ring outside */
.btn-primary:focus-visible,
.btn-outline-w:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 4px;
}