  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      cursor: none;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 10px; margin: 4px; }
    ::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 10px; transition: background 0.2s ease; }
    ::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }
    * { scrollbar-width: thin; scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); }

    body {
      font-family:'Comic','Koodak';
      transition: background-color 0.3s ease, color 0.2s ease;
      background-color: var(--bg-body);
      color: var(--text-primary);
      min-height: 100vh;
    }

    /* Light theme */
    :root {
      --bg-body: #fef7ed;
      --bg-card: #ffffffdd;
      --bg-card-solid: #ffffff;
      --text-primary: #2c2a29;
      --text-secondary: #5b4b3e;
      --accent: #d48c6c;
      --accent-hover: #bc6f4c;
      --border: #f0e2d0;
      --shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
      --header-bg: rgba(254, 247, 237, 0.95);
      --progress-bg: #e5d9ce;
      --exp-glow: rgba(212, 140, 108, 0.15);
      --exp-timeline: #e5cfbf;
      --quote-bg: rgba(212, 140, 108, 0.08);
      --player-bg: rgba(255, 255, 255, 0.7);
      --scrollbar-track: #f0e2d0;
      --scrollbar-thumb: #d48c6c;
      --scrollbar-thumb-hover: #bc6f4c;
    }

    body.dark {
      --bg-body: #1e1c1a;
      --bg-card: #2b2826dd;
      --bg-card-solid: #2b2826;
      --text-primary: #f2ede8;
      --text-secondary: #cfc5bc;
      --accent: #e2a07e;
      --accent-hover: #f0b692;
      --border: #3f3a36;
      --shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
      --header-bg: rgba(30, 28, 26, 0.95);
      --progress-bg: #3a332e;
      --exp-glow: rgba(226, 160, 126, 0.2);
      --exp-timeline: #4a413c;
      --quote-bg: rgba(226, 160, 126, 0.1);
      --player-bg: rgba(30, 28, 26, 0.85);
      --scrollbar-track: #3a332e;
      --scrollbar-thumb: #e2a07e;
      --scrollbar-thumb-hover: #f0b692;
    }

    /* Custom Cursor */
    .custom-cursor {
      width: 28px;
      height: 28px;
      border: 2px solid var(--accent);
      border-radius: 50%;
      position: fixed;
      pointer-events: none;
      z-index: 9999;
      transition: transform 0.1s ease, width 0.2s, height 0.2s, background 0.2s;
      transform: translate(-50%, -50%);
      background: rgba(212, 140, 108, 0.15);
      backdrop-filter: blur(2px);
    }
    .custom-cursor.hover { width: 42px; height: 42px; background: rgba(212, 140, 108, 0.3); border-width: 3px; }
    .custom-cursor.click { transform: translate(-50%, -50%) scale(0.8); background: var(--accent); }

    /* Progress Bar */
    .progress-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 5px;
      background: var(--progress-bg);
      z-index: 2000;
    }
    .progress-bar {
      height: 5px;
      background: var(--accent);
      width: 0%;
      transition: width 0.08s linear;
    }

    /* Header & Navigation */
    header {
      position: sticky;
      top: 0;
      backdrop-filter: blur(12px);
      background: var(--header-bg);
      z-index: 1000;
      padding: 1rem 2rem;
      border-bottom: 1px solid var(--border);
    }
    .nav-container {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1rem;
    }
    .logo {
      font-family: 'Saleh';
      font-weight: 700;
      font-size: 1.5rem;
      background: linear-gradient(135deg, var(--accent), #b97f5e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      text-decoration: none;
    }
    .nav-links {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }
    .nav-link {
      background: transparent;
      border: 1px solid var(--border);
      padding: 0.5rem 1.2rem;
      border-radius: 40px;
      text-decoration: none;
      color: var(--text-primary);
      font-family: 'Roboto','Saleh';
      font-size: 0.9rem;
      font-weight: 500;
      transition: 0.2s;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .nav-link:hover, .nav-link.active {
      background: var(--accent);
      color: white;
      border-color: var(--accent);
    }
    .controls {
      display: flex;
      gap: 1rem;
      align-items: center;
    }
    .ctrl-btn {
      background: var(--bg-card-solid);
      border: 1px solid var(--border);
      padding: 0.5rem 0.9rem;
      border-radius: 40px;
      font-weight: 500;
      cursor: pointer;
      transition: 0.2s;
      color: var(--text-primary);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .ctrl-btn:hover { background: var(--accent); color: white; border-color: var(--accent); }

    /* Main Container */
    .container {
      max-width: 1100px;
      margin: 2rem auto;
      padding: 0 1.5rem;
    }
    .page-card {
      background: var(--bg-card);
      backdrop-filter: blur(4px);
      border-radius: 2rem;
      padding: 2rem;
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }
    .section-title {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
      border-left: 4px solid var(--accent);
      padding-left: 1rem;
    }
    .subsection-title {
      font-family:'Saleh';
      font-size: 1.3rem;
      font-weight: 600;
      margin: 1.8rem 0 1rem 0;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: var(--accent);
    }

    /* About Section - Side by side layout for both languages */
    .about-creative {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      align-items: flex-start;
    }
    .pfp-frame {
      flex-shrink: 0;
      position: relative;
    }
    .pfp-frame img {
      width: 150px;
      height: 150px;
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid var(--accent);
      box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
    }
    .pfp-frame::after {
      content: "✦";
      position: absolute;
      bottom: 10px;
      right: 5px;
      background: var(--accent);
      color: white;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--bg-card-solid);
    }
    .about-bio {
      flex: 1;
    }
    .greeting {
      font-family: 'Harlow','Saleh';
      font-size: 1.9rem;
      font-weight: 600;
      background: linear-gradient(125deg, var(--accent), #b48c6c);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }
    .tagline {
      display: inline-block;
      background: var(--quote-bg);
      padding: 0.3rem 1rem;
      border-radius: 40px;
      font-size: 0.85rem;
      color: var(--accent);
      margin-bottom: 1.2rem;
    }
    .about-text p {
      line-height: 1.65;
      margin-bottom: 1rem;
      color: var(--text-secondary);
    }
    .quote-block {
      margin-top: 1.2rem;
      padding: 1rem 1.4rem;
      background: var(--quote-bg);
      border-radius: 1.5rem;
      border-left: 3px solid var(--accent);
      font-style: italic;
      color: var(--accent);
    }
    .interests {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 1.5rem;
    }
    .interest-badge {
      background: var(--bg-card-solid);
      border: 1px solid var(--border);
      padding: 0.4rem 1rem;
      border-radius: 60px;
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    /* Projects Grid */
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin-top: 1rem; }
    .project-card { background: var(--bg-card-solid); border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border); transition: all 0.3s; }
    .project-card:hover { transform: translateY(-8px); border-color: var(--accent); }
    .project-banner { height: 160px; background-size: cover; background-position: center; }
    .project-content { padding: 1.3rem; }
    .project-tech { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .tech-tag { font-size: 0.7rem; background: var(--bg-body); padding: 0.2rem 0.7rem; border-radius: 30px; color: var(--accent); border: 1px solid var(--border); }

    /* Experience Timeline */
    .exp-timeline { position: relative; padding-left: 2rem; margin-top: 1rem; }
    .exp-timeline::before { content: ''; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--accent), var(--exp-timeline)); }
    .exp-item { position: relative; margin-bottom: 2rem; padding-left: 2rem; }
    .exp-item::before { content: ''; position: absolute; left: -2px; top: 6px; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; border: 3px solid var(--bg-card-solid); box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--exp-glow); }
    .exp-card { background: var(--bg-card-solid); border-radius: 1.2rem; padding: 1.2rem; border: 1px solid var(--border); }
    .exp-header { display: flex; flex-wrap: wrap; justify-content: space-between; margin-bottom: 0.5rem; }
    .exp-title { font-weight: 700; font-size: 1.1rem; background: linear-gradient(120deg, var(--text-primary), var(--accent)); background-clip: text; -webkit-background-clip: text; color: transparent; }
    .exp-date { font-size: 0.7rem; background: var(--accent); color: white; padding: 0.2rem 0.8rem; border-radius: 60px; }

    /* Coworkers Grid */
    .coworkers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
    .coworker-card { background: var(--bg-card-solid); border-radius: 1.5rem; padding: 1.5rem; text-align: center; border: 1px solid var(--border); transition: all 0.3s ease; }
    .coworker-card:hover { transform: translateY(-6px); border-color: var(--accent); }
    .coworker-avatar { width: 80px; height: 80px; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--accent), #b97f5e); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; color: white; }
    .coworker-name { font-size: 1.1rem; font-weight: 700; font-family: 'Koodak', 'Comic'; }
    .coworker-role { font-size: 0.75rem; color: var(--accent); margin: 0.3rem 0 0.8rem; font-family: 'Koodak', 'Comic';}
    .connect-links { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
    .connect-link { background: var(--bg-body); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 40px; font-size: 0.7rem; text-decoration: none; color: var(--text-primary); display: inline-flex; align-items: center; gap: 5px; transition: 0.2s; }
    .connect-link:hover { background: var(--accent); color: white; }

    /* Embed Grids for Media */
    .media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
    .embed-card { background: var(--bg-card-solid); border-radius: 1.2rem; overflow: hidden; border: 1px solid var(--border); transition: all 0.2s; }
    .embed-card:hover { transform: translateY(-4px); border-color: var(--accent); }
    .embed-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
    .embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
    .embed-info { padding: 0.8rem 1rem; font-weight: 500; font-size: 0.85rem; color: var(--text-secondary); border-top: 1px solid var(--border); background: var(--bg-card); }

    /* Music Player */
    .player-container { background: var(--player-bg); border-radius: 2rem; padding: 1.2rem 1.5rem; border: 1px solid var(--border); backdrop-filter: blur(8px); margin-top: 1rem; }
    .track-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
    .track-item { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.8rem; background: var(--bg-card-solid); border-radius: 60px; border: 1px solid var(--border); cursor: pointer; }
    .track-item:hover { border-color: var(--accent); background: var(--exp-glow); }
    .track-info { display: flex; align-items: center; gap: 12px; }
    .player-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
    .control-btn { background: none; border: none; font-size: 1.3rem; color: var(--accent); cursor: pointer; transition: 0.1s; }
    .control-btn:hover { transform: scale(1.1); }
    .progress-wrap { display: flex; align-items: center; gap: 0.8rem; flex: 1; min-width: 150px; }
    .audio-progress { flex: 1; height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; cursor: pointer; }
    .audio-progress-bar { width: 0%; height: 100%; background: var(--accent); }

    /* Contact Links */
    .contact-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
    .contact-link { background: var(--bg-card-solid); padding: 0.7rem 1.2rem; border-radius: 60px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-primary); border: 1px solid var(--border); transition: 0.2s; }
    .contact-link:hover { background: var(--accent); color: white; }

    /* To Top */
    .to-top { position: fixed; bottom: 2rem; right: 2rem; background: var(--accent); color: white; width: 48px; height: 48px; border-radius: 60px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; border: none; font-size: 1.4rem; opacity: 0; visibility: hidden; transition: 0.2s; }
    .to-top.show { opacity: 1; visibility: visible; }

    /* RTL - only for text direction, layout remains side by side */
    body.farsi {
      direction: rtl;
      text-align: right;
    }
    body.farsi .section-title {
      border-left: none;
      border-right: 4px solid var(--accent);
      padding-left: 0;
      padding-right: 1rem;
    }
    body.farsi .exp-timeline {
      padding-left: 0;
      padding-right: 2rem;
    }
    body.farsi .exp-timeline::before {
      left: auto;
      right: 8px;
    }
    body.farsi .exp-item {
      padding-left: 0;
      padding-right: 2rem;
    }
    body.farsi .exp-item::before {
      left: auto;
      right: -2px;
    }

    footer { text-align: center; padding: 2rem; color: var(--text-secondary); font-size: 0.8rem; }

    @media (max-width: 700px) {
      .nav-container { flex-direction: column; }
      .nav-links { justify-content: center; }
      .controls span { display: none; }
      .about-creative { flex-direction: column; align-items: center; text-align: center; }
      .section-title { font-size: 1.5rem; }
    }
