*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 16px; scroll-behavior: smooth; }
    body {
      font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
      background: #0a0f1e;
      color: #e2e8f0;
      line-height: 1.6;
      min-height: 100vh;
    }

    :root {
      --navy:       #0a0f1e;
      --navy-mid:   #0f1829;
      --navy-card:  #131e35;
      --navy-light: #1a2744;
      --blue:       #1d4ed8;
      --blue-light: #3b82f6;
      --blue-glow:  #60a5fa;
      --accent:     #38bdf8;
      --accent2:    #818cf8;
      --text:       #e2e8f0;
      --text-muted: #94a3b8;
      --border:     rgba(59,130,246,0.2);
      --radius:     12px;
      --radius-sm:  8px;
    }

    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: var(--navy); }
    ::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

    /* ===== HEADER ===== */
    header {
      background: linear-gradient(135deg, #0a0f1e 0%, #0f1e3d 50%, #0a1628 100%);
      border-bottom: 1px solid var(--border);
      padding: 3rem 1rem 2.5rem;
      position: relative;
      overflow: hidden;
    }
    header::before {
      content: '';
      position: absolute; top: -60px; right: -60px;
      width: 320px; height: 320px;
      background: radial-gradient(circle, rgba(29,78,216,0.18) 0%, transparent 70%);
      border-radius: 50%; pointer-events: none;
    }
    header::after {
      content: '';
      position: absolute; bottom: -80px; left: -40px;
      width: 260px; height: 260px;
      background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, transparent 70%);
      border-radius: 50%; pointer-events: none;
    }
    .header-inner {
      max-width: 900px; margin: 0 auto;
      display: flex; flex-direction: column; gap: 1.5rem;
      position: relative; z-index: 1;
    }
    .header-top { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
    .avatar {
      width: 80px; height: 80px; flex-shrink: 0;
      border-radius: 50%;
      background: var(--navy-light);
      overflow: hidden;
      border: 3px solid rgba(59,130,246,0.4);
      box-shadow: 0 0 28px rgba(29,78,216,0.5);
    }
    .avatar img {
      width: 100%; height: 100%;
      object-fit: cover;
      display: block;
    }
    .header-info h1 {
      font-size: clamp(1.6rem, 5vw, 2.4rem);
      font-weight: 700;
      background: linear-gradient(90deg, #fff 0%, var(--blue-glow) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      line-height: 1.2;
    }
    .header-info .title {
      font-size: clamp(0.95rem, 2.5vw, 1.1rem);
      color: var(--accent);
      font-weight: 500;
      margin-top: 0.3rem;
    }
    .header-info .location {
      font-size: 0.88rem; color: var(--text-muted);
      margin-top: 0.25rem;
      display: flex; align-items: center; gap: 0.35rem;
    }
    .header-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .meta-link {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.45rem 1rem;
      border-radius: 20px;
      border: 1px solid var(--border);
      background: rgba(29,78,216,0.1);
      color: var(--blue-glow);
      text-decoration: none;
      font-size: 0.85rem; font-weight: 500;
      transition: all 0.2s;
    }
    .meta-link:hover {
      background: rgba(29,78,216,0.25);
      border-color: var(--blue-light);
      color: #fff;
      transform: translateY(-1px);
    }
    .meta-link svg { width: 14px; height: 14px; flex-shrink: 0; }

    /* ===== NAV ===== */
    nav {
      position: sticky; top: 0; z-index: 100;
      background: rgba(10,15,30,0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
    }
    .nav-inner {
      max-width: 900px; margin: 0 auto;
      display: flex; overflow-x: auto;
      scrollbar-width: none;
    }
    .nav-inner::-webkit-scrollbar { display: none; }
    .nav-link {
      white-space: nowrap;
      padding: 0.9rem 1.1rem;
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.85rem; font-weight: 500;
      border-bottom: 2px solid transparent;
      transition: all 0.2s;
      letter-spacing: 0.02em;
    }
    .nav-link:hover, .nav-link.active {
      color: var(--accent);
      border-bottom-color: var(--accent);
    }

    /* ===== MAIN ===== */
    main { padding: 2.5rem 1rem 4rem; max-width: 900px; margin: 0 auto; }

    section { margin-bottom: 3rem; scroll-margin-top: 60px; }
    .section-title {
      display: flex; align-items: center; gap: 0.75rem;
      font-size: 1.1rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--text-muted);
      margin-bottom: 1.25rem;
    }
    .section-title .icon {
      width: 32px; height: 32px; flex-shrink: 0;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--blue) 0%, var(--accent2) 100%);
      display: flex; align-items: center; justify-content: center;
    }
    .section-title .icon svg { width: 16px; height: 16px; color: #fff; }
    .section-line {
      flex: 1; height: 1px;
      background: linear-gradient(90deg, var(--border) 0%, transparent 100%);
    }

    /* ===== ABOUT ===== */
    .about-card {
      background: var(--navy-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.5rem 1.5rem 1.5rem 1.75rem;
      color: var(--text-muted);
      font-size: 0.97rem;
      line-height: 1.85;
      position: relative;
      overflow: hidden;
    }
    .about-card::before {
      content: '';
      position: absolute; top: 0; left: 0;
      width: 4px; height: 100%;
      background: linear-gradient(180deg, var(--blue) 0%, var(--accent) 100%);
      border-radius: 2px 0 0 2px;
    }

    /* ===== TIMELINE ===== */
    .timeline { display: flex; flex-direction: column; gap: 1rem; }
    .timeline-item {
      background: var(--navy-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
      position: relative;
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .timeline-item:hover {
      border-color: rgba(59,130,246,0.45);
      box-shadow: 0 4px 24px rgba(29,78,216,0.15);
    }
    .timeline-item::before {
      content: '';
      position: absolute; top: 0; left: 0;
      width: 4px; height: 100%;
      background: linear-gradient(180deg, var(--blue) 0%, var(--accent2) 100%);
      border-radius: 2px 0 0 2px;
      opacity: 0; transition: opacity 0.2s;
    }
    .timeline-item:hover::before { opacity: 1; }
    .item-header { display: flex; align-items: flex-start; gap: 1rem; }
    .item-logo {
      width: 44px; height: 44px; flex-shrink: 0;
      border-radius: var(--radius-sm);
      background: #fff;
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      padding: 5px;
    }
    .item-logo img {
      width: 100%; height: 100%;
      object-fit: contain;
      display: block;
    }
    .item-meta { flex: 1; min-width: 0; }
    .item-role { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; }
    .item-company { font-size: 0.9rem; color: var(--blue-glow); font-weight: 500; }
    .item-dates {
      font-size: 0.8rem; color: var(--text-muted);
      margin-top: 0.25rem;
      display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    }
    .badge-duration {
      background: rgba(29,78,216,0.2);
      border: 1px solid rgba(29,78,216,0.3);
      color: var(--blue-glow);
      font-size: 0.72rem;
      padding: 0.1rem 0.5rem;
      border-radius: 10px; font-weight: 500;
    }
    .item-desc { margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-muted); line-height: 1.75; }
    .item-desc ul { padding-left: 1.1rem; }
    .item-desc ul li { margin-bottom: 0.35rem; }
    .item-desc strong { color: var(--text); font-weight: 600; }
    .item-tags { margin-top: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .tag {
      display: inline-flex;
      padding: 0.2rem 0.65rem;
      border-radius: 6px;
      font-size: 0.75rem; font-weight: 500;
      background: rgba(56,189,248,0.08);
      border: 1px solid rgba(56,189,248,0.18);
      color: var(--accent);
    }

    /* ===== SKILLS ===== */
    .skills-grid { display: flex; flex-direction: column; gap: 1rem; }
    .skill-group {
      background: var(--navy-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1.25rem 1.5rem;
    }
    .skill-group-title {
      font-size: 0.78rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--accent);
      margin-bottom: 0.85rem;
    }
    .skill-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .skill-pill {
      display: inline-flex; align-items: center; gap: 0.35rem;
      padding: 0.35rem 0.85rem;
      border-radius: 20px;
      font-size: 0.82rem; font-weight: 500;
      background: var(--navy-light);
      border: 1px solid var(--border);
      color: var(--text);
      transition: all 0.2s;
    }
    .skill-pill:hover {
      background: rgba(29,78,216,0.2);
      border-color: var(--blue-light);
      color: var(--blue-glow);
    }
    .skill-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
    .dot-expert   { background: #22c55e; box-shadow: 0 0 6px #22c55e80; }
    .dot-advanced { background: var(--accent); box-shadow: 0 0 6px rgba(56,189,248,0.5); }
    .dot-mid      { background: var(--accent2); box-shadow: 0 0 6px rgba(129,140,248,0.5); }

    /* ===== LANGUAGES ===== */
    .lang-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
    .lang-card {
      background: var(--navy-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 1rem 1.5rem;
      display: flex; flex-direction: column; align-items: center;
      gap: 0.3rem; min-width: 120px;
      transition: border-color 0.2s;
    }
    .lang-card:hover { border-color: rgba(59,130,246,0.4); }
    .lang-flag { font-size: 1.6rem; }
    .lang-name { font-size: 0.95rem; font-weight: 600; color: var(--text); }
    .lang-level { font-size: 0.78rem; color: var(--text-muted); }

    /* ===== FOOTER ===== */
    footer {
      border-top: 1px solid var(--border);
      padding: 1.5rem 1rem;
      text-align: center;
      font-size: 0.8rem; color: var(--text-muted);
    }
    footer a { color: var(--blue-glow); text-decoration: none; }
    footer a:hover { color: var(--accent); }

    /* ===== RESPONSIVE ===== */
    @media (min-width: 640px) {
      header { padding: 4rem 2rem 3rem; }
      .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
      .avatar { width: 96px; height: 96px; font-size: 2.1rem; }
      main { padding: 3rem 2rem 5rem; }
    }
    @media (min-width: 768px) {
      .skills-grid { display: grid; grid-template-columns: 1fr 1fr; }
      .nav-link { padding: 1rem 1.4rem; font-size: 0.88rem; }
    }

    /* ===== PRINT ===== */
    @media print {
      body { background: #fff; color: #1a1a2e; }
      header { background: #1a237e; padding: 2rem; }
      nav { display: none; }
      .timeline-item, .about-card, .skill-group, .lang-card { border: 1px solid #ccc; box-shadow: none; }
      a { color: inherit; }
    }
