:root {
      --bg: #141d33;
      --card: #18223a;
      --muted: #b0bccf;
      --accent: #8b5cf6;
      --glass: rgba(255, 255, 255, 0.07);
      --maxw: 1100px;
      --radius: 14px;
    }

    * {
      box-sizing: border-box;
      scroll-behavior: smooth
    }

    html,
    body {
      height: 100%;
      margin: 0;
      font-family: Inter, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
      background: linear-gradient(180deg, #101c36 0%, #0f213f 60%);
      color: #f2f6fc
    }

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

    .wrap {
      max-width: var(--maxw);
      margin: 40px auto;
      padding: 28px
    }

    /* header */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px
    }

    .brand {
      display: flex;
      gap: 16px;
      align-items: center
    }

    .logo {
      width: 56px;
      height: 56px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent), #06b6d4);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #fff
    }

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

    .btn {
      padding: 10px 14px;
      border-radius: 10px;
      background: var(--glass);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-weight: 600;
      transition: background 0.2s
    }

    .btn:hover {
      background: rgba(255, 255, 255, 0.1)
    }

    /* hero */
    .hero {
      display: grid;
      grid-template-columns: 1fr 420px;
      gap: 32px;
      margin-top: 28px
    }

    .card {
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
      padding: 28px;
      border-radius: var(--radius);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.08)
    }

    .headline {
      font-size: 28px;
      font-weight: 700;
      line-height: 1.05;
      margin: 0
    }

    .sub {
      color: var(--muted);
      margin-top: 10px
    }

    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 16px
    }

    .chip {
      padding: 8px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-weight: 600
    }

    /* right column */
    .profile {
      display: flex;
      flex-direction: column;
      gap: 16px;
      align-items: center;
      text-align: center
    }

    .avatar {
      width: 160px;
      height: 160px;
      border-radius: 28px;
      background: linear-gradient(180deg, #1d3052, #0d1e38);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 42px;
      color: var(--accent);
      font-weight: 800;
      border: 1px solid rgba(255, 255, 255, 0.08)
    }

    .statgrid {
      display: flex;
      gap: 12px;
      justify-content: center
    }

    .stat {
      padding: 12px 14px;
      border-radius: 12px;
      background: rgba(255, 255, 255, 0.06)
    }

    .contact {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center
    }

    .social {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 12px;
      border-radius: 10px;
      background: var(--glass);
      border: 1px solid rgba(255, 255, 255, 0.08)
    }

    /* sections */
    section {
      margin-top: 28px
    }

    .grid-2 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px
    }

    .projects {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 16px
    }

    .proj {
      padding: 16px;
      border-radius: 12px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
      border: 1px solid rgba(255, 255, 255, 0.08)
    }

    footer {
      margin-top: 40px;
      text-align: center;
      color: var(--muted);
      font-size: 14px;
      padding-bottom: 40px
    }

    /* responsive */
    @media (max-width:980px) {
      .hero {
        grid-template-columns: 1fr
      }

      .grid-2 {
        grid-template-columns: 1fr
      }

      .header {
        flex-direction: column;
        align-items: flex-start
      }

      .wrap {
        margin: 20px auto;
        padding: 18px
      }
    }

    .kbd {
      background: rgba(255, 255, 255, 0.07);
      padding: 6px 8px;
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      font-weight: 700
    }